2018-11-01 12:42:48 -04:00
|
|
|
#define MICROPY_HW_BOARD_NAME "CP32-M4"
|
2019-04-14 22:45:44 -04:00
|
|
|
#define MICROPY_HW_MCU_NAME "samd51j20"
|
2018-11-01 12:42:48 -04:00
|
|
|
|
2019-04-14 22:45:44 -04:00
|
|
|
#define MICROPY_HW_APA102_MOSI (&pin_PA12)
|
|
|
|
#define MICROPY_HW_APA102_SCK (&pin_PA13)
|
2018-11-01 12:42:48 -04:00
|
|
|
|
|
|
|
|
|
|
|
#define CIRCUITPY_MCU_FAMILY samd51
|
|
|
|
|
2021-03-15 09:57:36 -04:00
|
|
|
#define MICROPY_PORT_A (PORT_PA08 | PORT_PA09 | PORT_PA10 | PORT_PA11 | PORT_PA12 | PORT_PA13)
|
|
|
|
#define MICROPY_PORT_B (PORT_PB10 | PORT_PB11)
|
2018-11-01 12:42:48 -04:00
|
|
|
#define MICROPY_PORT_C (0)
|
|
|
|
#define MICROPY_PORT_D (0)
|
|
|
|
|
|
|
|
#define DEFAULT_I2C_BUS_SCL (&pin_PB09)
|
|
|
|
#define DEFAULT_I2C_BUS_SDA (&pin_PB08)
|
|
|
|
|
|
|
|
#define DEFAULT_SPI_BUS_SCK (&pin_PA22)
|
|
|
|
#define DEFAULT_SPI_BUS_MOSI (&pin_PA23)
|
|
|
|
#define DEFAULT_SPI_BUS_MISO (&pin_PA21)
|
|
|
|
|
2019-04-14 22:45:44 -04:00
|
|
|
#define DEFAULT_UART_BUS_RX (&pin_PB17)
|
|
|
|
#define DEFAULT_UART_BUS_TX (&pin_PB16)
|