Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
stm32l4xx_hal_conf.h File Reference

HAL configuration file. More...

#include <stdint.h>
#include "stm32l4xx_hal_rcc.h"
#include "stm32l4xx_hal_gpio.h"
#include "stm32l4xx_hal_dma.h"
#include "stm32l4xx_hal_cortex.h"
#include "stm32l4xx_hal_adc.h"
#include "stm32l4xx_hal_can.h"
#include "stm32l4xx_hal_comp.h"
#include "stm32l4xx_hal_crc.h"
#include "stm32l4xx_hal_cryp.h"
#include "stm32l4xx_hal_dac.h"
#include "stm32l4xx_hal_firewall.h"
#include "stm32l4xx_hal_flash.h"
#include "stm32l4xx_hal_i2c.h"
#include "stm32l4xx_hal_iwdg.h"
#include "stm32l4xx_hal_lptim.h"
#include "stm32l4xx_hal_mmc.h"
#include "stm32l4xx_hal_opamp.h"
#include "stm32l4xx_hal_pwr.h"
#include "stm32l4xx_hal_qspi.h"
#include "stm32l4xx_hal_rng.h"
#include "stm32l4xx_hal_rtc.h"
#include "stm32l4xx_hal_sai.h"
#include "stm32l4xx_hal_smbus.h"
#include "stm32l4xx_hal_spi.h"
#include "stm32l4xx_hal_swpmi.h"
#include "stm32l4xx_hal_tim.h"
#include "stm32l4xx_hal_tsc.h"
#include "stm32l4xx_hal_uart.h"
#include "stm32l4xx_hal_usart.h"
#include "stm32l4xx_hal_irda.h"
#include "stm32l4xx_hal_smartcard.h"
#include "stm32l4xx_hal_wwdg.h"
#include "stm32l4xx_hal_pcd.h"

Go to the source code of this file.

Macros

#define HAL_MODULE_ENABLED
 This is the list of modules to be used in the HAL driver.
 
#define HAL_ADC_MODULE_ENABLED
 
#define HAL_CAN_MODULE_ENABLED
 
#define HAL_COMP_MODULE_ENABLED
 
#define HAL_CORTEX_MODULE_ENABLED
 
#define HAL_CRC_MODULE_ENABLED
 
#define HAL_CRYP_MODULE_ENABLED
 
#define HAL_DAC_MODULE_ENABLED
 
#define HAL_DMA_MODULE_ENABLED
 
#define HAL_FIREWALL_MODULE_ENABLED
 
#define HAL_FLASH_MODULE_ENABLED
 
#define HAL_GPIO_MODULE_ENABLED
 
#define HAL_I2C_MODULE_ENABLED
 
#define HAL_IRDA_MODULE_ENABLED
 
#define HAL_IWDG_MODULE_ENABLED
 
#define HAL_LPTIM_MODULE_ENABLED
 
#define HAL_MMC_MODULE_ENABLED
 
#define HAL_OPAMP_MODULE_ENABLED
 
#define HAL_PCD_MODULE_ENABLED
 
#define HAL_PWR_MODULE_ENABLED
 
#define HAL_QSPI_MODULE_ENABLED
 
#define HAL_RCC_MODULE_ENABLED
 
#define HAL_RNG_MODULE_ENABLED
 
#define HAL_RTC_MODULE_ENABLED
 
#define HAL_SAI_MODULE_ENABLED
 
#define HAL_SMARTCARD_MODULE_ENABLED
 
#define HAL_SMBUS_MODULE_ENABLED
 
#define HAL_SPI_MODULE_ENABLED
 
#define HAL_SWPMI_MODULE_ENABLED
 
#define HAL_TIM_MODULE_ENABLED
 
#define HAL_TSC_MODULE_ENABLED
 
#define HAL_UART_MODULE_ENABLED
 
#define HAL_USART_MODULE_ENABLED
 
#define HAL_WWDG_MODULE_ENABLED
 
#define HSE_VALUE   HSEValue
 
#define HSE_STARTUP_TIMEOUT   100U
 
#define MSI_VALUE   4000000U
 Internal Multiple Speed oscillator (MSI) default value.
 
