boards/ikea-tradfri/include/periph_conf.h File Reference

Configuration of CPU peripherals for the IKEA TRÅDFRI modules. More...

Detailed Description

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 boards/ikea-tradfri/include/periph_conf.h.

#include "cpu.h"
#include "periph_cpu.h"
#include "em_cmu.h"
+ Include dependency graph for boards/ikea-tradfri/include/periph_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RTC_NUMOF   (1U)
 RTC configuration.
 
#define PERIPH_NUMOF(config)   (sizeof(config) / sizeof(config[0]))
 Internal macro to calculate *_NUMOF based on config.
 
Clock configuration
#define CLOCK_HF   cmuSelect_HFRCO
 
#define CLOCK_CORE_DIV   cmuClkDiv_1
 
#define CLOCK_LFA   cmuSelect_LFRCO
 
#define CLOCK_LFB   cmuSelect_LFRCO
 
#define CLOCK_LFE   cmuSelect_LFRCO
 
RTT configuration
#define RTT_NUMOF   (1U)
 
#define RTT_MAX_VALUE   (0xFFFFFFFF)
 
#define RTT_FREQUENCY   (1U)
 

SPI configuration

#define SPI_NUMOF   PERIPH_NUMOF(spi_config)
 
static const spi_dev_t spi_config []
 

Timer configuration

The implementation uses two timers in cascade mode.

#define TIMER_NUMOF   PERIPH_NUMOF(timer_config)
 
#define TIMER_0_ISR   isr_timer1
 
static const timer_conf_t timer_config []
 

UART configuration

#define UART_NUMOF   PERIPH_NUMOF(uart_config)
 
#define UART_0_ISR_RX   isr_usart0_rx
 
static const uart_conf_t uart_config []
 

Variable Documentation

◆ spi_config

const spi_dev_t spi_config[]
static
Initial value:
= {
{
.dev = USART1,
.mosi_pin = GPIO_PIN(PD, 15),
.miso_pin = GPIO_PIN(PD, 14),
.clk_pin = GPIO_PIN(PD, 13),
.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 77 of file boards/ikea-tradfri/include/periph_conf.h.

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
{
.dev = TIMER0,
.cmu = cmuClock_TIMER0
},
{
.dev = TIMER1,
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn
}
}

Definition at line 100 of file boards/ikea-tradfri/include/periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = USART0,
.rx_pin = GPIO_PIN(PB, 15),
.tx_pin = GPIO_PIN(PB, 14),
.loc = USART_ROUTELOC0_RXLOC_LOC9 |
USART_ROUTELOC0_TXLOC_LOC9,
.cmu = cmuClock_USART0,
.irq = USART0_RX_IRQn
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

Definition at line 122 of file boards/ikea-tradfri/include/periph_conf.h.