Skip to content
Snippets Groups Projects
Commit a3519332 authored by Vincenzo Frascino's avatar Vincenzo Frascino Committed by Paul Sokolovsky
Browse files

zephyr: Use board/SoC values for startup banner based on Zephyr config.

This patch modifies the HW macro definition in order to let micropython
report correctly the BOARD and the SOC on which it is working on.
parent 3cdccb9b
Branches
No related tags found
No related merge requests found
...@@ -60,8 +60,19 @@ ...@@ -60,8 +60,19 @@
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
#define MICROPY_PY_BUILTINS_COMPLEX (0) #define MICROPY_PY_BUILTINS_COMPLEX (0)
#ifdef CONFIG_BOARD
#define MICROPY_HW_BOARD_NAME "zephyr-" CONFIG_BOARD
#else
#define MICROPY_HW_BOARD_NAME "zephyr-generic" #define MICROPY_HW_BOARD_NAME "zephyr-generic"
#endif
#ifdef CONFIG_SOC
#define MICROPY_HW_MCU_NAME CONFIG_SOC
#else
#define MICROPY_HW_MCU_NAME "unknown-cpu" #define MICROPY_HW_MCU_NAME "unknown-cpu"
#endif
#define MICROPY_MODULE_FROZEN_STR (1) #define MICROPY_MODULE_FROZEN_STR (1)
typedef int mp_int_t; // must be pointer size typedef int mp_int_t; // must be pointer size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment