boards/nucleo-f072/include/periph_conf.h File Reference

Peripheral MCU configuration for the nucleo-f072 board. More...

Detailed Description

#include "periph_cpu.h"
+ Include dependency graph for boards/nucleo-f072/include/periph_conf.h:

Go to the source code of this file.

Macros

Clock system configuration
#define CLOCK_HSE   (8000000U) /* external oscillator */
 
#define CLOCK_CORECLOCK   (48000000U) /* desired core clock frequency */
 
#define CLOCK_PLL_MUL   (CLOCK_CORECLOCK / CLOCK_HSE)
 
#define CLOCK_AHB   (CLOCK_CORECLOCK / 1)
 
#define CLOCK_APB2   (CLOCK_CORECLOCK / 1)
 
#define CLOCK_APB1   (CLOCK_CORECLOCK / 1)
 
ADC configuration
#define ADC_CONFIG
 
#define ADC_NUMOF   (6)
 
DAC configuration
#define DAC_NUMOF   (0)
 
RTC configuration
#define RTC_NUMOF   (1U)
 Nucleos with MB1136 C-02 or MB1136 C-03 -sticker on it have the required LSE oscillator provided on the X2 slot. More...
 

Timer configuration

#define TIMER_0_ISR   isr_tim1_cc
 
#define TIMER_NUMOF   (sizeof(timer_config) / sizeof(timer_config[0]))
 
static const timer_conf_t timer_config []
 

UART configuration

#define UART_0_ISR   (isr_usart2)
 
#define UART_1_ISR   (isr_usart1)
 
#define UART_2_ISR   (isr_usart3_8)
 
#define UART_NUMOF   (sizeof(uart_config) / sizeof(uart_config[0]))
 
static const uart_conf_t uart_config []
 

PWM configuration

#define PWM_NUMOF   (sizeof(pwm_config) / sizeof(pwm_config[0]))
 
static const pwm_conf_t pwm_config []
 

SPI configuration

Note
The spi_divtable is auto-generated from cpu/stm32_common/dist/spi_divtable/spi_divtable.c
#define SPI_NUMOF   (sizeof(spi_config) / sizeof(spi_config[0]))
 
static const uint8_t spi_divtable [2][5]
 
static const spi_conf_t spi_config []
 

Macro Definition Documentation

◆ ADC_CONFIG

#define ADC_CONFIG
Value:
{ \
{ GPIO_PIN(PORT_A, 0), 0 }, \
{ GPIO_PIN(PORT_A, 1), 1 }, \
{ GPIO_PIN(PORT_A, 4), 4 }, \
{ GPIO_PIN(PORT_B, 0), 8 }, \
{ GPIO_PIN(PORT_C, 1), 11 },\
{ GPIO_PIN(PORT_C, 0), 10 } \
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.

Definition at line 192 of file boards/nucleo-f072/include/periph_conf.h.

◆ RTC_NUMOF

#define RTC_NUMOF   (1U)

See Nucleo User Manual UM1724 section 5.6.2.

Definition at line 220 of file boards/nucleo-f072/include/periph_conf.h.

Variable Documentation

◆ spi_config

const spi_conf_t spi_config[]
static
Initial value:
= {
{
.dev = SPI1,
.mosi_pin = GPIO_PIN(PORT_A, 7),
.miso_pin = GPIO_PIN(PORT_A, 6),
.sclk_pin = GPIO_PIN(PORT_A, 5),
.cs_pin = GPIO_PIN(PORT_A, 4),
.af = GPIO_AF0,
.rccmask = RCC_APB2ENR_SPI1EN,
.apbbus = APB2
}
}
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
use alternate function 0

Definition at line 172 of file boards/nucleo-f072/include/periph_conf.h.

◆ spi_divtable

const uint8_t spi_divtable[2][5]
static
Initial value:
= {
{
7,
6,
5,
2,
1
},
{
7,
6,
5,
2,
1
}
}

Definition at line 155 of file boards/nucleo-f072/include/periph_conf.h.

◆ timer_config

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

Definition at line 49 of file boards/nucleo-f072/include/periph_conf.h.