Peripheral MCU configuration for the nucleo-f302r8 board.
More...
#include "periph_cpu.h"
#include "clk_conf.h"
#include "cfg_timer_tim2.h"
Go to the source code of this file.
#define | CONFIG_BOARD_HAS_LSE 1 |
|
#define | CONFIG_BOARD_HAS_HSE 1 |
|
|
Note that we do not configure all ADC channels, and not in the STM32F302 order.
Instead, we just define 6 ADC channels, for the Nucleo Arduino header pins A0-A5
|
#define | ADC_NUMOF ARRAY_SIZE(adc_config) |
|
static const adc_conf_t | adc_config [] |
|
|
#define | UART_0_ISR (isr_usart2) |
|
#define | UART_1_ISR (isr_usart1) |
|
#define | UART_2_ISR (isr_usart3) |
|
#define | UART_NUMOF ARRAY_SIZE(uart_config) |
|
static const uart_conf_t | uart_config [] |
|
◆ adc_config
◆ i2c_config
Initial value:= {
{
.dev = I2C1,
.rcc_mask = RCC_APB1ENR_I2C1EN,
.rcc_sw_mask = RCC_CFGR3_I2C1SW,
.irqn = I2C1_ER_IRQn
},
{
.dev = I2C3,
.rcc_mask = RCC_APB1ENR_I2C3EN,
.rcc_sw_mask = RCC_CFGR3_I2C3SW,
.irqn = I2C3_ER_IRQn
}
}
Definition at line 157 of file periph_conf.h.
◆ pwm_config
Initial value:= {
{
.dev = TIM16,
.rcc_mask = RCC_APB2ENR_TIM16EN,
}
}
Definition at line 114 of file periph_conf.h.
◆ spi_config
Initial value:= {
{
.dev = SPI2,
.rccmask = RCC_APB1ENR_SPI2EN,
}
}
Definition at line 134 of file periph_conf.h.