Peripheral MCU configuration for the nucleo-l432kc board. More...
Peripheral MCU configuration for the nucleo-l432kc board.
Definition in file periph_conf.h.
#include "periph_cpu.h"#include "clk_conf.h"#include "cfg_i2c1_pb6_pb7.h"#include "cfg_rtt_default.h"#include "cfg_timer_tim2_tim15_tim16.h"
 Include dependency graph for periph_conf.h:Go to the source code of this file.
| #define | CONFIG_BOARD_HAS_LSE 1 | 
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 [] | 
PWM configuration | |
| #define | PWM_NUMOF ARRAY_SIZE(pwm_config) | 
| static const pwm_conf_t | pwm_config [] | 
SPI configuration | |
| #define | SPI_NUMOF ARRAY_SIZE(spi_config) | 
| static const spi_conf_t | spi_config [] | 
| #define | ADC_NUMOF ARRAY_SIZE(adc_config) | 
| Number of ADC devices.   | |
| static const adc_conf_t | adc_config [] | 
| ADC configuration.   | |
| #define ADC_NUMOF ARRAY_SIZE(adc_config) | 
Number of ADC devices.
Definition at line 149 of file periph_conf.h.
| #define CONFIG_BOARD_HAS_LSE 1 | 
Definition at line 22 of file periph_conf.h.
| #define PWM_NUMOF ARRAY_SIZE(pwm_config) | 
Definition at line 89 of file periph_conf.h.
| #define SPI_NUMOF ARRAY_SIZE(spi_config) | 
Definition at line 112 of file periph_conf.h.
| #define UART_0_ISR (isr_usart2) | 
Definition at line 66 of file periph_conf.h.
| #define UART_1_ISR (isr_usart1) | 
Definition at line 67 of file periph_conf.h.
| #define UART_NUMOF ARRAY_SIZE(uart_config) | 
Definition at line 69 of file periph_conf.h.
      
  | 
  static | 
ADC configuration.
Note that we do not configure all ADC channels, and not in the STM32L432KC order. Instead, we just define 5 ADC channels, for the Nucleo Arduino Nano header pins A0-A3 and A6 - all which are enabled by default and without collision with other features, for example, I2C or VCP_TX.
To find appropriate device and channel find in the board manual, table showing pin assignments and information about ADC - a text similar to ADC[X]_IN[Y], where: [X] - describes used device - indexed from 0, for example ADC1_IN10 is device 0, [Y] - describes used channel - indexed from 1, for example ADC1_IN10 is channel 10
For Nucleo-L432KC this information is in board manual, Table 16 or STM32L432KC MCU datasheet - Table 14.
Definition at line 138 of file periph_conf.h.
      
  | 
  static | 
Definition at line 76 of file periph_conf.h.
      
  | 
  static | 
Definition at line 96 of file periph_conf.h.
      
  | 
  static | 
Definition at line 39 of file periph_conf.h.