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

Peripheral MCU configuration for the ST B-L072Z-LRWAN1 board. More...

Detailed Description

Peripheral MCU configuration for the ST B-L072Z-LRWAN1 board.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file periph_conf.h.

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

Go to the source code of this file.

#define CONFIG_BOARD_HAS_LSE   1
 

DMA streams configuration

#define DMA_SHARED_ISR_0   isr_dma1_channel2_3
 
#define DMA_SHARED_ISR_0_STREAMS   { 0, 1 } /* Indexes 0 and 1 of dma_config share the same isr */
 
#define DMA_SHARED_ISR_1   isr_dma1_channel4_5_6_7
 
#define DMA_SHARED_ISR_1_STREAMS   { 2, 3, 4 } /* Indexes 2, 3 and 4 of dma_config share the same isr */
 
#define DMA_NUMOF   ARRAY_SIZE(dma_config)
 
static const dma_conf_t dma_config []
 

UART configuration

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

SPI configuration

#define SPI_NUMOF   ARRAY_SIZE(spi_config)
 
static const spi_conf_t spi_config []
 

Macro Definition Documentation

◆ CONFIG_BOARD_HAS_LSE

#define CONFIG_BOARD_HAS_LSE   1

Definition at line 24 of file periph_conf.h.

◆ DMA_NUMOF

#define DMA_NUMOF   ARRAY_SIZE(dma_config)

Definition at line 54 of file periph_conf.h.

◆ DMA_SHARED_ISR_0

#define DMA_SHARED_ISR_0   isr_dma1_channel2_3

Definition at line 49 of file periph_conf.h.

◆ DMA_SHARED_ISR_0_STREAMS

#define DMA_SHARED_ISR_0_STREAMS   { 0, 1 } /* Indexes 0 and 1 of dma_config share the same isr */

Definition at line 50 of file periph_conf.h.

◆ DMA_SHARED_ISR_1

#define DMA_SHARED_ISR_1   isr_dma1_channel4_5_6_7

Definition at line 51 of file periph_conf.h.

◆ DMA_SHARED_ISR_1_STREAMS

#define DMA_SHARED_ISR_1_STREAMS   { 2, 3, 4 } /* Indexes 2, 3 and 4 of dma_config share the same isr */

Definition at line 52 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 147 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart2)

Definition at line 96 of file periph_conf.h.

◆ UART_1_ISR

#define UART_1_ISR   (isr_usart1)

Definition at line 97 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 99 of file periph_conf.h.

Variable Documentation

◆ dma_config

const dma_conf_t dma_config[]
static
Initial value:
= {
{ .stream = 1 },
{ .stream = 2 },
{ .stream = 3 },
{ .stream = 4 },
{ .stream = 5 },
}

Definition at line 41 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static

Definition at line 106 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static

Definition at line 61 of file periph_conf.h.