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

HAL configuration template file. This file should be copied to the application folder and renamed to stm32g0xx_hal_conf.h. More...

#include "stm32g0xx_hal_def.h"
#include "stm32g0xx_hal_rcc.h"
#include "stm32g0xx_hal_gpio.h"
#include "stm32g0xx_hal_dma.h"
#include "stm32g0xx_hal_cortex.h"
#include "stm32g0xx_hal_adc.h"
#include "stm32g0xx_hal_adc_ex.h"
#include "stm32g0xx_hal_cec.h"
#include "stm32g0xx_hal_comp.h"
#include "stm32g0xx_hal_crc.h"
#include "stm32g0xx_hal_cryp.h"
#include "stm32g0xx_hal_dac.h"
#include "stm32g0xx_hal_exti.h"
#include "stm32g0xx_hal_fdcan.h"
#include "stm32g0xx_hal_flash.h"
#include "stm32g0xx_hal_i2c.h"
#include "stm32g0xx_hal_i2s.h"
#include "stm32g0xx_hal_irda.h"
#include "stm32g0xx_hal_iwdg.h"
#include "stm32g0xx_hal_lptim.h"
#include "stm32g0xx_hal_pcd.h"
#include "stm32g0xx_hal_hcd.h"
#include "stm32g0xx_hal_pwr.h"
#include "stm32g0xx_hal_rng.h"
#include "stm32g0xx_hal_rtc.h"
#include "stm32g0xx_hal_smartcard.h"
#include "stm32g0xx_hal_smbus.h"
#include "stm32g0xx_hal_spi.h"
#include "stm32g0xx_hal_tim.h"
#include "stm32g0xx_hal_uart.h"
#include "stm32g0xx_hal_usart.h"
#include "stm32g0xx_hal_wwdg.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_CEC_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_EXTI_MODULE_ENABLED
 
#define HAL_FLASH_MODULE_ENABLED
 
#define HAL_FDCAN_MODULE_ENABLED
 
#define HAL_GPIO_MODULE_ENABLED
 
#define HAL_I2C_MODULE_ENABLED
 
#define HAL_I2S_MODULE_ENABLED
 
#define HAL_IRDA_MODULE_ENABLED
 
#define HAL_IWDG_MODULE_ENABLED
 
#define HAL_LPTIM_MODULE_ENABLED
 
#define HAL_HCD_MODULE_ENABLED
 
#define HAL_PCD_MODULE_ENABLED
 
#define HAL_PWR_MODULE_ENABLED
 
#define HAL_RCC_MODULE_ENABLED
 
#define HAL_RNG_MODULE_ENABLED
 
#define HAL_RTC_MODULE_ENABLED
 
#define HAL_SMARTCARD_MODULE_ENABLED
 
#define HAL_SMBUS_MODULE_ENABLED
 
#define HAL_SPI_MODULE_ENABLED
 
#define HAL_TIM_MODULE_ENABLED
 
#define HAL_UART_MODULE_ENABLED
 
#define HAL_USART_MODULE_ENABLED
 
#define HAL_WWDG_MODULE_ENABLED
 
#define USE_HAL_ADC_REGISTER_CALLBACKS   0u
 This is the list of modules where register callback can be used.
 
#define USE_HAL_CEC_REGISTER_CALLBACKS   0u
 
#define USE_HAL_COMP_REGISTER_CALLBACKS   0u
 
#define USE_HAL_CRYP_REGISTER_CALLBACKS   0u
 
#define USE_HAL_DAC_REGISTER_CALLBACKS   0u
 
#define USE_HAL_FDCAN_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_HCD_REGISTER_CALLBACKS   0u
 
#define USE_HAL_PCD_REGISTER_CALLBACKS   0u
 
#define USE_HAL_RNG_REGISTER_CALLBACKS   0u
 
#define USE_HAL_RTC_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_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 UNUSED(x)   ((void)((uint32_t)(x)))
 
#define HSE_VALUE   HSEValue
 
#define HSE_STARTUP_TIMEOUT   ((uint32_t)5000)
 
#define HSI_VALUE   ((uint32_t)16000000UL)
 Internal High Speed oscillator (HSI) value.
 
#define LSI_VALUE   ((uint32_t)32000UL)
 Internal Low Speed oscillator (LSI) value.
 
