aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/mpconfigport.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/mpconfigport.h b/zephyr/mpconfigport.h
index 327719459..2f12cf711 100644
--- a/zephyr/mpconfigport.h
+++ b/zephyr/mpconfigport.h
@@ -60,8 +60,19 @@
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
#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"
+#endif
+
+#ifdef CONFIG_SOC
+#define MICROPY_HW_MCU_NAME CONFIG_SOC
+#else
#define MICROPY_HW_MCU_NAME "unknown-cpu"
+#endif
+
#define MICROPY_MODULE_FROZEN_STR (1)
typedef int mp_int_t; // must be pointer size