22 #include "periph_cpu.h" 
   43         .irqn = UART0_IRQ_IRQn
 
   49         .irqn = UART1_IRQ_IRQn
 
   53 #define UART_0_ISR      (isr_uart0) 
   54 #define UART_1_ISR      (isr_uart1) 
   56 #define UART_NUMOF      ARRAY_SIZE(uart_config) 
   73 #define SPI_NUMOF      ARRAY_SIZE(spi_config) 
   77         .
irqn = TIMER_IRQ_0_IRQn
 
   80         .irqn = TIMER_IRQ_1_IRQn
 
   83         .irqn = TIMER_IRQ_2_IRQn
 
   86         .irqn = TIMER_IRQ_3_IRQn
 
   93         .ch = timer0_channel_config,
 
   98 #define TIMER_0_ISRA    isr_timer0 
   99 #define TIMER_0_ISRB    isr_timer1 
  100 #define TIMER_0_ISRC    isr_timer2 
  101 #define TIMER_0_ISRD    isr_timer3 
  103 #define TIMER_NUMOF     ARRAY_SIZE(timer_config) 
  113                                         { .pin = 
GPIO_PIN(0, 27), .chan = 1},
 
  114                                         { .pin = 
GPIO_PIN(0, 28), .chan = 2},
 
  117 #define ADC_NUMOF           ARRAY_SIZE(adc_config) 
  127 #define I2C_NUMOF       _periph_numof_is_unsigned_0() 
  140         .irqn0 = PIO0_IRQ_0_IRQn,
 
  141         .irqn1 = PIO0_IRQ_1_IRQn
 
  145         .irqn0 = PIO1_IRQ_0_IRQn,
 
  146         .irqn1 = PIO1_IRQ_1_IRQn
 
  150 #define PIO_0_ISR0      isr_pio00    
  151 #define PIO_0_ISR1      isr_pio01    
  152 #define PIO_1_ISR0      isr_pio10    
  153 #define PIO_1_ISR1      isr_pio11    
  155 #define PIO_NUMOF       ARRAY_SIZE(pio_config)   
  157 #if defined(PIO_I2C_CONFIG) || defined(DOXYGEN) 
  170 #define PIO_I2C_NUMOF   ARRAY_SIZE(pio_i2c_config) 
  172 #define pio_i2c_config  ((pio_i2c_conf_t *)NULL) 
  184             { .pin = 
GPIO_PIN(0, 25), .cc_chan = 1 },   
 
  190 #define PWM_NUMOF ARRAY_SIZE(pwm_config) 
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
 
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
 
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.
 
static const adc_conf_t adc_config[]
ADC configuration.
 
static const pwm_conf_t pwm_config[]
Actual PWM configuration.
 
static unsigned _periph_numof_is_unsigned_0(void)
Silences the warning when an unsigned value is compared to 0.
 
static const pio_conf_t pio_config[]
Array of PIO configurations.
 
static const pio_i2c_conf_t pio_i2c_config[]
PIO I2C configuration.
 
#define ARRAY_SIZE(a)
Calculate the number of elements in a static array.
 
#define UART0
UART0 register bank.
 
#define UART1
UART1 register bank.
 
Common macros and compiler attributes/pragmas configuration.
 
ADC device configuration.
 
gpio_t pin
pin connected to the channel
 
PIO0_Type * dev
PIO device.
 
PIO I2C configuration type.
 
PWM device configuration.
 
uint8_t pwm_slice
PWM slice instance, must be < to PWM_SLICE_NUMOF.
 
SPI device configuration.
 
SPI_t * dev
pointer to the used SPI device
 
Configuration type of a timer channel.
 
IRQn_Type irqn
timer channel interrupt number
 
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