Configuration of CPU peripherals for the IKEA TRÅDFRI modules.
More...
Configuration of CPU peripherals for the IKEA TRÅDFRI modules.
- Author
- Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com
Definition in file periph_conf.h.
#include "cpu.h"
#include "periph_cpu.h"
#include "em_cmu.h"
Go to the source code of this file.
◆ ADC_DEV_NUMOF
◆ ADC_NUMOF
◆ CLOCK_CORE_DIV
#define CLOCK_CORE_DIV cmuClkDiv_1 |
◆ CLOCK_HF
#define CLOCK_HF cmuSelect_HFRCO |
◆ CLOCK_LFA
#define CLOCK_LFA cmuSelect_LFRCO |
◆ CLOCK_LFB
#define CLOCK_LFB cmuSelect_LFRCO |
◆ CLOCK_LFE
#define CLOCK_LFE cmuSelect_LFRCO |
◆ EFM32_USE_LEUART
#define EFM32_USE_LEUART 0 |
◆ RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */ |
◆ SPI_NUMOF
◆ TIMER_0_ISR
#define TIMER_0_ISR isr_timer1 |
◆ TIMER_1_ISR
#define TIMER_1_ISR isr_letimer0 |
◆ TIMER_NUMOF
◆ UART_0_ISR_RX
#define UART_0_ISR_RX isr_usart0_rx |
◆ UART_NUMOF
◆ adc_channel_config
Initial value:= {
{
.dev = 0,
.input = adcPosSelTEMP,
.reference = adcRef1V25,
.acq_time = adcAcqTime8
},
{
.dev = 0,
.input = adcPosSelAVDD,
.reference = adcRef5V,
.acq_time = adcAcqTime8
}
}
Definition at line 62 of file periph_conf.h.
◆ adc_config
Initial value:= {
{
.dev = ADC0,
.cmu = cmuClock_ADC0,
}
}
Definition at line 55 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = USART1,
.loc = USART_ROUTELOC0_RXLOC_LOC21 |
USART_ROUTELOC0_TXLOC_LOC23 |
USART_ROUTELOC0_CLKLOC_LOC19,
.cmu = cmuClock_USART1,
.irq = USART1_RX_IRQn
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition at line 94 of file periph_conf.h.
◆ timer_config
Initial value:= {
{
.prescaler = {
.dev = TIMER0,
.cmu = cmuClock_TIMER0
},
.timer = {
.dev = TIMER1,
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 3
},
{
.prescaler = {
.dev = NULL,
.cmu = cmuClock_LETIMER0
},
.timer = {
.dev = LETIMER0,
.cmu = cmuClock_LETIMER0
},
.irq = LETIMER0_IRQn,
.channel_numof = 2
}
}
Definition at line 118 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = USART0,
.loc = USART_ROUTELOC0_RXLOC_LOC9 |
USART_ROUTELOC0_TXLOC_LOC9,
.cmu = cmuClock_USART0,
.irq = USART0_RX_IRQn
}
}
Definition at line 180 of file periph_conf.h.