8000 limit spitarget to only boards with enough memory for an additional m… · WaveyD/circuitpython@a4a5632 · GitHub
[go: up one dir, main page]

Skip to content

Commit a4a5632

Browse files
limit spitarget to only boards with enough memory for an additional module
1 parent d64ce00 commit a4a5632

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ports/atmel-samd/mpconfigport.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ CIRCUITPY_MAX3421E ?= $(HAS_1MB_FLASH)
119119
CIRCUITPY_PS2IO ?= 1
120120
CIRCUITPY_RGBMATRIX ?= $(CIRCUITPY_FRAMEBUFFERIO)
121121
CIRCUITPY_SAMD ?= 1
122-
CIRCUITPY_SPITARGET ?= 1
122+
CIRCUITPY_SPITARGET ?= $(HAS_1MB_FLASH)
123123
CIRCUITPY_SYNTHIO_MAX_CHANNELS = 12
124124
CIRCUITPY_ULAB_OPTIMIZE_SIZE ?= 1
125125
CIRCUITPY_WATCHDOG ?= 1

shared-bindings/alarm/SleepMemory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
//| """``sleep_memory`` is ``True`` if its length is greater than zero.
3939
//| This is an easy way to check for its existence.
4040
//| """
41-
//|
4241
//| ...
42+
//|
4343
//| def __len__(self) -> int:
4444
//| """Return the length. This is used by (`len`)"""
4545
//| ...

shared-bindings/spitarget/SPITarget.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
//| :param ~microcontroller.Pin miso: The pin transferring data from the secondary to the main
3232
//| :param ~microcontroller.Pin ss: The secondary selection pin"""
3333
//| ...
34+
//|
3435
static mp_obj_t spitarget_spi_target_make_new(const mp_obj_type_t *type, size_t n_args, size A7B7 _t n_kw, const mp_obj_t *all_args) {
3536
spitarget_spi_target_obj_t *self = mp_obj_malloc(spitarget_spi_target_obj_t, &spitarget_spi_target_type);
3637
enum { ARG_sck, ARG_mosi, ARG_miso, ARG_ss };
@@ -90,6 +91,7 @@ static MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(spitarget_spi_target___exit___obj, 4,
9091
//| :param bytearray miso_packet: Packet data to be sent from secondary to main on next request.
9192
//| :param bytearray mosi_packet: Packet to be filled with data from main on next request.
9293
//| """
94+
//|
9395
static mp_obj_t spitarget_spi_target_load_packet(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
9496
mp_check_self(mp_obj_is_type(pos_args[0], &spitarget_spi_target_type));
9597
spitarget_spi_target_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);
@@ -126,6 +128,7 @@ static MP_DEFINE_CONST_FUN_OBJ_KW(spitarget_spi_target_load_packet_obj, 1, spita
126128
//| :return: True if the transfer is complete, or False if no response received before the timeout
127129
//| """
128130
//|
131+
//|
129132
static mp_obj_t spitarget_spi_target_wait_transfer(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
130133
mp_check_self(mp_obj_is_type(pos_args[0], &spitarget_spi_target_type));
131134
spitarget_spi_target_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);

0 commit comments

Comments
 (0)
0