circuitpython/ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.h
Scott Shawcroft 5d2b60cbf6
Redo RP2040 flash settings
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
2021-03-18 16:55:42 -07:00

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