Peripheral MCU configuration for the Nucleo-C071RB board. More...
Peripheral MCU configuration for the Nucleo-C071RB board.
Definition in file periph_conf.h.
 Include dependency graph for periph_conf.h:Go to the source code of this file.
| #define | CONFIG_BOARD_HAS_LSE 1 | 
Timer configuration | |
| #define | TIMER_0_ISR isr_tim3 | 
| #define | TIMER_NUMOF ARRAY_SIZE(timer_config) | 
| static const timer_conf_t | timer_config [] | 
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 [] | 
ADC configuration | |
Note that we do not configure all ADC channels, and not in the STM32C071 order. Instead, we just define 6 ADC channels, for the Nucleo Arduino header pins A0-A5. The appropriate ADC device and channel for each pin can be found in the board manual in the pin assignment table. The format of the entries is ADC_IN[Y], where [Y] - describes the used channel - indexed from 1. For example: ADC_IN11 is Channel 11. For the Nucleo-C071RB this information is in the board manual, Table 12 "ARDUINO connectors on NUCLEO-C071RB and NUCLEO-C092RC".  | |
| #define | ADC_NUMOF ARRAY_SIZE(adc_config) | 
| static const adc_conf_t | adc_config [] | 
PWM configuration | |
The appropriate PWM device and channel for each pin can be found in the MCU datasheet table "Alternate function AF0 to AF7". The format of the entries is TIM[X]_CH[Y], where TIM[X] is the timer device and [Y] describes the used channel (indexed from 0). For example TIM3_CH1 is Timer 3, Channel 1 which corresponds to Channel 0 in the PWM configuration structure. The port column in the table describes the connected port. For the Nucleo-C071RB this information can be found in the MCU datasheet, Table 15 "Port B alternate function mapping (AF0 to AF7)".  | |
| #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) | 
Definition at line 111 of file periph_conf.h.
| #define CONFIG_BOARD_HAS_LSE 1 | 
Definition at line 20 of file periph_conf.h.
| #define PWM_NUMOF ARRAY_SIZE(pwm_config) | 
Definition at line 143 of file periph_conf.h.
| #define SPI_NUMOF ARRAY_SIZE(spi_config) | 
Definition at line 166 of file periph_conf.h.
| #define TIMER_0_ISR isr_tim3 | 
Definition at line 45 of file periph_conf.h.
| #define TIMER_NUMOF ARRAY_SIZE(timer_config) | 
Definition at line 47 of file periph_conf.h.
| #define UART_0_ISR (isr_usart2) | 
Definition at line 77 of file periph_conf.h.
| #define UART_1_ISR (isr_usart1) | 
Definition at line 78 of file periph_conf.h.
| #define UART_NUMOF ARRAY_SIZE(uart_config) | 
Definition at line 80 of file periph_conf.h.
      
  | 
  static | 
Definition at line 102 of file periph_conf.h.
      
  | 
  static | 
Definition at line 130 of file periph_conf.h.
      
  | 
  static | 
Definition at line 150 of file periph_conf.h.
      
  | 
  static | 
Definition at line 35 of file periph_conf.h.
      
  | 
  static | 
Definition at line 54 of file periph_conf.h.