Debian Codegraph @

ports/rp2/boards/SIL_RP2040_SHIM/mpconfigboard.h

raw
1 // Board config for Silicognition RP2040-Shim
2
3 #define MICROPY_HW_BOARD_NAME "Silicognition RP2040-Shim"
4 #define PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H 1
5 #ifndef PICO_FLASH_SIZE_BYTES
6 #define PICO_FLASH_SIZE_BYTES (4 * 1024 * 1024)
7 #endif
8 #define MICROPY_HW_FLASH_STORAGE_BYTES (3 * 1024 * 1024)
9
10 #define MICROPY_HW_USB_VID (0x1209)
11 #define MICROPY_HW_USB_PID (0xF502)
12 #undef PICO_RP2040_B0_SUPPORTED
13 #define PICO_RP2040_B0_SUPPORTED 0
14
15 // Bus configuration
16 #define MICROPY_HW_I2C0_SCL (17)
17 #define MICROPY_HW_I2C0_SDA (16)
18
19 #define MICROPY_HW_SPI0_SCK (18)
20 #define MICROPY_HW_SPI0_MOSI (19)
21 #define MICROPY_HW_SPI0_MISO (20)
22
23 #define MICROPY_HW_SPI1_SCK (10)
24 #define MICROPY_HW_SPI1_MOSI (11)
25 #define MICROPY_HW_SPI1_MISO (12)
26
27 // Enable networking
28 #define MICROPY_PY_NETWORK (1)
29 #define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "RP2040-Shim"
30
31 // Wiznet HW config
32 #define MICROPY_HW_WIZNET_SPI_ID (1)
33 #define MICROPY_HW_WIZNET_SPI_BAUDRATE (20 * 1000 * 1000)
34 #define MICROPY_HW_WIZNET_SPI_SCK (10)
35 #define MICROPY_HW_WIZNET_SPI_MOSI (11)
36 #define MICROPY_HW_WIZNET_SPI_MISO (12)
37 #define MICROPY_HW_WIZNET_PIN_CS (21)
38 // Since the PoE-FeatherWing doesn't connect RST, map RST by
39 // default to an unused pin
40 #define MICROPY_HW_WIZNET_PIN_RST (9)
41
42 // NeoPixel GPIO23, power not toggleable
43 // Red user LED GPIO22