Configuration of CPU peripherals for the STK3700 starter kit.
More...
#include "cpu.h"
#include "periph_cpu.h"
#include "em_cmu.h"
#include "usbdev_cfg_otg_fs.h"
Go to the source code of this file.
|
#define | CLOCK_HF cmuSelect_HFXO |
|
#define | CLOCK_CORE_DIV cmuClkDiv_1 |
|
#define | CLOCK_LFA cmuSelect_LFXO |
|
#define | CLOCK_LFB cmuSelect_LFXO |
|
|
#define | RTT_FREQUENCY (1U) /* in Hz */ |
|
|
The implementation uses two timers in cascade mode.
|
#define | TIMER_NUMOF ARRAY_SIZE(timer_config) |
|
#define | TIMER_0_ISR isr_timer1 |
|
#define | TIMER_1_ISR isr_letimer0 |
|
static const timer_conf_t | timer_config [] |
|
◆ adc_channel_config
Initial value:= {
{
.dev = 0,
.input = adcSingleInputTemp,
.reference = adcRef1V25,
.acq_time = adcAcqTime8
},
{
.dev = 0,
.input = adcSingleInputVDDDiv3,
.reference = adcRef1V25,
.acq_time = adcAcqTime8
}
}
Definition at line 61 of file periph_conf.h.
◆ adc_config
Initial value:= {
{
.dev = ADC0,
.cmu = cmuClock_ADC0,
}
}
Definition at line 54 of file periph_conf.h.
◆ dac_channel_config
const dac_chan_conf_t dac_channel_config[] |
|
static |
Initial value:= {
{
.dev = 0,
.index = 1,
}
}
Definition at line 92 of file periph_conf.h.
◆ dac_config
Initial value:= {
{
.dev = DAC0,
.ref = dacRefVDD,
.cmu = cmuClock_DAC0,
}
}
Definition at line 84 of file periph_conf.h.
◆ i2c_config
Initial value:= {
{
.dev = I2C0,
.loc = I2C_ROUTE_LOCATION_LOC1,
.cmu = cmuClock_I2C0,
.irq = I2C0_IRQn,
},
{
.dev = I2C1,
.loc = I2C_ROUTE_LOCATION_LOC0,
.cmu = cmuClock_I2C1,
.irq = I2C1_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 107 of file periph_conf.h.
◆ pwm_channel_config
Initial value:= {
{
.index = 2,
.loc = TIMER_ROUTE_LOCATION_LOC1
}
}
Definition at line 137 of file periph_conf.h.
◆ pwm_config
Initial value:= {
{
.dev = TIMER3,
.cmu = cmuClock_TIMER3,
.irq = TIMER3_IRQn,
.channels = 1,
.channel = pwm_channel_config
}
}
Definition at line 145 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = USART1,
.loc = USART_ROUTE_LOCATION_LOC1,
.cmu = cmuClock_USART1,
.irq = USART1_RX_IRQn
},
{
.dev = USART2,
.loc = USART_ROUTE_LOCATION_LOC0,
.cmu = cmuClock_USART2,
.irq = USART2_RX_IRQn
}
}
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition at line 172 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 202 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.loc = UART_ROUTE_LOCATION_LOC1,
.cmu = cmuClock_UART0,
.irq = UART0_RX_IRQn
},
{
.dev = LEUART0,
.loc = LEUART_ROUTE_LOCATION_LOC0,
.cmu = cmuClock_LEUART0,
.irq = LEUART0_IRQn
}
}
#define UART0
UART0 register bank.
Definition at line 238 of file periph_conf.h.