23 #include "periph_cpu.h"
34 #define CLOCK_CORECLOCK (84000000UL)
36 #define CLOCK_EXT_OSC (12000000UL)
42 #define CLOCK_PLL_MUL (83)
43 #define CLOCK_PLL_DIV (12)
55 #ifndef CLOCK_SCLK_XTAL
56 #define CLOCK_SCLK_XTAL (0)
64 { .
dev = TC0, .id_ch0 = ID_TC0 },
65 { .dev = TC1, .id_ch0 = ID_TC3 }
68 #define TIMER_0_ISR isr_tc0
69 #define TIMER_1_ISR isr_tc3
71 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
79 #define RTT_FREQUENCY (1U)
97 .dev = (Uart *)USART0,
105 .dev = (Uart *)USART1,
113 .dev = (Uart *)USART3,
123 #define UART_0_ISR isr_uart
124 #define UART_1_ISR isr_usart0
125 #define UART_2_ISR isr_usart1
126 #define UART_3_ISR isr_usart3
128 #define UART_NUMOF ARRAY_SIZE(uart_config)
146 #define SPI_NUMOF ARRAY_SIZE(spi_config)
160 #define PWM_NUMOF (1U)
161 #define PWM_CHAN_NUMOF ARRAY_SIZE(pwm_chan)
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
static const uart_conf_t uart_config[]
UART configuration.
static const spi_conf_t spi_config[]
SPI configuration.
static const timer_conf_t timer_config[]
All timers on board.
@ GPIO_MUX_A
select peripheral function A
@ GPIO_MUX_B
select peripheral function B
PWM channel configuration.
gpio_t pin
pin used for pwm
SPI device configuration.
SPI_t * dev
pointer to the used SPI device
Timer device configuration.
TC0_t * dev
Pointer to the used as Timer device.
UART device configuration.
USART_t * dev
pointer to the used UART device