#define HSI_VALUE   16000000U
 Internal High Speed oscillator (HSI) value.
 
#define HSI48_VALUE   48000000U
 Internal High Speed oscillator (HSI48) value for USB FS, SDMMC and RNG.
 
#define LSI_VALUE   32000U
 Internal Low Speed oscillator (LSI) value.
 
#define LSE_VALUE   32768U
 External Low Speed oscillator (LSE) value.
 
#define LSE_STARTUP_TIMEOUT   5000U
 
#define EXTERNAL_SAI1_CLOCK_VALUE   48000U
 External clock source for SAI1 peripheral This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source frequency.
 
#define EXTERNAL_SAI2_CLOCK_VALUE   48000U
 External clock source for SAI2 peripheral This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source frequency.
 
#define VDD_VALUE   3300U
 This is the HAL system configuration section.
 
#define TICK_INT_PRIORITY   0x0FU
 
#define USE_RTOS   0U
 
#define PREFETCH_ENABLE   0U
 
#define INSTRUCTION_CACHE_ENABLE   1U
 
#define DATA_CACHE_ENABLE   1U
 
#define USE_SPI_CRC   1U
 Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.
 
#define assert_param(expr)   ((void)0U)
 Include module's header file.
 

Functions

static void SetInterruptPriority (uint32_t irq, uint8_t priority)
 

Variables

const uint32_t HSEValue
 Adjust the value of External High Speed oscillator (HSE) used in your application.
 

Detailed Description

HAL configuration file.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_conf.h.

Macro Definition Documentation

◆ assert_param

#define assert_param (   expr)    ((void)0U)

Include module's header file.

Definition at line 339 of file stm32l4xx_hal_conf.h.

◆ DATA_CACHE_ENABLE

#define DATA_CACHE_ENABLE   1U

Definition at line 166 of file stm32l4xx_hal_conf.h.

◆ EXTERNAL_SAI1_CLOCK_VALUE

#define EXTERNAL_SAI1_CLOCK_VALUE   48000U

External clock source for SAI1 peripheral This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source frequency.

Value of the SAI1 External clock source in Hz

Definition at line 142 of file stm32l4xx_hal_conf.h.

◆ EXTERNAL_SAI2_CLOCK_VALUE

#define EXTERNAL_SAI2_CLOCK_VALUE   48000U

External clock source for SAI2 peripheral This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source frequency.

Value of the SAI2 External clock source in Hz

Definition at line 151 of file stm32l4xx_hal_conf.h.

◆ HAL_ADC_MODULE_ENABLED

#define HAL_ADC_MODULE_ENABLED

Definition at line 38 of file stm32l4xx_hal_conf.h.

◆ HAL_CAN_MODULE_ENABLED

#define HAL_CAN_MODULE_ENABLED

Definition at line 39 of file stm32l4xx_hal_conf.h.

◆ HAL_COMP_MODULE_ENABLED

#define HAL_COMP_MODULE_ENABLED

Definition at line 41 of file stm32l4xx_hal_conf.h.

◆ HAL_CORTEX_MODULE_ENABLED

#define HAL_CORTEX_MODULE_ENABLED

Definition at line 42 of file stm32l4xx_hal_conf.h.

◆ HAL_CRC_MODULE_ENABLED

#define HAL_CRC_MODULE_ENABLED

Definition at line 43 of file stm32l4xx_hal_conf.h.

◆ HAL_CRYP_MODULE_ENABLED

#define HAL_CRYP_MODULE_ENABLED

Definition at line 44 of file stm32l4xx_hal_conf.h.

◆ HAL_DAC_MODULE_ENABLED

#define HAL_DAC_MODULE_ENABLED

Definition at line 45 of file stm32l4xx_hal_conf.h.

◆ HAL_DMA_MODULE_ENABLED

#define HAL_DMA_MODULE_ENABLED

Definition at line 46 of file stm32l4xx_hal_conf.h.

◆ HAL_FIREWALL_MODULE_ENABLED

#define HAL_FIREWALL_MODULE_ENABLED

Definition at line 47 of file stm32l4xx_hal_conf.h.

◆ HAL_FLASH_MODULE_ENABLED

#define HAL_FLASH_MODULE_ENABLED

