Skip to content

Commit 579cdf3

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

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ LONGINT_IMPL = MPZ
1212
# Not needed.
1313
CIRCUITPY_AUDIOBUSIO = 0
1414
CIRCUITPY_AUDIOMP3 = 0
15-
CIRCUITPY_BITMAPTOOLS = 0
1615
CIRCUITPY_BLEIO_HCI = 0
1716
CIRCUITPY_DISPLAYIO = 0
1817
CIRCUITPY_FRAMEBUFFERIO = 0
18+
CIRCUITPY_MSGPACK = 0
1919
CIRCUITPY_PS2IO = 0
2020
CIRCUITPY_RGBMATRIX = 0
21+
CIRCUITPY_ROTARYIO = 0
22+
CIRCUITPY_TOUCHIO = 0
23+
2124
CIRCUITPY_ULAB = 0
2225

2326
# Override optimization to keep binary small

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
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#define MICROPY_INCLUDED_SUPERVISOR_USB_H
2929

3030
#include <stdbool.h>
31+
#include <stddef.h>
32+
#include <stdint.h>
3133

3234
// Ports must call this as frequently as they can in order to keep the USB
3335
// connection alive and responsive. Normally this is called from background

0 commit comments

Comments
 (0)