2021-09-20 22:22:02 +00:00
|
|
|
// vim: set et ts=8:
|
2021-07-03 00:12:53 +00:00
|
|
|
|
2021-09-16 01:33:46 +00:00
|
|
|
#ifndef BSP_PINOUT_M_DEFAULT_H_
|
|
|
|
#define BSP_PINOUT_M_DEFAULT_H_
|
2021-07-03 00:12:53 +00:00
|
|
|
|
|
|
|
// UART config
|
2021-07-13 00:15:37 +00:00
|
|
|
#define PINOUT_UART_TX 8
|
|
|
|
#define PINOUT_UART_RX 9
|
2021-07-03 00:12:53 +00:00
|
|
|
#define PINOUT_UART_CTS 10
|
|
|
|
#define PINOUT_UART_RTS 11
|
|
|
|
#define PINOUT_UART_INTERFACE uart1
|
|
|
|
#define PINOUT_UART_BAUDRATE 115200
|
|
|
|
|
|
|
|
// JTAG config
|
|
|
|
#define PINOUT_JTAG_TCK 2 // == SWCLK
|
|
|
|
#define PINOUT_JTAG_TMS 3 // == SWDIO
|
2021-07-13 00:15:37 +00:00
|
|
|
#define PINOUT_JTAG_TDI 4
|
|
|
|
#define PINOUT_JTAG_TDO 5
|
|
|
|
#define PINOUT_JTAG_nTRST 6
|
|
|
|
#define PINOUT_JTAG_nRESET 7
|
2021-09-24 01:41:25 +00:00
|
|
|
#define PINOUT_JTAG_PIO_DEV pio0
|
|
|
|
#define PINOUT_JTAG_SWO_DEV pio1
|
2021-07-03 00:12:53 +00:00
|
|
|
|
|
|
|
// SPI config
|
|
|
|
#define PINOUT_SPI_DEV spi1
|
|
|
|
#define PINOUT_SPI_SCLK 14
|
|
|
|
#define PINOUT_SPI_MOSI 15
|
|
|
|
#define PINOUT_SPI_MISO 12
|
|
|
|
#define PINOUT_SPI_nCS 13
|
|
|
|
|
|
|
|
// I2C config
|
|
|
|
#define PINOUT_I2C_DEV i2c0
|
|
|
|
#define PINOUT_I2C_SCL 21
|
|
|
|
#define PINOUT_I2C_SDA 20
|
|
|
|
|
|
|
|
// LED config
|
|
|
|
|
|
|
|
// you can change these two as you like
|
|
|
|
#define PINOUT_LED_CONNECTED 1
|
|
|
|
#define PINOUT_LED_RUNNING 0
|
|
|
|
|
|
|
|
#ifndef PINOUT_LED
|
|
|
|
#ifndef PICO_DEFAULT_LED_PIN
|
|
|
|
#error "PICO_DEFAULT_LED_PIN is not defined, run PICOPROBE_LED=<led_pin> cmake"
|
|
|
|
#elif PICO_DEFAULT_LED_PIN == -1
|
|
|
|
#error "PICO_DEFAULT_LED_PIN is defined as -1, run PICOPROBE_LED=<led_pin> cmake"
|
|
|
|
#else
|
|
|
|
#define PINOUT_LED PICO_DEFAULT_LED_PIN
|
|
|
|
#endif
|
|
|
|
#endif /* PICOPROBE_LED */
|
|
|
|
|
2021-09-20 22:22:02 +00:00
|
|
|
/*
|
|
|
|
* HARDWARE RESOURCE USAGE:
|
|
|
|
*
|
|
|
|
* IRQ:
|
|
|
|
* DMA0 DAP-UART
|
|
|
|
* UART1 DAP-UART
|
|
|
|
*
|
|
|
|
* DMA: (max. 12)
|
|
|
|
* DAP-UART 2
|
|
|
|
* SWO-UART 1
|
|
|
|
* SWO-MC 1
|
|
|
|
*
|
|
|
|
* PIO:
|
2021-09-24 01:41:25 +00:00
|
|
|
* PIO0: (max. 4)
|
|
|
|
* JTAG 1
|
2021-09-25 11:22:09 +00:00
|
|
|
* SWD 1
|
2021-09-24 01:41:25 +00:00
|
|
|
* PIO1: (max. 4)
|
|
|
|
* SWO 2
|
2021-09-20 22:22:02 +00:00
|
|
|
*
|
|
|
|
* UART0: stdio
|
|
|
|
*
|
|
|
|
* UART1: USB-CDC/DAP-UART
|
|
|
|
*
|
|
|
|
* SPI:
|
|
|
|
* 1: SPI access
|
|
|
|
*
|
|
|
|
* I2C:
|
|
|
|
* 0: I2C access
|
|
|
|
*
|
|
|
|
* ADC:
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-07-03 00:12:53 +00:00
|
|
|
#endif
|
|
|
|
|