File tree Expand file tree Collapse file tree
circuitplayground_express Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#define MICROPY_HW_BOARD_NAME "Adafruit CircuitPlayground Express"
22#define MICROPY_HW_MCU_NAME "samd21g18"
33
4+ #define MICROPY_LONGINT_IMPL MICROPY_LONGINT_IMPL_MPZ
5+ #define MP_SSIZE_MAX 0x7fffffff
6+
47// Don't allow touch on A0 (PA02), because it's connected to the speaker.
58#define PA02_NO_TOUCH (true)
69
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ SPI_FLASH_FILESYSTEM = 1
99CHIP_VARIANT = SAMD21G18A
1010CHIP_FAMILY = samd21
1111
12+ MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
13+
1214# Include these Python libraries in firmware.
1315FROZEN_MPY_DIRS += $(TOP ) /frozen/Adafruit_CircuitPython_BusDevice
1416FROZEN_MPY_DIRS += $(TOP ) /frozen/Adafruit_CircuitPython_CircuitPlayground
Original file line number Diff line number Diff line change 11#define MICROPY_HW_BOARD_NAME "Adafruit Feather M0 Express"
22#define MICROPY_HW_MCU_NAME "samd21g18"
33
4+ #define MICROPY_LONGINT_IMPL MICROPY_LONGINT_IMPL_MPZ
5+ #define MP_SSIZE_MAX 0x7fffffff
6+
47#define MICROPY_HW_NEOPIXEL (&pin_PA06)
58
69// Clock rates are off: Salae reads 12MHz which is the limit even though we set it to the safer 8MHz.
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ SPI_FLASH_FILESYSTEM = 1
88
99CHIP_VARIANT = SAMD21G18A
1010CHIP_FAMILY = samd21
11+
12+ MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
Original file line number Diff line number Diff line change 11#define MICROPY_HW_BOARD_NAME "Adafruit Itsy Bitsy M0 Express"
22#define MICROPY_HW_MCU_NAME "samd21g18"
33
4+ #define MICROPY_LONGINT_IMPL MICROPY_LONGINT_IMPL_MPZ
5+ #define MP_SSIZE_MAX 0x7fffffff
6+
47#define CIRCUITPY_BITBANG_APA102
58#define MICROPY_HW_APA102_MOSI (&pin_PA01)
69#define MICROPY_HW_APA102_SCK (&pin_PA00)
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ SPI_FLASH_FILESYSTEM = 1
99CHIP_VARIANT = SAMD21G18A
1010CHIP_FAMILY = samd21
1111
12+ MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
Original file line number Diff line number Diff line change 11#define MICROPY_HW_BOARD_NAME "Adafruit Metro M0 Express"
22#define MICROPY_HW_MCU_NAME "samd21g18"
33
4+ #define MICROPY_LONGINT_IMPL MICROPY_LONGINT_IMPL_MPZ
5+ #define MP_SSIZE_MAX 0x7fffffff
6+
47#define MICROPY_HW_LED_TX PIN_PA27
58//#define MICROPY_HW_LED_RX PIN_PA31
69
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ SPI_FLASH_FILESYSTEM = 1
88
99CHIP_VARIANT = SAMD21G18A
1010CHIP_FAMILY = samd21
11+
12+ MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
Original file line number Diff line number Diff line change @@ -141,8 +141,10 @@ typedef long mp_off_t;
141141#define MICROPY_PY_SYS_PLATFORM "Atmel SAMD21"
142142#define PORT_HEAP_SIZE (16384 + 4096)
143143// If you change MICROPY_LONGINT_IMPL, also change MPY_TOOL_LONGINT_IMPL in mpconfigport.mk.
144+ #ifndef MICROPY_LONGINT_IMPL
144145#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
145146#endif
147+ #endif
146148
147149#ifdef SAMD51
148150#define CIRCUITPY_MCU_FAMILY samd51
Original file line number Diff line number Diff line change 22# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
33# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
44ifeq ($(CHIP_FAMILY ) , samd21)
5+ ifndef MPY_TOOL_LONGINT_IMPL
56MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
67endif
8+ endif
79
810ifeq ($(CHIP_FAMILY ) , samd51)
911MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
You can’t perform that action at this time.
0 commit comments