fix more build errors · MicroPythonNexus/circuitpython@579cdf3 · GitHub
Skip to content

Commit 579cdf3

Browse files
committed
fix more build errors
1 parent 8f9c9dd commit 579cdf3

5 files changed

Lines changed: 19 additions & 13 deletions

File tree

ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.mk

Lines changed: 4 additions & 1 deletion

ports/cxd56/mpconfigport.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@
3232
// 64kiB stack
3333
#define CIRCUITPY_DEFAULT_STACK_SIZE (0x10000)
3434

35-
#include "py/circuitpy_mpconfig.h"
36-
37-
#define MICROPY_BYTES_PER_GC_BLOCK (32)
38-
39-
// CXD56 architecture uses fixed endpoint numbers
35+
// CXD56 architecture uses fixed endpoint numbers.
36+
// Override default definitions in circuitpy_mpconfig.h,
37+
// so define these before #include'ing that file.
4038
#define USB_CDC_EP_NUM_NOTIFICATION (3)
4139
#define USB_CDC_EP_NUM_DATA_OUT (2)
4240
#define USB_CDC_EP_NUM_DATA_IN (2)
4341
#define USB_MSC_EP_NUM_OUT (5)
4442
#define USB_MSC_EP_NUM_IN (4)
4543

44+
#include "py/circuitpy_mpconfig.h"
45+
46+
#define MICROPY_BYTES_PER_GC_BLOCK (32)
47+
4648
#define MICROPY_PORT_ROOT_POINTERS \
4749
CIRCUITPY_COMMON_ROOT_POINTERS \
4850

ports/nrf/boards/pca10100/mpconfigboard.mk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,24 @@ INTERNAL_FLASH_FILESYSTEM = 1
99

1010
CIRCUITPY_ALARM = 0
1111
CIRCUITPY_AUDIOMP3 = 0
12+
CIRCUITPY_BINASCII = 0
1213
CIRCUITPY_BITBANGIO = 0
13-
CIRCUITPY_BITMAPTOOLS = 0
14-
CIRCUITPY_BUSIO = 1
14+
CIRCUITPY_BUSDEVICE = 0
1515
CIRCUITPY_COUNTIO = 0
1616
CIRCUITPY_DISPLAYIO = 0
1717
CIRCUITPY_FRAMEBUFFERIO = 0
1818
CIRCUITPY_FREQUENCYIO = 0
1919
CIRCUITPY_I2CPERIPHERAL = 0
20+
CIRCUITPY_JSON = 0
2021
CIRCUITPY_MSGPACK = 0
2122
CIRCUITPY_NEOPIXEL_WRITE = 0
2223
CIRCUITPY_NVM = 0
2324
CIRCUITPY_PIXELBUF = 0
25+
CIRCUITPY_RE = 0
2426
CIRCUITPY_RGBMATRIX = 0
25-
CIRCUITPY_ROTARYIO = 0
26-
CIRCUITPY_RTC = 1
2727
CIRCUITPY_SDCARDIO = 0
28-
CIRCUITPY_TOUCHIO = 0
2928
CIRCUITPY_ULAB = 0
30-
CIRCUITPY_BUSDEVICE = 0
29+
3130
MICROPY_PY_ASYNC_AWAIT = 0
3231

3332
SUPEROPT_GC = 0

py/repl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ STATIC bool test_qstr(mp_obj_t obj, qstr name) {
153153
} else {
154154
// try builtin module
155155
return mp_map_lookup((mp_map_t *)&mp_builtin_module_map,
156-
MP_OBJ_NEW_QSTR(name), MP_MAP_LOOKUP);
156+
MP_OBJ_NEW_QSTR(name), MP_MAP_LOOKUP) != NULL;
157157
}
158158
}
159159

supervisor/usb.h

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)