5d2b60cbf6
This switches stage2 to C and uses Jinja to change the C code based on flash settings from https://github.com/adafruit/nvm.toml. It produces the fastest settings for the given set of external flashes. Flash size is no longer hard coded so switching flashes with similar capabilities but different sizes should *just work*. This PR also places "ITCM" code in RAM to save the XIP cache for code execution. Further optimization is possible. A blink code.py still requires a number of flash fetches every blink. Fixes #4041
15 lines
431 B
C
15 lines
431 B
C
#define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040"
|
|
#define MICROPY_HW_MCU_NAME "rp2040"
|
|
|
|
#define MICROPY_HW_NEOPIXEL (&pin_GPIO16)
|
|
|
|
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO3)
|
|
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
|
|
|
|
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO18)
|
|
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO19)
|
|
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO20)
|
|
|
|
#define DEFAULT_UART_BUS_RX (&pin_GPIO1)
|
|
#define DEFAULT_UART_BUS_TX (&pin_GPIO0)
|