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

Peripheral MCU configuration for the Alientek Pandora board. More...

Detailed Description

Peripheral MCU configuration for the Alientek Pandora board.

Author
Luo Jia luoji.nosp@m.a@hu.nosp@m.st.ed.nosp@m.u.cn

Definition in file periph_conf.h.

#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_rtt_default.h"
+ Include dependency graph for periph_conf.h:

Go to the source code of this file.

#define CONFIG_BOARD_HAS_LSE   1
 This board provides LSE

 

Timer configuration

#define TIMER_0_ISR   isr_tim5
 Timer 0 ISR number.
 
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 Number of timers on this board.
 
static const timer_conf_t timer_config []
 All timers on board.
 

UART configuration

#define UART_0_ISR   (isr_usart1)
 Usart1 ISR number.
 
#define UART_NUMOF   ARRAY_SIZE(uart_config)
 Number of uarts on this board.
 
static const uart_conf_t uart_config []
 All UARTs on board.
 

Macro Definition Documentation

◆ CONFIG_BOARD_HAS_LSE

#define CONFIG_BOARD_HAS_LSE   1

This board provides LSE

Definition at line 24 of file periph_conf.h.

◆ TIMER_0_ISR

#define TIMER_0_ISR   isr_tim5

Timer 0 ISR number.

Definition at line 50 of file periph_conf.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Number of timers on this board.

Definition at line 52 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart1)

Usart1 ISR number.

Definition at line 79 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Number of uarts on this board.

Definition at line 81 of file periph_conf.h.

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = TIM5,
.max = 0xffffffff,
.rcc_mask = RCC_APB1ENR1_TIM5EN,
.bus = APB1,
.irqn = TIM5_IRQn
}
}
@ APB1
Advanced Peripheral Bus 1
Definition periph_cpu.h:79

All timers on board.

Definition at line 40 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.dev = USART1,
.rcc_mask = RCC_APB2ENR_USART1EN,
.rx_pin = GPIO_PIN(PORT_A, 10),
.tx_pin = GPIO_PIN(PORT_A, 9),
.rx_af = GPIO_AF7,
.tx_af = GPIO_AF7,
.bus = APB2,
.irqn = USART1_IRQn,
.type = STM32_USART,
.clk_src = 0,
}
}
@ PORT_A
port A
Definition periph_cpu.h:47
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ GPIO_AF7
use alternate function 7
Definition cpu_gpio.h:109
@ STM32_USART
STM32 USART module type.
Definition cpu_uart.h:38
@ APB2
Advanced Peripheral Bus 2
Definition periph_cpu.h:80

All UARTs on board.

Definition at line 60 of file periph_conf.h.