Definition at line 48 of file stm32l4xx_hal_conf.h.

◆ HAL_GPIO_MODULE_ENABLED

#define HAL_GPIO_MODULE_ENABLED

Definition at line 49 of file stm32l4xx_hal_conf.h.

◆ HAL_I2C_MODULE_ENABLED

#define HAL_I2C_MODULE_ENABLED

Definition at line 50 of file stm32l4xx_hal_conf.h.

◆ HAL_IRDA_MODULE_ENABLED

#define HAL_IRDA_MODULE_ENABLED

Definition at line 51 of file stm32l4xx_hal_conf.h.

◆ HAL_IWDG_MODULE_ENABLED

#define HAL_IWDG_MODULE_ENABLED

Definition at line 52 of file stm32l4xx_hal_conf.h.

◆ HAL_LPTIM_MODULE_ENABLED

#define HAL_LPTIM_MODULE_ENABLED

Definition at line 53 of file stm32l4xx_hal_conf.h.

◆ HAL_MMC_MODULE_ENABLED

#define HAL_MMC_MODULE_ENABLED

Definition at line 54 of file stm32l4xx_hal_conf.h.

◆ HAL_MODULE_ENABLED

#define HAL_MODULE_ENABLED

This is the list of modules to be used in the HAL driver.

Definition at line 37 of file stm32l4xx_hal_conf.h.

◆ HAL_OPAMP_MODULE_ENABLED

#define HAL_OPAMP_MODULE_ENABLED

Definition at line 55 of file stm32l4xx_hal_conf.h.

◆ HAL_PCD_MODULE_ENABLED

#define HAL_PCD_MODULE_ENABLED

Definition at line 56 of file stm32l4xx_hal_conf.h.

◆ HAL_PWR_MODULE_ENABLED

#define HAL_PWR_MODULE_ENABLED

Definition at line 57 of file stm32l4xx_hal_conf.h.

◆ HAL_QSPI_MODULE_ENABLED

#define HAL_QSPI_MODULE_ENABLED

Definition at line 58 of file stm32l4xx_hal_conf.h.

◆ HAL_RCC_MODULE_ENABLED

#define HAL_RCC_MODULE_ENABLED

Definition at line 59 of file stm32l4xx_hal_conf.h.

◆ HAL_RNG_MODULE_ENABLED

#define HAL_RNG_MODULE_ENABLED

Definition at line 60 of file stm32l4xx_hal_conf.h.

◆ HAL_RTC_MODULE_ENABLED

#define HAL_RTC_MODULE_ENABLED

Definition at line 61 of file stm32l4xx_hal_conf.h.

◆ HAL_SAI_MODULE_ENABLED

#define HAL_SAI_MODULE_ENABLED

Definition at line 62 of file stm32l4xx_hal_conf.h.

◆ HAL_SMARTCARD_MODULE_ENABLED

#define HAL_SMARTCARD_MODULE_ENABLED

Definition at line 63 of file stm32l4xx_hal_conf.h.

◆ HAL_SMBUS_MODULE_ENABLED

#define HAL_SMBUS_MODULE_ENABLED

Definition at line 64 of file stm32l4xx_hal_conf.h.

◆ HAL_SPI_MODULE_ENABLED

#define HAL_SPI_MODULE_ENABLED

Definition at line 65 of file stm32l4xx_hal_conf.h.

◆ HAL_SWPMI_MODULE_ENABLED

#define HAL_SWPMI_MODULE_ENABLED

Definition at line 66 of file stm32l4xx_hal_conf.h.

◆ HAL_TIM_MODULE_ENABLED

#define HAL_TIM_MODULE_ENABLED

Definition at line 67 of file stm32l4xx_hal_conf.h.

◆ HAL_TSC_MODULE_ENABLED

#define HAL_TSC_MODULE_ENABLED

Definition at line 68 of file stm32l4xx_hal_conf.h.

◆ HAL_UART_MODULE_ENABLED

#define HAL_UART_MODULE_ENABLED

Definition at line 69 of file stm32l4xx_hal_conf.h.

◆ HAL_USART_MODULE_ENABLED

#define HAL_USART_MODULE_ENABLED

