mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 09:30:24 +08:00
d02f089058
Pin defines are: - For Pico define board pins and the default LED pin (WL_GPIO25). - For Pico-W define board pins, external pins and the default LED pin (WL_GPIO0). - For the Nano-RP2040, define board pins, external pins and the default LED pin (GPIO25) - For all other boards, the pins.csv defines the LED pin (if any) for backwards compatibility with code that assumes there's always an LED pin.
23 lines
703 B
C
23 lines
703 B
C
// Board and hardware specific configuration
|
|
#define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico W"
|
|
|
|
// todo: We need something to check our binary size
|
|
#define MICROPY_HW_FLASH_STORAGE_BYTES (848 * 1024)
|
|
|
|
// Enable networking.
|
|
#define MICROPY_PY_NETWORK 1
|
|
|
|
// CYW43 driver configuration.
|
|
#define CYW43_USE_SPI (1)
|
|
#define CYW43_LWIP (1)
|
|
#define CYW43_GPIO (1)
|
|
#define CYW43_SPI_PIO (1)
|
|
|
|
// For debugging mbedtls - also set
|
|
// Debug level (0-4) 1=warning, 2=info, 3=debug, 4=verbose
|
|
// #define MODUSSL_MBEDTLS_DEBUG_LEVEL 1
|
|
|
|
#define MICROPY_HW_PIN_EXT_COUNT CYW43_WL_GPIO_COUNT
|
|
|
|
#define MICROPY_HW_PIN_RESERVED(i) ((i) == CYW43_PIN_WL_HOST_WAKE || (i) == CYW43_PIN_WL_REG_ON)
|