Configuration of CPU peripherals for the SLSTK3701A 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 | CLOCK_LFE cmuSelect_LFXO |
|
|
#define | RTT_FREQUENCY (1U) |
|
|
The implementation uses two timers in cascade mode.
|
#define | TIMER_NUMOF ARRAY_SIZE(timer_config) |
|
#define | TIMER_0_ISR isr_wtimer1 |
|
#define | TIMER_1_ISR isr_timer1 |
|
#define | TIMER_2_ISR isr_letimer0 |
|
static const timer_conf_t | timer_config [] |
|
◆ 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 64 of file periph_conf.h.
◆ adc_config
Initial value:= {
{
.dev = ADC0,
.cmu = cmuClock_ADC0,
}
}
Definition at line 57 of file periph_conf.h.
◆ dac_channel_config
const dac_chan_conf_t dac_channel_config[] |
|
static |
Initial value:= {
{
.dev = 0,
.index = 0,
},
}
Definition at line 95 of file periph_conf.h.
◆ dac_config
Initial value:= {
{
.dev = VDAC0,
.ref = vdacRefAvdd,
.cmu = cmuClock_VDAC0,
},
}
Definition at line 87 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = USART0,
.loc = USART_ROUTELOC0_TXLOC_LOC0 |
USART_ROUTELOC0_RXLOC_LOC0 |
USART_ROUTELOC0_CLKLOC_LOC0,
.cmu = cmuClock_USART0,
.irq = USART0_RX_IRQn
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition at line 162 of file periph_conf.h.
◆ uart_config
Initial value:= {
{
.dev = USART4,
.loc = USART_ROUTELOC0_RXLOC_LOC4 |
USART_ROUTELOC0_TXLOC_LOC4,
.cmu = cmuClock_USART4,
.irq = USART4_RX_IRQn,
},
{
.dev = USART5,
.loc = USART_ROUTELOC0_RXLOC_LOC4 |
USART_ROUTELOC0_TXLOC_LOC4,
.cmu = cmuClock_USART5,
.irq = USART5_RX_IRQn,
}
}
Definition at line 234 of file periph_conf.h.