#define LSE_VALUE   ((uint32_t)32768UL)
 External Low Speed oscillator (LSE) value.
 
#define LSE_STARTUP_TIMEOUT   ((uint32_t)5000UL)
 
#define EXTERNAL_I2S1_CLOCK_VALUE   ((uint32_t)48000UL)
 External clock source for I2S1 peripheral This value is used by the RCC HAL module to compute the I2S1 clock source frequency.
 
#define VDD_VALUE   ((uint32_t)3300UL)
 This is the HAL system configuration section.
 
#define TICK_INT_PRIORITY   ((uint32_t)((1UL<<__NVIC_PRIO_BITS) - 1UL))
 
#define USE_RTOS   0U
 
#define PREFETCH_ENABLE   1U
 
#define INSTRUCTION_CACHE_ENABLE   1U
 
#define USE_SPI_CRC   1U
 
#define USE_HAL_CRYP_SUSPEND_RESUME   1U
 
#define assert_param(expr)   ((void)0U)
 Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.
 

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 template file. This file should be copied to the application folder and renamed to stm32g0xx_hal_conf.h.

Author
MCD Application Team
Attention

Copyright (c) 2018 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.

Definition in file stm32g0xx_hal_conf.h.

Macro Definition Documentation

◆ assert_param

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

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

Include modules header file

Definition at line 349 of file stm32g0xx_hal_conf.h.

◆ EXTERNAL_I2S1_CLOCK_VALUE

#define EXTERNAL_I2S1_CLOCK_VALUE   ((uint32_t)48000UL)

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

Value of the I2S1 External clock source in Hz

Definition at line 161 of file stm32g0xx_hal_conf.h.

◆ HAL_ADC_MODULE_ENABLED

#define HAL_ADC_MODULE_ENABLED

Definition at line 37 of file stm32g0xx_hal_conf.h.

◆ HAL_CEC_MODULE_ENABLED

#define HAL_CEC_MODULE_ENABLED

Definition at line 38 of file stm32g0xx_hal_conf.h.

◆ HAL_COMP_MODULE_ENABLED

#define HAL_COMP_MODULE_ENABLED

Definition at line 39 of file stm32g0xx_hal_conf.h.

◆ HAL_CORTEX_MODULE_ENABLED

#define HAL_CORTEX_MODULE_ENABLED

Definition at line 40 of file stm32g0xx_hal_conf.h.

◆ HAL_CRC_MODULE_ENABLED

#define HAL_CRC_MODULE_ENABLED

Definition at line 41 of file stm32g0xx_hal_conf.h.

◆ HAL_CRYP_MODULE_ENABLED

#define HAL_CRYP_MODULE_ENABLED

Definition at line 42 of file stm32g0xx_hal_conf.h.

◆ HAL_DAC_MODULE_ENABLED

#define HAL_DAC_MODULE_ENABLED

Definition at line 43 of file stm32g0xx_hal_conf.h.

◆ HAL_DMA_MODULE_ENABLED

#define HAL_DMA_MODULE_ENABLED

Definition at line 44 of file stm32g0xx_hal_conf.h.

◆ HAL_EXTI_MODULE_ENABLED

#define HAL_EXTI_MODULE_ENABLED

Definition at line 45 of file stm32g0xx_hal_conf.h.

◆ HAL_FDCAN_MODULE_ENABLED

#define HAL_FDCAN_MODULE_ENABLED

Definition at line 47 of file stm32g0xx_hal_conf.h.

◆ HAL_FLASH_MODULE_ENABLED

#define HAL_FLASH_MODULE_ENABLED

Definition at line 46 of file stm32g0xx_hal_conf.h.

◆ HAL_GPIO_MODULE_ENABLED

#define HAL_GPIO_MODULE_ENABLED

Definition at line 48 of file stm32g0xx_hal_conf.h.

◆ HAL_HCD_MODULE_ENABLED

#define HAL_HCD_MODULE_ENABLED

Definition at line 54 of file stm32g0xx_hal_conf.h.

◆ HAL_I2C_MODULE_ENABLED

#define HAL_I2C_MODULE_ENABLED

Definition at line 49 of file stm32g0xx_hal_conf.h.

◆ HAL_I2S_MODULE_ENABLED

#define HAL_I2S_MODULE_ENABLED

Definition at line 50 of file stm32g0xx_hal_conf.h.

