boards/nucleo32-l031/include/periph_conf.h File Reference

Peripheral MCU configuration for the nucleo32-l031 board. More...

Detailed Description

Peripheral MCU configuration for the nucleo32-l031 board.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Alexandre Aabdie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file boards/nucleo32-l031/include/periph_conf.h.

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

Go to the source code of this file.

Macros

Clock system configuration
#define CLOCK_HSI   (16000000U) /* internal oscillator */
 
#define CLOCK_CORECLOCK   (32000000U) /* desired core clock frequency */
 
#define CLOCK_PLL_DIV   RCC_CFGR_PLLDIV2
 
#define CLOCK_PLL_MUL   RCC_CFGR_PLLMUL4
 
#define CLOCK_AHB_DIV   RCC_CFGR_HPRE_DIV1 /* AHB clock -> 32MHz */
 
#define CLOCK_APB2_DIV   RCC_CFGR_PPRE2_DIV1 /* APB2 clock -> 32MHz */
 
#define CLOCK_APB1_DIV   RCC_CFGR_PPRE1_DIV1 /* APB1 clock -> 32MHz */
 
#define CLOCK_FLASH_LATENCY   FLASH_ACR_LATENCY
 
#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   (7U)
 
RTC configuration
#define RTC_NUMOF   (1U)
 

Timer configuration

#define TIMER_0_ISR   isr_tim2
 
#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_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

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