periph_conf.h File Reference

Peripheral MCU configuration for the STM32L476G-DISCO board. More...

Detailed Description

Peripheral MCU configuration for the STM32L476G-DISCO board.

Alexandre Abadie

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "l4/cfg_clock_80_1.h"
#include "cfg_rtt_default.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

Timer configuration

#define TIMER_0_ISR   isr_tim5
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
static const timer_conf_t timer_config []

UART configuration

#define UART_0_ISR   (isr_usart2)
#define UART_NUMOF   ARRAY_SIZE(uart_config)
static const uart_conf_t uart_config []

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
Initial value:
= {
.dev = TIM5,
.max = 0xffffffff,
.rcc_mask = RCC_APB1ENR1_TIM5EN,
.bus = APB1,
.irqn = TIM5_IRQn
APB1 bus.
Definition: periph_cpu.h:170

Definition at line 34 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
Initial value:
= {
.dev = USART2,
.rcc_mask = RCC_APB1ENR1_USART2EN,
.rx_pin = GPIO_PIN(PORT_D, 6),
.tx_pin = GPIO_PIN(PORT_D, 5),
.rx_af = GPIO_AF7,
.tx_af = GPIO_AF7,
.bus = APB1,
.irqn = USART2_IRQn,
.type = STM32_USART,
.clk_src = 0,
STM32 USART module type.
Definition: periph_cpu.h:560
port D
Definition: periph_cpu.h:39
APB1 bus.
Definition: periph_cpu.h:170
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
use alternate function 7

Definition at line 53 of file periph_conf.h.