Configuration of CPU peripherals for the SLSTK3402A starter kit.
More...
#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_HFXO |
◆ CLOCK_LFA
#define CLOCK_LFA cmuSelect_LFXO |
◆ CLOCK_LFB
#define CLOCK_LFB cmuSelect_LFXO |
◆ CLOCK_LFE
#define CLOCK_LFE cmuSelect_LFXO |
◆ I2C_0_ISR
◆ I2C_NUMOF
◆ RTT_FREQUENCY
#define RTT_FREQUENCY (1U) /* in Hz */ |
◆ SPI_NUMOF
◆ TIMER_0_ISR
#define TIMER_0_ISR isr_wtimer1 |
◆ TIMER_1_ISR
#define TIMER_1_ISR isr_timer1 |
◆ TIMER_2_ISR
#define TIMER_2_ISR isr_letimer0 |
◆ TIMER_NUMOF
◆ UART_0_ISR_RX
#define UART_0_ISR_RX isr_usart0_rx |
◆ UART_1_ISR_RX
#define UART_1_ISR_RX isr_leuart0 |
◆ 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 63 of file periph_conf.h.
◆ adc_config
Initial value:= {
{
.dev = ADC0,
.cmu = cmuClock_ADC0,
}
}
Definition at line 56 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = I2C0,
.loc = I2C_ROUTELOC0_SDALOC_LOC15 |
I2C_ROUTELOC0_SCLLOC_LOC15,
.cmu = cmuClock_I2C0,
.irq = I2C0_IRQn,
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
Definition at line 86 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = USART2,
.loc = USART_ROUTELOC0_RXLOC_LOC1 |
USART_ROUTELOC0_TXLOC_LOC1 |
USART_ROUTELOC0_CLKLOC_LOC1,
.cmu = cmuClock_USART2,
.irq = USART2_RX_IRQn
}
}
Definition at line 116 of file periph_conf.h.
◆ timer_config
◆ uart_config
Initial value:= {
{
.dev = USART0,
.loc = USART_ROUTELOC0_RXLOC_LOC0 |
USART_ROUTELOC0_TXLOC_LOC0,
.cmu = cmuClock_USART0,
.irq = USART0_RX_IRQn
},
{
.dev = LEUART0,
.loc = LEUART_ROUTELOC0_RXLOC_LOC18 |
LEUART_ROUTELOC0_TXLOC_LOC18,
.cmu = cmuClock_LEUART0,
.irq = LEUART0_IRQn
}
}
Definition at line 188 of file periph_conf.h.