Skip to content

Commit d93d491

Browse files
committed
Cleaned up CircuitBrains Basic and Deluxe board definitions
1 parent 9e34483 commit d93d491

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

ports/atmel-samd/boards/circuitbrains_basic_m0/mpconfigboard.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
#define MICROPY_HW_LED_STATUS (&pin_PA14)
77

8-
#define SPI_FLASH_BAUDRATE (8000000)
9-
108
// On-board flash
119
#define SPI_FLASH_MOSI_PIN &pin_PA16
1210
#define SPI_FLASH_MISO_PIN &pin_PA18
@@ -18,11 +16,7 @@
1816
#define MICROPY_PORT_B (0)
1917
#define MICROPY_PORT_C (0)
2018

21-
// If you change this, then make sure to update the linker scripts as well to
22-
// make sure you don't overwrite code.
23-
#define CIRCUITPY_INTERNAL_NVM_SIZE 256
24-
25-
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - CIRCUITPY_INTERNAL_NVM_SIZE)
19+
#define SPI_FLASH_BAUDRATE (8000000)
2620

2721
#define CALIBRATE_CRYSTALLESS 1
2822

ports/atmel-samd/boards/circuitbrains_basic_m0/mpconfigboard.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
LD_FILE = boards/samd21x18-bootloader-external-flash-crystalless.ld
21
USB_VID = 0x04D8
32
USB_PID = 0xEC63
43
USB_PRODUCT = "CircuitBrains Basic"
@@ -14,4 +13,4 @@ LONGINT_IMPL = MPZ
1413

1514
CIRCUITPY_BITBANGIO = 0
1615
CIRCUITPY_FREQUENCYIO = 0
17-
CIRCUITPY_I2CSLAVE = 0
16+
CIRCUITPY_I2CSLAVE = 0

ports/atmel-samd/boards/circuitbrains_deluxe_m4/mpconfigboard.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515

1616
#define AUTORESET_DELAY_MS 500
1717

18-
// If you change this, then make sure to update the linker scripts as well to
19-
// make sure you don't overwrite code
20-
#define CIRCUITPY_INTERNAL_NVM_SIZE 8192
21-
22-
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)
23-
2418
#define BOARD_HAS_CRYSTAL 1
2519

2620
#define DEFAULT_I2C_BUS_SCL (&pin_PB03)
@@ -35,4 +29,4 @@
3529

3630
// USB is always used internally so skip the pin objects for it.
3731
#define IGNORE_PIN_PA24 1
38-
#define IGNORE_PIN_PA25 1
32+
#define IGNORE_PIN_PA25 1

ports/atmel-samd/boards/circuitbrains_deluxe_m4/mpconfigboard.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
LD_FILE = boards/samd51x19-bootloader-external-flash.ld
21
USB_VID = 0x04D8
32
USB_PID = 0xEC64
43
USB_PRODUCT = "CircuitBrains Deluxe"
@@ -14,4 +13,4 @@ LONGINT_IMPL = MPZ
1413

1514
CIRCUITPY_NETWORK = 1
1615
MICROPY_PY_WIZNET5K = 5500
17-
CIRCUITPY_PS2IO = 1
16+
CIRCUITPY_PS2IO = 1

0 commit comments

Comments
 (0)