Definition at line 70 of file stm32l4xx_hal_conf.h.

◆ HAL_WWDG_MODULE_ENABLED

#define HAL_WWDG_MODULE_ENABLED

Definition at line 71 of file stm32l4xx_hal_conf.h.

◆ HSE_STARTUP_TIMEOUT

#define HSE_STARTUP_TIMEOUT   100U

Time out for HSE start up, in ms

Definition at line 84 of file stm32l4xx_hal_conf.h.

◆ HSE_VALUE

#define HSE_VALUE   HSEValue

Definition at line 81 of file stm32l4xx_hal_conf.h.

◆ HSI48_VALUE

#define HSI48_VALUE   48000000U

Internal High Speed oscillator (HSI48) value for USB FS, SDMMC and RNG.

This internal oscillator is mainly dedicated to provide a high precision clock to the USB peripheral by means of a special Clock Recovery System (CRS) circuitry. When the CRS is not used, the HSI48 RC oscillator runs on it default frequency which is subject to manufacturing process variations. Value of the Internal High Speed oscillator for USB FS/SDMMC/RNG in Hz. The real value my vary depending on manufacturing process variations.

Definition at line 113 of file stm32l4xx_hal_conf.h.

◆ HSI_VALUE

#define HSI_VALUE   16000000U

Internal High Speed oscillator (HSI) value.

This value is used by the RCC HAL module to compute the system frequency (when HSI is used as system clock source, directly or through the PLL). Value of the Internal oscillator in Hz

Definition at line 101 of file stm32l4xx_hal_conf.h.

◆ INSTRUCTION_CACHE_ENABLE

#define INSTRUCTION_CACHE_ENABLE   1U

Definition at line 165 of file stm32l4xx_hal_conf.h.

◆ LSE_STARTUP_TIMEOUT

#define LSE_STARTUP_TIMEOUT   5000U

Time out for LSE start up, in ms

Definition at line 133 of file stm32l4xx_hal_conf.h.

◆ LSE_VALUE

#define LSE_VALUE   32768U

External Low Speed oscillator (LSE) value.

< Value of the Internal Low Speed oscillator in Hz The real value may vary depending on the variations in voltage and temperature. This value is used by the UART, RTC HAL module to compute the system frequency Value of the External oscillator in Hz

Definition at line 129 of file stm32l4xx_hal_conf.h.

◆ LSI_VALUE

#define LSI_VALUE   32000U

Internal Low Speed oscillator (LSI) value.

LSI Typical Value in Hz

Definition at line 120 of file stm32l4xx_hal_conf.h.

◆ MSI_VALUE

#define MSI_VALUE   4000000U

Internal Multiple Speed oscillator (MSI) default value.

This value is the default MSI range value after Reset. Value of the Internal oscillator in Hz

Definition at line 92 of file stm32l4xx_hal_conf.h.

◆ PREFETCH_ENABLE

#define PREFETCH_ENABLE   0U

Definition at line 164 of file stm32l4xx_hal_conf.h.

◆ TICK_INT_PRIORITY

#define TICK_INT_PRIORITY   0x0FU

tick interrupt priority

Definition at line 162 of file stm32l4xx_hal_conf.h.

◆ USE_RTOS

#define USE_RTOS   0U

Definition at line 163 of file stm32l4xx_hal_conf.h.

◆ USE_SPI_CRC

#define USE_SPI_CRC   1U

Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.

Definition at line 182 of file stm32l4xx_hal_conf.h.

◆ VDD_VALUE

#define VDD_VALUE   3300U

This is the HAL system configuration section.

Value of VDD in mv

Definition at line 161 of file stm32l4xx_hal_conf.h.

Function Documentation

◆ SetInterruptPriority()

static void SetInterruptPriority ( uint32_t  irq,
uint8_t  priority 
)
inlinestatic

Definition at line 342 of file stm32l4xx_hal_conf.h.

Variable Documentation

◆ HSEValue

const uint32_t HSEValue
extern

Adjust the value of External High Speed oscillator (HSE) used in your application.

This value is used by the RCC HAL module to compute the system frequency (when HSE is used as system clock source, directly or through the PLL). Value of the External oscillator in Hz