mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
boards/arduino-zero: adapted periph_conf
- changed names of pad selection macros according to the CPU changes
This commit is contained in:
parent
76b0835d4e
commit
b514c2eb09
@ -106,9 +106,22 @@ extern "C" {
|
||||
* @{
|
||||
*/
|
||||
static const uart_conf_t uart_config[] = {
|
||||
/* device, RX pin, TX pin, mux, RX pad, TX pad */
|
||||
{&SERCOM5->USART, GPIO_PIN(PB,23), GPIO_PIN(PB,22), GPIO_MUX_D, SERCOM_RX_PAD_3, UART_TX_PAD_2},
|
||||
{&SERCOM0->USART, GPIO_PIN(PA,11), GPIO_PIN(PA,10), GPIO_MUX_C, SERCOM_RX_PAD_3, UART_TX_PAD_2},
|
||||
{
|
||||
.dev = &SERCOM5->USART,
|
||||
.rx_pin = GPIO_PIN(PB,23),
|
||||
.tx_pin = GPIO_PIN(PB,22),
|
||||
.mux = GPIO_MUX_D,
|
||||
.rx_pad = UART_PAD_RX_3,
|
||||
.tx_pad = UART_PAD_TX_2
|
||||
},
|
||||
{
|
||||
.dev = &SERCOM0->USART,
|
||||
.rx_pin = GPIO_PIN(PA,11),
|
||||
.tx_pin = GPIO_PIN(PA,10),
|
||||
.mux = GPIO_MUX_C,
|
||||
.rx_pad = UART_PAD_RX_3,
|
||||
.tx_pad = UART_PAD_TX_2
|
||||
}
|
||||
};
|
||||
|
||||
/* interrupt function name mapping */
|
||||
@ -182,10 +195,10 @@ static const pwm_conf_t pwm_config[] = {
|
||||
#define SPI_0_SCLK_MUX GPIO_MUX_D
|
||||
#define SPI_0_MISO GPIO_PIN(PA, 12)
|
||||
#define SPI_0_MISO_MUX GPIO_MUX_D
|
||||
#define SPI_0_MISO_PAD SERCOM_RX_PAD_0
|
||||
#define SPI_0_MISO_PAD SPI_PAD_MISO_0
|
||||
#define SPI_0_MOSI GPIO_PIN(PB, 10)
|
||||
#define SPI_0_MOSI_MUX GPIO_MUX_D
|
||||
#define SPI_0_MOSI_PAD SPI_PAD_2_SCK_3
|
||||
#define SPI_0_MOSI_PAD SPI_PAD_MOSI_2_SCK_3
|
||||
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user