diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2022-08-16 01:28:31 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-09-13 17:37:49 +1000 |
| commit | 605266ee9a1258003032abb2fbfa58ef354ded25 (patch) | |
| tree | 6603acb9edac06356ea9974f9b1f7c76d0045c08 | |
| parent | 89a0fefb6c5c730a7b740cf31e44a6c76c3993b1 (diff) | |
py/mpconfig: Make feature levels available to mpconfigport.h.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
| -rw-r--r-- | py/mpconfig.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index b8cc61b2a..5da7e453e 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -56,12 +56,6 @@ // release vs debug configs, etc. Note that if you switch from one config // to another, you must rebuild from scratch using "-B" switch to make. -#ifdef MP_CONFIGFILE -#include MP_CONFIGFILE -#else -#include <mpconfigport.h> -#endif - // Disable all optional features (i.e. minimal port). #define MICROPY_CONFIG_ROM_LEVEL_MINIMUM (0) // Only enable core features (constrained flash, e.g. STM32L072) @@ -75,6 +69,12 @@ // Enable everything (e.g. coverage) #define MICROPY_CONFIG_ROM_LEVEL_EVERYTHING (50) +#ifdef MP_CONFIGFILE +#include MP_CONFIGFILE +#else +#include <mpconfigport.h> +#endif + // Ports/boards should set this, but default to level=core. #ifndef MICROPY_CONFIG_ROM_LEVEL #define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_CORE_FEATURES) |
