20 #include "periph_cpu.h" 
   33 #define CLOCK_HF            cmuSelect_HFXO 
   35 #ifndef CLOCK_CORE_DIV 
   36 #define CLOCK_CORE_DIV      cmuClkDiv_1 
   39 #define CLOCK_LFA           cmuSelect_LFXO 
   42 #define CLOCK_LFB           cmuSelect_LFXO 
   45 #define CLOCK_LFE           cmuSelect_LFXO 
   63         .input = adcPosSelTEMP,
 
   64         .reference = adcRef1V25,
 
   65         .acq_time = adcAcqTime8
 
   69         .input = adcPosSelAVDD,
 
   70         .reference = adcRef5V,
 
   71         .acq_time = adcAcqTime8
 
   75 #define ADC_DEV_NUMOF       ARRAY_SIZE(adc_config) 
   76 #define ADC_NUMOF           ARRAY_SIZE(adc_channel_config) 
   87         .cmu = cmuClock_VDAC0,
 
   91 static const dac_chan_conf_t dac_channel_config[] = {
 
   98 #define DAC_DEV_NUMOF       ARRAY_SIZE(dac_config) 
   99 #define DAC_NUMOF           ARRAY_SIZE(dac_channel_config) 
  111         .loc = I2C_ROUTELOC0_SDALOC_LOC4 |
 
  112                I2C_ROUTELOC0_SCLLOC_LOC4,
 
  113         .cmu = cmuClock_I2C0,
 
  121         .loc = I2C_ROUTELOC0_SDALOC_LOC0 |
 
  122                I2C_ROUTELOC0_SCLLOC_LOC0,
 
  123         .cmu = cmuClock_I2C1,
 
  131         .loc = I2C_ROUTELOC0_SDALOC_LOC7 |
 
  132                I2C_ROUTELOC0_SCLLOC_LOC7,
 
  133         .cmu = cmuClock_I2C2,
 
  139 #define I2C_NUMOF           ARRAY_SIZE(i2c_config) 
  140 #define I2C_0_ISR           isr_i2c0 
  141 #define I2C_1_ISR           isr_i2c1 
  142 #define I2C_2_ISR           isr_i2c2 
  149 #ifndef RTT_FREQUENCY 
  150 #define RTT_FREQUENCY       (1U) 
  164         .loc = USART_ROUTELOC0_TXLOC_LOC0 |
 
  165                USART_ROUTELOC0_RXLOC_LOC0 |
 
  166                USART_ROUTELOC0_CLKLOC_LOC0,
 
  167         .cmu = cmuClock_USART0,
 
  168         .irq = USART0_RX_IRQn
 
  172 #define SPI_NUMOF           ARRAY_SIZE(spi_config) 
  185             .cmu = cmuClock_WTIMER0
 
  189             .cmu = cmuClock_WTIMER1
 
  197             .cmu = cmuClock_TIMER0
 
  201             .cmu = cmuClock_TIMER1
 
  209             .cmu = cmuClock_LETIMER0
 
  213             .cmu = cmuClock_LETIMER0
 
  215         .irq = LETIMER0_IRQn,
 
  220 #define TIMER_NUMOF         ARRAY_SIZE(timer_config) 
  221 #define TIMER_0_ISR         isr_wtimer1 
  222 #define TIMER_1_ISR         isr_timer1 
  223 #define TIMER_2_ISR         isr_letimer0 
  235         .loc = USART_ROUTELOC0_RXLOC_LOC4 |
 
  236                USART_ROUTELOC0_TXLOC_LOC4,
 
  237         .cmu = cmuClock_USART4,
 
  238         .irq = USART4_RX_IRQn,
 
  244         .loc = USART_ROUTELOC0_RXLOC_LOC4 |
 
  245                USART_ROUTELOC0_TXLOC_LOC4,
 
  246         .cmu = cmuClock_USART5,
 
  247         .irq = USART5_RX_IRQn,
 
  251 #define UART_NUMOF          ARRAY_SIZE(uart_config) 
  252 #define UART_0_ISR_RX       isr_usart4_rx 
  253 #define UART_1_ISR_RX       isr_usart5_rx 
#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 i2c_conf_t i2c_config[]
I2C configuration.
 
static const timer_conf_t timer_config[]
All timers on board.
 
static const adc_conf_t adc_config[]
ADC configuration.
 
static const dac_conf_t dac_config[]
DAC configuration.
 
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
 
ADC channel configuration.
 
ADC device configuration.
 
ADC_TypeDef * dev
ADC device used.
 
DAC line configuration data.
 
I2C configuration structure.
 
TWI_t * dev
Pointer to hardware module registers.
 
SPI_t * dev
pointer to the used SPI device
 
SPI device configuration.
 
Timer device configuration.
 
timer_dev_t prescaler
the lower neighboring timer (not initialized for LETIMER)
 
void * dev
TIMER_TypeDef or LETIMER_TypeDef device used.
 
UART device configuration.
 
USART_t * dev
pointer to the used UART device
 
Common configuration for EFM32 OTG FS peripheral.