Created
May 13, 2021 14:24
-
-
Save mattytrentini/5483408955ea4952f6c97fb0200e1ee5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ports/stm32/boards/NODE_151/mpconfigboard.h b/ports/stm32/boards/NODE_151/mpconfigboard.h | |
index 99ffc1f70..23358e9a9 100644 | |
--- a/ports/stm32/boards/NODE_151/mpconfigboard.h | |
+++ b/ports/stm32/boards/NODE_151/mpconfigboard.h | |
@@ -5,7 +5,7 @@ | |
#define MICROPY_HW_ENABLE_ADC (0) | |
#define MICROPY_HW_ENABLE_DMA (0) | |
#define MICROPY_HW_HAS_SWITCH (0) // Ought to be able to turn back on | |
-#define MICROPY_HW_HAS_FLASH (1) | |
+#define MICROPY_HW_HAS_FLASH (0) | |
#define MICROPY_HW_ENABLE_USB (0) | |
// HSE is 8MHz XXX - fix defines (copied from F411DISC) | |
@@ -22,6 +22,20 @@ | |
// 1 wait states XXX - correct? | |
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_1 | |
+#define MICROPY_EMIT_THUMB (0) | |
+#define MICROPY_EMIT_INLINE_THUMB (0) | |
+//#define MICROPY_PY_BUILTINS_COMPLEX (0) | |
+#define MICROPY_PY_GENERATOR_PEND_THROW (0) | |
+#define MICROPY_PY_MATH (0) | |
+#define MICROPY_PY_FRAMEBUF (0) | |
+#define MICROPY_PY_USOCKET (0) | |
+#define MICROPY_PY_NETWORK (0) | |
+#define MICROPY_PY_ONEWIRE (0) | |
+#define MICROPY_PY_STM (0) | |
+#define MICROPY_PY_PYB_LEGACY (0) | |
+#define MICROPY_PY_UHEAPQ (0) | |
+#define MICROPY_PY_UTIMEQ (0) | |
+ | |
// UART config | |
#define MICROPY_HW_UART1_NAME "XB" | |
#define MICROPY_HW_UART1_TX (pin_B6) | |
diff --git a/ports/stm32/modmachine.c b/ports/stm32/modmachine.c | |
index eae7b22b2..bfc28fb04 100644 | |
--- a/ports/stm32/modmachine.c | |
+++ b/ports/stm32/modmachine.c | |
@@ -463,7 +463,9 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = { | |
{MP_ROM_QSTR(MP_QSTR_Signal), MP_ROM_PTR(&machine_signal_type)}, | |
{MP_ROM_QSTR(MP_QSTR_RTC), MP_ROM_PTR(&pyb_rtc_type)}, | |
+#if MICROPY_HW_ENABLE_ADC | |
{MP_ROM_QSTR(MP_QSTR_ADC), MP_ROM_PTR(&machine_adc_type)}, | |
+#endif | |
#if MICROPY_PY_MACHINE_I2C | |
#if MICROPY_HW_ENABLE_HW_I2C | |
{MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_hard_i2c_type)}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment