boards/slwstk6220a/include/periph_conf.h File Reference

Configuration of CPU peripherals for the WSTK6220 board. More...

Detailed Description

#include <stdint.h>
#include "cpu.h"
#include "periph_cpu.h"
+ Include dependency graph for boards/slwstk6220a/include/periph_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

Clock configuration
#define CLOCK_RCOSC   (14000000) /* internal RC oscillator speed */
 
#define CLOCK_HFXO   (48000000U)
 
#define CLOCK_HFCORECLKDIV   (1U) /* core clock divider */
 
#define CLOCK_HFPERCLKDIV   (1U) /* peripheral clock divider */
 
#define CLOCK_CORECLOCK   (CLOCK_HFXO / CLOCK_HFCORECLKDIV)
 
#define CLOCK_HFPERCLK   (CLOCK_CORECLOCK / CLOCK_HFPERCLKDIV)
 

Timer configuration

#define TIMER_0_ISR   isr_timer1
 
#define TIMER_0_MAX_VALUE   (0xffff) /* 16-bit timer */
 
#define TIMER_NUMOF   (sizeof(timer_config) / sizeof(timer_config[0]))
 
static const timer_conf_t timer_config []
 

UART configuration

#define UART_0_ISR_RX   isr_usart2_rx
 
#define UART_NUMOF   (sizeof(uart_config) / sizeof(uart_config[0]))
 
static const uart_conf_t uart_config []
 

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
TIMER0,
TIMER1,
5,
TIMER1_IRQn,
}
}

Definition at line 55 of file boards/slwstk6220a/include/periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
USART2,
GPIO_PIN(PB,4),
GPIO_PIN(PB,3),
1,
2,
USART2_RX_IRQn
},
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

Definition at line 73 of file boards/slwstk6220a/include/periph_conf.h.