◆ HAL_IRDA_MODULE_ENABLED

#define HAL_IRDA_MODULE_ENABLED

Definition at line 51 of file stm32g0xx_hal_conf.h.

◆ HAL_IWDG_MODULE_ENABLED

#define HAL_IWDG_MODULE_ENABLED

Definition at line 52 of file stm32g0xx_hal_conf.h.

◆ HAL_LPTIM_MODULE_ENABLED

#define HAL_LPTIM_MODULE_ENABLED

Definition at line 53 of file stm32g0xx_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 36 of file stm32g0xx_hal_conf.h.

◆ HAL_PCD_MODULE_ENABLED

#define HAL_PCD_MODULE_ENABLED

Definition at line 55 of file stm32g0xx_hal_conf.h.

◆ HAL_PWR_MODULE_ENABLED

#define HAL_PWR_MODULE_ENABLED

Definition at line 56 of file stm32g0xx_hal_conf.h.

◆ HAL_RCC_MODULE_ENABLED

#define HAL_RCC_MODULE_ENABLED

Definition at line 57 of file stm32g0xx_hal_conf.h.

◆ HAL_RNG_MODULE_ENABLED

#define HAL_RNG_MODULE_ENABLED

Definition at line 58 of file stm32g0xx_hal_conf.h.

◆ HAL_RTC_MODULE_ENABLED

#define HAL_RTC_MODULE_ENABLED

Definition at line 59 of file stm32g0xx_hal_conf.h.

◆ HAL_SMARTCARD_MODULE_ENABLED

#define HAL_SMARTCARD_MODULE_ENABLED

Definition at line 60 of file stm32g0xx_hal_conf.h.

◆ HAL_SMBUS_MODULE_ENABLED

#define HAL_SMBUS_MODULE_ENABLED

Definition at line 61 of file stm32g0xx_hal_conf.h.

◆ HAL_SPI_MODULE_ENABLED

#define HAL_SPI_MODULE_ENABLED

Definition at line 62 of file stm32g0xx_hal_conf.h.

◆ HAL_TIM_MODULE_ENABLED

#define HAL_TIM_MODULE_ENABLED

Definition at line 63 of file stm32g0xx_hal_conf.h.

◆ HAL_UART_MODULE_ENABLED

#define HAL_UART_MODULE_ENABLED

Definition at line 64 of file stm32g0xx_hal_conf.h.

◆ HAL_USART_MODULE_ENABLED

#define HAL_USART_MODULE_ENABLED

Definition at line 65 of file stm32g0xx_hal_conf.h.

◆ HAL_WWDG_MODULE_ENABLED

#define HAL_WWDG_MODULE_ENABLED

Definition at line 66 of file stm32g0xx_hal_conf.h.

◆ HSE_STARTUP_TIMEOUT

#define HSE_STARTUP_TIMEOUT   ((uint32_t)5000)

Time out for HSE start up, in ms

Definition at line 109 of file stm32g0xx_hal_conf.h.

◆ HSE_VALUE

#define HSE_VALUE   HSEValue

Definition at line 106 of file stm32g0xx_hal_conf.h.

◆ HSI_VALUE

#define HSI_VALUE   ((uint32_t)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

Definition at line 118 of file stm32g0xx_hal_conf.h.

◆ INSTRUCTION_CACHE_ENABLE

#define INSTRUCTION_CACHE_ENABLE   1U

Definition at line 186 of file stm32g0xx_hal_conf.h.

◆ LSE_STARTUP_TIMEOUT

#define LSE_STARTUP_TIMEOUT   ((uint32_t)5000UL)

Time out for LSE start up, in ms

Definition at line 152 of file stm32g0xx_hal_conf.h.

◆ LSE_VALUE

#define LSE_VALUE   ((uint32_t)32768UL)

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 148 of file stm32g0xx_hal_conf.h.

◆ LSI_VALUE

#define LSI_VALUE   ((uint32_t)32000UL)

Internal Low Speed oscillator (LSI) value.

LSI Typical Value in Hz

Definition at line 139 of file stm32g0xx_hal_conf.h.

◆ PREFETCH_ENABLE

#define PREFETCH_ENABLE   1U

Definition at line 185 of file stm32g0xx_hal_conf.h.

◆ TICK_INT_PRIORITY

