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>
pull/11875/head
robert-hh 2023-06-26 14:16:47 +02:00 zatwierdzone przez Damien George
rodzic 5ef7ce5116
commit 057f3b0020
4 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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 \

Wyświetl plik

@ -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())

Wyświetl plik

@ -12,4 +12,3 @@ SRC_S += shared/runtime/gchelper_thumb2.s
SRC_C += \
fatfs_port.c \
drivers/dht/dht.c \

Wyświetl plik

@ -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