From 9f6604eb2723c48bfe712a57801d0c7f14c6fbda Mon Sep 17 00:00:00 2001 From: robert-hh Date: Sun, 19 Sep 2021 22:08:51 +0200 Subject: [PATCH] mimxrt: Enable the platform module. --- ports/mimxrt/mpconfigport.h | 1 + ports/mimxrt/mphalport.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ports/mimxrt/mpconfigport.h b/ports/mimxrt/mpconfigport.h index 35ee9eb64..64e991c79 100644 --- a/ports/mimxrt/mpconfigport.h +++ b/ports/mimxrt/mpconfigport.h @@ -135,6 +135,7 @@ uint32_t trng_random_u32(void); #define MICROPY_PY_MACHINE_SOFTSPI (1) #define MICROPY_PY_FRAMEBUF (1) #define MICROPY_PY_ONEWIRE (1) +#define MICROPY_PY_UPLATFORM (1) // fatfs configuration used in ffconf.h #define MICROPY_FATFS_ENABLE_LFN (1) diff --git a/ports/mimxrt/mphalport.h b/ports/mimxrt/mphalport.h index 40e929b23..c02f561a9 100644 --- a/ports/mimxrt/mphalport.h +++ b/ports/mimxrt/mphalport.h @@ -33,6 +33,8 @@ #include "pin.h" #include "fsl_clock.h" +#define MICROPY_HAL_VERSION "2.8.0" + #define MP_HAL_PIN_FMT "%q" extern ringbuf_t stdin_ringbuf;