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
Thibault Tisserand gzord.nosp@m.rai@.nosp@m.gmail.nosp@m..com

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 []
 

ADC configuration

#define ADC_NUMOF   ARRAY_SIZE(adc_config)
 
static const adc_conf_t adc_config []
 

Macro Definition Documentation

◆ ADC_NUMOF

#define ADC_NUMOF   ARRAY_SIZE(adc_config)

Definition at line 163 of file periph_conf.h.

◆ CONFIG_BOARD_HAS_LSE

#define CONFIG_BOARD_HAS_LSE   1

Definition at line 25 of file periph_conf.h.

◆ DMA_NUMOF

#define DMA_NUMOF   ARRAY_SIZE(dma_config)

Definition at line 55 of file periph_conf.h.

◆ DMA_SHARED_ISR_0

#define DMA_SHARED_ISR_0   isr_dma1_channel2_3

Definition at line 50 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 51 of file periph_conf.h.

◆ DMA_SHARED_ISR_1

#define DMA_SHARED_ISR_1   isr_dma1_channel4_5_6_7

Definition at line 52 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 53 of file periph_conf.h.

◆ SPI_NUMOF

#define SPI_NUMOF   ARRAY_SIZE(spi_config)

Definition at line 148 of file periph_conf.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart2)

Definition at line 97 of file periph_conf.h.

◆ UART_1_ISR

#define UART_1_ISR   (isr_usart1)

Definition at line 98 of file periph_conf.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 100 of file periph_conf.h.

Variable Documentation

◆ adc_config

const adc_conf_t adc_config[]
static
Initial value:
= {
{ GPIO_PIN(PORT_A, 0), 0 },
{ GPIO_PIN(PORT_A, 2), 2 },
{ GPIO_PIN(PORT_A, 3), 3 },
{ GPIO_PIN(PORT_A, 4), 4 },
{ GPIO_PIN(PORT_A, 5), 5 }
}
@ 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

Definition at line 155 of file periph_conf.h.

◆ dma_config

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

Definition at line 42 of file periph_conf.h.

◆ spi_config

const spi_conf_t spi_config[]
static

Definition at line 107 of file periph_conf.h.

◆ uart_config

const uart_conf_t uart_config[]
static

Definition at line 62 of file periph_conf.h.