py/mpconfig: Make feature levels available to mpconfigport.h.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/9303/head
Jim Mussared 2022-08-16 01:28:31 +10:00 zatwierdzone przez Damien George
rodzic 89a0fefb6c
commit 605266ee9a
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

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