Debian Codegraph @

ports/rp2/boards/SPARKFUN_XRP_CONTROLLER_BETA/mpconfigboard.h

raw
1 // Board and hardware specific configuration
2 #define MICROPY_HW_BOARD_NAME "SparkFun XRP Controller (Beta)"
3
4 // todo: We need something to check our binary size
5 #define MICROPY_HW_FLASH_STORAGE_BYTES (848 * 1024)
6
7 // Enable networking.
8 #define MICROPY_PY_NETWORK 1
9 #define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "XRP"
10
11 // CYW43 driver configuration.
12 #define CYW43_USE_SPI (1)
13 #define CYW43_LWIP (1)
14 #define CYW43_GPIO (1)
15 #define CYW43_SPI_PIO (1)
16
17 // For debugging mbedtls - also set
18 // Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
19 // #define MODUSSL_MBEDTLS_DEBUG_LEVEL 1
20
21 #define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT
22
23 // If this returns true for a pin then its irq will not be disabled on a soft reboot
24 int mp_hal_is_pin_reserved(int n);
25 #define MICROPY_HW_PIN_RESERVED(i) mp_hal_is_pin_reserved(i)
26
27 // Set the default I2C to I2C1 on pins 18 and 19 which route to the qwiic connector
28 #undef PICO_DEFAULT_I2C
29 #define PICO_DEFAULT_I2C (1)
30
31 #define MICROPY_HW_I2C1_SDA (18)
32 #define MICROPY_HW_I2C1_SCL (19)