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
25 lines
699 B
C
25 lines
699 B
C
#define MICROPY_HW_BOARD_NAME "Pimoroni Tiny 2040"
|
|
#define MICROPY_HW_MCU_NAME "rp2040"
|
|
|
|
#define MICROPY_HW_LED_R (&pin_GPIO18)
|
|
#define MICROPY_HW_LED_G (&pin_GPIO19)
|
|
#define MICROPY_HW_LED_B (&pin_GPIO20)
|
|
|
|
#define MICROPY_HW_USER_SW (&pin_GPIO23)
|
|
|
|
// These pins are unconnected
|
|
#define IGNORE_PIN_GPIO8 1
|
|
#define IGNORE_PIN_GPIO9 1
|
|
#define IGNORE_PIN_GPIO10 1
|
|
#define IGNORE_PIN_GPIO11 1
|
|
#define IGNORE_PIN_GPIO12 1
|
|
#define IGNORE_PIN_GPIO13 1
|
|
#define IGNORE_PIN_GPIO14 1
|
|
#define IGNORE_PIN_GPIO15 1
|
|
#define IGNORE_PIN_GPIO16 1
|
|
#define IGNORE_PIN_GPIO17 1
|
|
#define IGNORE_PIN_GPIO21 1
|
|
#define IGNORE_PIN_GPIO22 1
|
|
#define IGNORE_PIN_GPIO24 1
|
|
#define IGNORE_PIN_GPIO25 1
|