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

Peripheral MCU configuration for the iotlab-m3 board. More...

Detailed Description

Peripheral MCU configuration for the iotlab-m3 board.

Author
Thomas Eichinger thoma.nosp@m.s.ei.nosp@m.ching.nosp@m.er@f.nosp@m.u-ber.nosp@m.lin..nosp@m.de
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file periph_conf_common.h.

#include "periph_cpu.h"
#include "clk_conf.h"
+ Include dependency graph for periph_conf_common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define CONFIG_BOARD_HAS_LSE   1
 
#define CONFIG_BOARD_HAS_HSE   1
 
#define CONFIG_CLOCK_HSE   MHZ(16)
 

ADC configuration

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

DMA streams configuration

#define DMA_0_ISR   isr_dma1_channel4
 
#define DMA_1_ISR   isr_dma1_channel6
 
#define DMA_NUMOF   ARRAY_SIZE(dma_config)
 
static const dma_conf_t dma_config []
 

Timer configuration

#define TIMER_0_ISR   isr_tim2
 
#define TIMER_1_ISR   isr_tim3
 
#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 
static const timer_conf_t timer_config []
 

UART configuration

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

Real time counter configuration

#define RTT_FREQUENCY   (RTT_MAX_FREQUENCY) /* in Hz */
 

I2C configuration

#define I2C_0_ISR   isr_i2c1_ev
 
#define I2C_NUMOF   ARRAY_SIZE(i2c_config)
 
static const i2c_conf_t i2c_config []
 

Macro Definition Documentation

◆ ADC_NUMOF

#define ADC_NUMOF   ARRAY_SIZE(adc_config)

Definition at line 54 of file periph_conf_common.h.

◆ CONFIG_BOARD_HAS_HSE

#define CONFIG_BOARD_HAS_HSE   1

Definition at line 30 of file periph_conf_common.h.

◆ CONFIG_BOARD_HAS_LSE

#define CONFIG_BOARD_HAS_LSE   1

Definition at line 25 of file periph_conf_common.h.

◆ CONFIG_CLOCK_HSE

#define CONFIG_CLOCK_HSE   MHZ(16)

Definition at line 34 of file periph_conf_common.h.

◆ DMA_0_ISR

#define DMA_0_ISR   isr_dma1_channel4

Definition at line 66 of file periph_conf_common.h.

◆ DMA_1_ISR

#define DMA_1_ISR   isr_dma1_channel6

Definition at line 67 of file periph_conf_common.h.

◆ DMA_NUMOF

#define DMA_NUMOF   ARRAY_SIZE(dma_config)

Definition at line 69 of file periph_conf_common.h.

◆ I2C_0_ISR

#define I2C_0_ISR   isr_i2c1_ev

Definition at line 162 of file periph_conf_common.h.

◆ I2C_NUMOF

#define I2C_NUMOF   ARRAY_SIZE(i2c_config)

Definition at line 164 of file periph_conf_common.h.

◆ RTT_FREQUENCY

#define RTT_FREQUENCY   (RTT_MAX_FREQUENCY) /* in Hz */

Definition at line 141 of file periph_conf_common.h.

◆ TIMER_0_ISR

#define TIMER_0_ISR   isr_tim2

Definition at line 93 of file periph_conf_common.h.

◆ TIMER_1_ISR

#define TIMER_1_ISR   isr_tim3

Definition at line 94 of file periph_conf_common.h.

◆ TIMER_NUMOF

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)

Definition at line 96 of file periph_conf_common.h.

◆ UART_0_ISR

#define UART_0_ISR   (isr_usart1)

Definition at line 130 of file periph_conf_common.h.

◆ UART_1_ISR

#define UART_1_ISR   (isr_usart2)

Definition at line 131 of file periph_conf_common.h.

◆ UART_NUMOF

#define UART_NUMOF   ARRAY_SIZE(uart_config)

Definition at line 133 of file periph_conf_common.h.

Variable Documentation

◆ adc_config

const adc_conf_t adc_config[]
static
Initial value:
= {
{ GPIO_PIN(PORT_A,3), 0, 3 },
{ GPIO_UNDEF , 0, 16 },
{ GPIO_UNDEF , 0, 17 }
}
@ 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
#define GPIO_UNDEF
Definition of a fitting UNDEF value.

Definition at line 48 of file periph_conf_common.h.

◆ dma_config

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

Definition at line 61 of file periph_conf_common.h.

◆ i2c_config

const i2c_conf_t i2c_config[]
static
Initial value:
= {
{
.dev = I2C1,
.speed = I2C_SPEED_NORMAL,
.scl_pin = GPIO_PIN(PORT_B, 6),
.sda_pin = GPIO_PIN(PORT_B, 7),
.bus = APB1,
.rcc_mask = RCC_APB1ENR_I2C1EN,
.clk = CLOCK_APB1,
.irqn = I2C1_EV_IRQn
}
}
@ PORT_B
port B
Definition periph_cpu.h:48
@ I2C_SPEED_NORMAL
normal mode: ~100 kbit/s
Definition periph_cpu.h:278
@ APB1
Advanced Peripheral Bus 1
Definition periph_cpu.h:79

Definition at line 149 of file periph_conf_common.h.

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.dev = TIM2,
.max = 0x0000ffff,
.rcc_mask = RCC_APB1ENR_TIM2EN,
.bus = APB1,
.irqn = TIM2_IRQn
},
{
.dev = TIM3,
.max = 0x0000ffff,
.rcc_mask = RCC_APB1ENR_TIM3EN,
.bus = APB1,
.irqn = TIM3_IRQn
}
}

Definition at line 76 of file periph_conf_common.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),
.bus = APB2,
.irqn = USART1_IRQn,
},
{
.dev = USART2,
.rcc_mask = RCC_APB1ENR_USART2EN,
.rx_pin = GPIO_PIN(PORT_A, 3),
.tx_pin = GPIO_PIN(PORT_A, 2),
.bus = APB1,
.irqn = USART2_IRQn,
}
}
@ APB2
Advanced Peripheral Bus 2
Definition periph_cpu.h:80

Definition at line 103 of file periph_conf_common.h.