samd/mpconfigport: Enable DHT and onewire drivers on all MCUs/boards.
And move the setting to the samd-generic files, now that both samd21 and samd51 support it. Signed-off-by: robert-hh <robert@hammelrath.com>
This commit is contained in:
parent
5ef7ce5116
commit
057f3b0020
@ -119,6 +119,7 @@ SRC_C += \
|
||||
tusb_port.c \
|
||||
|
||||
SHARED_SRC_C += \
|
||||
drivers/dht/dht.c \
|
||||
shared/runtime/mpirq.c \
|
||||
shared/libc/printf.c \
|
||||
shared/libc/string0.c \
|
||||
|
@ -25,8 +25,6 @@
|
||||
#define MICROPY_PY_CMATH (0)
|
||||
#endif
|
||||
|
||||
#define MICROPY_PY_MACHINE_DHT_READINTO (1)
|
||||
#define MICROPY_PY_ONEWIRE (1)
|
||||
#define MICROPY_PY_OS_SYNC (1)
|
||||
#define MICROPY_PY_OS_URANDOM (1)
|
||||
#define MICROPY_PY_RANDOM_SEED_INIT_FUNC (trng_random_u32())
|
||||
|
@ -12,4 +12,3 @@ SRC_S += shared/runtime/gchelper_thumb2.s
|
||||
|
||||
SRC_C += \
|
||||
fatfs_port.c \
|
||||
drivers/dht/dht.c \
|
||||
|
@ -127,6 +127,8 @@
|
||||
#define MICROPY_PY_MACHINE_PWM_INCLUDEFILE "ports/samd/machine_pwm.c"
|
||||
#endif
|
||||
#define MICROPY_PY_MACHINE_PIN_MAKE_NEW mp_pin_make_new
|
||||
#define MICROPY_PY_MACHINE_DHT_READINTO (1)
|
||||
#define MICROPY_PY_ONEWIRE (1)
|
||||
|
||||
#define MP_STATE_PORT MP_STATE_VM
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user