boards/common/arduino-due/include/periph_conf.h

Peripheral MCU configuration for Arduino Due based boards.

CLOCK_CORECLOCK
1
(84000000UL)
CLOCK_EXT_OSC
1
(12000000UL)
CLOCK_PLL_MUL
1
(83)
CLOCK_PLL_DIV
1
(12)
CLOCK_FWS
1
(4)         /* 4 is save for 84MHz */
TIMER_0_ISR
1
isr_tc0
TIMER_1_ISR
1
isr_tc3
TIMER_NUMOF
1
(sizeof(timer_config) / sizeof(timer_config[0]))
const timer_conf_t timer_config()
1
2
3
4
= {
    { .dev = TC0, .id_ch0 = ID_TC0 },
    { .dev = TC1, .id_ch0 = ID_TC3 }
}
UART_0_ISR
1
isr_uart
UART_1_ISR
1
isr_usart0
UART_2_ISR
1
isr_usart1
UART_3_ISR
1
isr_usart3
UART_NUMOF
1
(sizeof(uart_config) / sizeof(uart_config[0]))
const uart_conf_t uart_config()
SPI_NUMOF
1
(sizeof(spi_config) / sizeof(spi_config[0]))
const spi_conf_t spi_config()
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
= {
    {
        .dev   = SPI0,
        .id    = ID_SPI0,
        .clk   = GPIO_PIN(PA, 27),
        .mosi  = GPIO_PIN(PA, 26),
        .miso  = GPIO_PIN(PA, 25),
        .mux   = GPIO_MUX_A
    }
}
PWM_NUMOF
1
(1U)
PWM_CHAN_NUMOF
1
(sizeof(pwm_chan) / sizeof(pwm_chan[0]))
const pwm_chan_conf_t pwm_chan()
1
2
3
4
5
6
= {
    { .pin = GPIO_PIN(PC, 21), .hwchan = 4 },
    { .pin = GPIO_PIN(PC, 22), .hwchan = 5 },
    { .pin = GPIO_PIN(PC, 23), .hwchan = 6 },
    { .pin = GPIO_PIN(PC, 24), .hwchan = 7 }
}