HAL configuration file. More...
#include "stm32g4xx_hal_rcc.h"#include "stm32g4xx_hal_gpio.h"#include "stm32g4xx_hal_dma.h"#include "stm32g4xx_hal_cortex.h"#include "stm32g4xx_hal_adc.h"#include "stm32g4xx_hal_crc.h"#include "stm32g4xx_hal_exti.h"#include "stm32g4xx_hal_fdcan.h"#include "stm32g4xx_hal_flash.h"#include "stm32g4xx_hal_hrtim.h"#include "stm32g4xx_hal_iwdg.h"#include "stm32g4xx_hal_pcd.h"#include "stm32g4xx_hal_pwr.h"#include "stm32g4xx_hal_spi.h"#include "stm32g4xx_hal_tim.h"#include "stm32g4xx_hal_uart.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_CRC_MODULE_ENABLED |
| #define | HAL_FDCAN_MODULE_ENABLED |
| #define | HAL_HRTIM_MODULE_ENABLED |
| #define | HAL_IWDG_MODULE_ENABLED |
| #define | HAL_PCD_MODULE_ENABLED |
| #define | HAL_SPI_MODULE_ENABLED |
| #define | HAL_TIM_MODULE_ENABLED |
| #define | HAL_UART_MODULE_ENABLED |
| #define | HAL_GPIO_MODULE_ENABLED |
| #define | HAL_EXTI_MODULE_ENABLED |
| #define | HAL_DMA_MODULE_ENABLED |
| #define | HAL_RCC_MODULE_ENABLED |
| #define | HAL_FLASH_MODULE_ENABLED |
| #define | HAL_PWR_MODULE_ENABLED |
| #define | HAL_CORTEX_MODULE_ENABLED |
| #define | USE_HAL_ADC_REGISTER_CALLBACKS 0U |
| This is the list of modules where register callback can be used. | |
| #define | USE_HAL_COMP_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_CORDIC_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_CRYP_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_DAC_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_EXTI_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_FDCAN_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_FMAC_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_HRTIM_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_I2C_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_I2S_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_IRDA_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_LPTIM_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_NAND_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_NOR_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_OPAMP_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_PCD_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_QSPI_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_RNG_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_RTC_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_SAI_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_SMBUS_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_SPI_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_SRAM_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_TIM_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_UART_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_USART_REGISTER_CALLBACKS 0U |
| #define | USE_HAL_WWDG_REGISTER_CALLBACKS 0U |
| #define | HSE_VALUE (48000000UL) |
| 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). | |
| #define | HSE_STARTUP_TIMEOUT (100UL) |
| #define | HSI_VALUE (16000000UL) |
| 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). | |
| #define | HSI48_VALUE (48000000UL) |
| Internal High Speed oscillator (HSI48) value for USB FS 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. | |
| #define | LSI_VALUE (32000UL) |
| Internal Low Speed oscillator (LSI) value. | |
| #define | LSE_VALUE (32768UL) |
| External Low Speed oscillator (LSE) value. This value is used by the UART, RTC HAL module to compute the system frequency. | |
| #define | LSE_STARTUP_TIMEOUT (5000UL) |
| #define | EXTERNAL_CLOCK_VALUE (12288000UL) |
| External clock source for I2S and SAI peripherals This value is used by the I2S and SAI HAL modules to compute the I2S and SAI clock source frequency, this source is inserted directly through I2S_CKIN pad. | |
| #define | VDD_VALUE (3300UL) |
| This is the HAL system configuration section. | |
| #define | TICK_INT_PRIORITY (15UL) |
| #define | USE_RTOS 0U |
| #define | PREFETCH_ENABLE 0U |
| #define | INSTRUCTION_CACHE_ENABLE 1U |
| #define | DATA_CACHE_ENABLE 1U |
| #define | USE_SPI_CRC 0U |
| Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code. | |
| #define | assert_param(expr) |
| Include module's header file. | |
HAL configuration file.
Copyright (c) 2019 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
| #define assert_param | ( | expr | ) |
Include module's header file.
| #define DATA_CACHE_ENABLE 1U |
| #define EXTERNAL_CLOCK_VALUE (12288000UL) |
External clock source for I2S and SAI peripherals This value is used by the I2S and SAI HAL modules to compute the I2S and SAI clock source frequency, this source is inserted directly through I2S_CKIN pad.
Value of the External oscillator in Hz
| #define HAL_ADC_MODULE_ENABLED |
| #define HAL_CORTEX_MODULE_ENABLED |
| #define HAL_CRC_MODULE_ENABLED |
| #define HAL_DMA_MODULE_ENABLED |
| #define HAL_EXTI_MODULE_ENABLED |
| #define HAL_FDCAN_MODULE_ENABLED |
| #define HAL_FLASH_MODULE_ENABLED |
| #define HAL_GPIO_MODULE_ENABLED |
| #define HAL_HRTIM_MODULE_ENABLED |
| #define HAL_IWDG_MODULE_ENABLED |
| #define HAL_MODULE_ENABLED |
This is the list of modules to be used in the HAL driver.
| #define HAL_PCD_MODULE_ENABLED |
| #define HAL_PWR_MODULE_ENABLED |
| #define HAL_RCC_MODULE_ENABLED |
| #define HAL_SPI_MODULE_ENABLED |
| #define HAL_TIM_MODULE_ENABLED |
| #define HAL_UART_MODULE_ENABLED |
| #define HSE_STARTUP_TIMEOUT (100UL) |
Time out for HSE start up, in ms
| #define HSE_VALUE (48000000UL) |
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
| #define HSI48_VALUE (48000000UL) |
Internal High Speed oscillator (HSI48) value for USB FS 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/RNG in Hz. The real value my vary depending on manufacturing process variations.
| #define HSI_VALUE (16000000UL) |
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
| #define INSTRUCTION_CACHE_ENABLE 1U |
| #define LSE_STARTUP_TIMEOUT (5000UL) |
Time out for LSE start up, in ms
| #define LSE_VALUE (32768UL) |
External Low Speed oscillator (LSE) value. This value is used by the UART, RTC HAL module to compute the system frequency.
Value of the External Low Speed oscillator in Hz
| #define LSI_VALUE (32000UL) |
Internal Low Speed oscillator (LSI) value.
< Value of the Internal Low Speed oscillator in Hz The real value may vary depending on the variations in voltage and temperature. LSI Typical Value in Hz
| #define PREFETCH_ENABLE 0U |
| #define TICK_INT_PRIORITY (15UL) |
tick interrupt priority (lowest by default)
| #define USE_HAL_ADC_REGISTER_CALLBACKS 0U |
This is the list of modules where register callback can be used.
| #define USE_HAL_COMP_REGISTER_CALLBACKS 0U |
| #define USE_HAL_CORDIC_REGISTER_CALLBACKS 0U |
| #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U |
| #define USE_HAL_DAC_REGISTER_CALLBACKS 0U |
| #define USE_HAL_EXTI_REGISTER_CALLBACKS 0U |
| #define USE_HAL_FDCAN_REGISTER_CALLBACKS 0U |
| #define USE_HAL_FMAC_REGISTER_CALLBACKS 0U |
| #define USE_HAL_HRTIM_REGISTER_CALLBACKS 0U |
| #define USE_HAL_I2C_REGISTER_CALLBACKS 0U |
| #define USE_HAL_I2S_REGISTER_CALLBACKS 0U |
| #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U |
| #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U |
| #define USE_HAL_NAND_REGISTER_CALLBACKS 0U |
| #define USE_HAL_NOR_REGISTER_CALLBACKS 0U |
| #define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U |
| #define USE_HAL_PCD_REGISTER_CALLBACKS 0U |
| #define USE_HAL_QSPI_REGISTER_CALLBACKS 0U |
| #define USE_HAL_RNG_REGISTER_CALLBACKS 0U |
| #define USE_HAL_RTC_REGISTER_CALLBACKS 0U |
| #define USE_HAL_SAI_REGISTER_CALLBACKS 0U |
| #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U |
| #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U |
| #define USE_HAL_SPI_REGISTER_CALLBACKS 0U |
| #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U |
| #define USE_HAL_TIM_REGISTER_CALLBACKS 0U |
| #define USE_HAL_UART_REGISTER_CALLBACKS 0U |
| #define USE_HAL_USART_REGISTER_CALLBACKS 0U |
| #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U |
| #define USE_RTOS 0U |
| #define USE_SPI_CRC 0U |
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.
| #define VDD_VALUE (3300UL) |
This is the HAL system configuration section.
Value of VDD in mv