Configuration of CPU peripherals for the SLSTK3701A starter kit.
More...
#include "cpu.h"
#include "mii.h"
#include "periph_cpu.h"
#include "em_cmu.h"
#include "usbdev_cfg_otg_fs.h"
Go to the source code of this file.
|
The SLSTK3701A wires the EFM32GG11 ETH peripheral to a Microchip KSZ8091-RNDCA PHY at MIIM address 0.
|
| static const eth_conf_t | eth_config |
| |
◆ 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 |
◆ DAC_DEV_NUMOF
◆ DAC_NUMOF
◆ I2C_0_ISR
◆ I2C_1_ISR
◆ I2C_2_ISR
◆ I2C_NUMOF
◆ RTT_FREQUENCY
| #define RTT_FREQUENCY (1U) |
◆ 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_usart4_rx |
◆ UART_1_ISR_RX
| #define UART_1_ISR_RX isr_usart5_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 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 = 0,
},
}
Definition at line 92 of file periph_conf.h.
◆ dac_config
Initial value:= {
{
.dev = VDAC0,
.ref = vdacRefAvdd,
.cmu = cmuClock_VDAC0,
},
}
Definition at line 84 of file periph_conf.h.
◆ eth_config
Initial value:= {
.routeloc1 = ETH_ROUTELOC1_RMIILOC_LOC1 | ETH_ROUTELOC1_MDIOLOC_LOC1,
.phy_addr = 0,
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
#define MII_BMCR_FULL_DPLX
Set for full duplex.
#define MII_BMCR_SPEED_100
Set speed to 100 Mbps.
Definition at line 278 of file periph_conf.h.
◆ i2c_config
◆ 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
},
{
.dev = USART1,
.loc = USART_ROUTELOC0_TXLOC_LOC6 |
USART_ROUTELOC0_RXLOC_LOC4 |
USART_ROUTELOC0_CLKLOC_LOC3,
.cmu = cmuClock_USART1,
.irq = USART1_RX_IRQn
}
}
Definition at line 162 of file periph_conf.h.
◆ timer_config
◆ 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 245 of file periph_conf.h.