Loading...
Searching...
No Matches
periph_conf.h File Reference

Configuration of CPU peripherals for STM32G0316-DISCO board. More...

Detailed Description

Configuration of CPU peripherals for STM32G0316-DISCO board.

Author
Dave VanKampen david.nosp@m..van.nosp@m.kampe.nosp@m.n@bi.nosp@m.ssell.nosp@m..com

Definition in file periph_conf.h.

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

Go to the source code of this file.

Timer configuration

#define TIMER_0_ISR   isr_tim1_cc
 
#define TIMER_0_MAX_VALUE   0xffff
 
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 
static const timer_conf_t timer_config []
 

UART configuration

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

Macro Definition Documentation

◆ TIMER_0_ISR

#define TIMER_0_ISR   isr_tim1_cc

Definition at line 47 of file periph_conf.h.

◆ TIMER_0_MAX_VALUE

#define TIMER_0_MAX_VALUE   0xffff

Definition at line 48 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Definition at line 50 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart1)

Definition at line 70 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 72 of file periph_conf.h.

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = TIM1,
.max = 0x0000ffff,
.rcc_mask = RCC_APBENR2_TIM1EN,
.bus = APB12,
.irqn = TIM1_CC_IRQn
}
}

Definition at line 37 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = USART1,
.rcc_mask = RCC_APBENR2_USART1EN,
.rx_pin = GPIO_PIN(PORT_B, 7),
.tx_pin = GPIO_PIN(PORT_B, 6),
.rx_af = GPIO_AF0,
.tx_af = GPIO_AF0,
.bus = APB12,
.irqn = USART1_IRQn,
}
}
@ PORT_B
port B
Definition periph_cpu.h:48
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ GPIO_AF0
use alternate function 0
Definition cpu_gpio.h:102

Definition at line 57 of file periph_conf.h.