#define TICK_INT_PRIORITY   ((uint32_t)((1UL<<__NVIC_PRIO_BITS) - 1UL))

tick interrupt priority

Definition at line 183 of file stm32g0xx_hal_conf.h.

◆ UNUSED

#define UNUSED (   x)    ((void)((uint32_t)(x)))

Definition at line 97 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_ADC_REGISTER_CALLBACKS

#define USE_HAL_ADC_REGISTER_CALLBACKS   0u

This is the list of modules where register callback can be used.

Definition at line 72 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_CEC_REGISTER_CALLBACKS

#define USE_HAL_CEC_REGISTER_CALLBACKS   0u

Definition at line 73 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_COMP_REGISTER_CALLBACKS

#define USE_HAL_COMP_REGISTER_CALLBACKS   0u

Definition at line 74 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_CRYP_REGISTER_CALLBACKS

#define USE_HAL_CRYP_REGISTER_CALLBACKS   0u

Definition at line 75 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_CRYP_SUSPEND_RESUME

#define USE_HAL_CRYP_SUSPEND_RESUME   1U

Definition at line 199 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_DAC_REGISTER_CALLBACKS

#define USE_HAL_DAC_REGISTER_CALLBACKS   0u

Definition at line 76 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_FDCAN_REGISTER_CALLBACKS

#define USE_HAL_FDCAN_REGISTER_CALLBACKS   0u

Definition at line 77 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_HCD_REGISTER_CALLBACKS

#define USE_HAL_HCD_REGISTER_CALLBACKS   0u

Definition at line 82 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_I2C_REGISTER_CALLBACKS

#define USE_HAL_I2C_REGISTER_CALLBACKS   0u

Definition at line 78 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_I2S_REGISTER_CALLBACKS

#define USE_HAL_I2S_REGISTER_CALLBACKS   0u

Definition at line 79 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_IRDA_REGISTER_CALLBACKS

#define USE_HAL_IRDA_REGISTER_CALLBACKS   0u

Definition at line 80 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_LPTIM_REGISTER_CALLBACKS

#define USE_HAL_LPTIM_REGISTER_CALLBACKS   0u

Definition at line 81 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_PCD_REGISTER_CALLBACKS

#define USE_HAL_PCD_REGISTER_CALLBACKS   0u

Definition at line 83 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_RNG_REGISTER_CALLBACKS

#define USE_HAL_RNG_REGISTER_CALLBACKS   0u

Definition at line 84 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_RTC_REGISTER_CALLBACKS

#define USE_HAL_RTC_REGISTER_CALLBACKS   0u

Definition at line 85 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_SMARTCARD_REGISTER_CALLBACKS

#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS   0u

Definition at line 86 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_SMBUS_REGISTER_CALLBACKS

#define USE_HAL_SMBUS_REGISTER_CALLBACKS   0u

Definition at line 87 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_SPI_REGISTER_CALLBACKS

#define USE_HAL_SPI_REGISTER_CALLBACKS   0u

Definition at line 88 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_TIM_REGISTER_CALLBACKS

#define USE_HAL_TIM_REGISTER_CALLBACKS   0u

Definition at line 89 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_UART_REGISTER_CALLBACKS

#define USE_HAL_UART_REGISTER_CALLBACKS   0u

Definition at line 90 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_USART_REGISTER_CALLBACKS

#define USE_HAL_USART_REGISTER_CALLBACKS   0u

Definition at line 91 of file stm32g0xx_hal_conf.h.

◆ USE_HAL_WWDG_REGISTER_CALLBACKS

#define USE_HAL_WWDG_REGISTER_CALLBACKS   0u

Definition at line 92 of file stm32g0xx_hal_conf.h.

◆ USE_RTOS

#define USE_RTOS   0U

Definition at line 184 of file stm32g0xx_hal_conf.h.

◆ USE_SPI_CRC

#define USE_SPI_CRC   1U

Definition at line 195 of file stm32g0xx_hal_conf.h.

◆ VDD_VALUE

#define VDD_VALUE   ((uint32_t)3300UL)

This is the HAL system configuration section.

Value of VDD in mv

Definition at line 182 of file stm32g0xx_hal_conf.h.

Function Documentation

◆ SetInterruptPriority()

static void SetInterruptPriority ( uint32_t  irq,
uint8_t  priority 
)
inlinestatic

Definition at line 352 of file stm32g0xx_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).