|
Open Model Railroad Network (OpenMRN)
|
HAL configuration file. More...
#include "stm32f0xx_hal_def.h"#include "stm32f0xx_hal_rcc.h"#include "stm32f0xx_hal_gpio.h"#include "stm32f0xx_hal_dma.h"#include "stm32f0xx_hal_cortex.h"#include "stm32f0xx_hal_adc.h"#include "stm32f0xx_hal_can.h"#include "stm32f0xx_hal_cec.h"#include "stm32f0xx_hal_comp.h"#include "stm32f0xx_hal_crc.h"#include "stm32f0xx_hal_dac.h"#include "stm32f0xx_hal_flash.h"#include "stm32f0xx_hal_i2c.h"#include "stm32f0xx_hal_i2s.h"#include "stm32f0xx_hal_irda.h"#include "stm32f0xx_hal_iwdg.h"#include "stm32f0xx_hal_pcd.h"#include "stm32f0xx_hal_pwr.h"#include "stm32f0xx_hal_rtc.h"#include "stm32f0xx_hal_smartcard.h"#include "stm32f0xx_hal_smbus.h"#include "stm32f0xx_hal_spi.h"#include "stm32f0xx_hal_tim.h"#include "stm32f0xx_hal_tsc.h"#include "stm32f0xx_hal_uart.h"#include "stm32f0xx_hal_usart.h"#include "stm32f0xx_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 |
| Enable module. | |
| #define | HAL_CAN_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_CEC_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_COMP_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_CORTEX_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_CRC_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_DAC_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_DMA_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_FLASH_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_GPIO_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_I2C_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_I2S_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_IRDA_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_IWDG_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_PCD_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_PWR_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_RCC_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_RTC_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_SMARTCARD_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_SMBUS_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_SPI_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_TIM_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_TSC_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_UART_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_USART_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_WWDG_MODULE_ENABLED |
| Enable module. | |
| #define | UNUSED(x) ((void)((uint32_t)(x))) |
| #define | HSE_VALUE HSEValue |
| #define | HSE_STARTUP_TIMEOUT ((uint32_t)5000) |
| In the following line adjust the External High Speed oscillator (HSE) Startup Timeout value. | |
| #define | HSI_VALUE ((uint32_t)8000000) |
| Internal High Speed oscillator (HSI) value. | |
| #define | HSI_STARTUP_TIMEOUT ((uint32_t)5000) |
| In the following line adjust the Internal High Speed oscillator (HSI) Startup Timeout value. | |
| #define | HSI14_VALUE ((uint32_t)14000000) |
| Internal High Speed oscillator for ADC (HSI14) value. | |
| #define | HSI48_VALUE ((uint32_t)48000000) |
| Internal High Speed oscillator for USB (HSI48) value. | |
| #define | LSI_VALUE ((uint32_t)40000) |
| Internal Low Speed oscillator (LSI) value. | |
| #define | LSE_VALUE ((uint32_t)32768) |
| External Low Speed oscillator (LSE) value. | |
| #define | LSE_STARTUP_TIMEOUT 5000U |
| Time out for LSE start up value in ms. | |
| #define | VDD_VALUE ((uint32_t)3300) |
| This is the HAL system configuration section. | |
| #define | TICK_INT_PRIORITY ((uint32_t)(1<<__NVIC_PRIO_BITS) - 1) |
| #define | USE_RTOS 0 |
| Do not use the stm32 HAL's RTOS features. (btw: why?) | |
| #define | PREFETCH_ENABLE 1 |
| Enable flash prefetch. | |
| #define | INSTRUCTION_CACHE_ENABLE 0 |
| We do not have an instruction cache in stm32f0 (sure?) | |
| #define | DATA_CACHE_ENABLE 0 |
| We do not have a data cache in stm32f0 (sure?) | |
| #define | assert_param(expr) ((void)0) |
| 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. | |
HAL configuration file.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32f0xx_hal_conf.h.
| #define assert_param | ( | expr | ) | ((void)0) |
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.
Include module's header file
Definition at line 337 of file stm32f0xx_hal_conf.h.
| #define DATA_CACHE_ENABLE 0 |
We do not have a data cache in stm32f0 (sure?)
Definition at line 205 of file stm32f0xx_hal_conf.h.
| #define HAL_ADC_MODULE_ENABLED |
Enable module.
Definition at line 55 of file stm32f0xx_hal_conf.h.
| #define HAL_CAN_MODULE_ENABLED |
Enable module.
Definition at line 57 of file stm32f0xx_hal_conf.h.
| #define HAL_CEC_MODULE_ENABLED |
Enable module.
Definition at line 59 of file stm32f0xx_hal_conf.h.
| #define HAL_COMP_MODULE_ENABLED |
Enable module.
Definition at line 61 of file stm32f0xx_hal_conf.h.
| #define HAL_CORTEX_MODULE_ENABLED |
Enable module.
Definition at line 63 of file stm32f0xx_hal_conf.h.
| #define HAL_CRC_MODULE_ENABLED |
Enable module.
Definition at line 65 of file stm32f0xx_hal_conf.h.
| #define HAL_DAC_MODULE_ENABLED |
Enable module.
Definition at line 67 of file stm32f0xx_hal_conf.h.
| #define HAL_DMA_MODULE_ENABLED |
Enable module.
Definition at line 69 of file stm32f0xx_hal_conf.h.
| #define HAL_FLASH_MODULE_ENABLED |
Enable module.
Definition at line 71 of file stm32f0xx_hal_conf.h.
| #define HAL_GPIO_MODULE_ENABLED |
Enable module.
Definition at line 73 of file stm32f0xx_hal_conf.h.
| #define HAL_I2C_MODULE_ENABLED |
Enable module.
Definition at line 75 of file stm32f0xx_hal_conf.h.
| #define HAL_I2S_MODULE_ENABLED |
Enable module.
Definition at line 77 of file stm32f0xx_hal_conf.h.
| #define HAL_IRDA_MODULE_ENABLED |
Enable module.
Definition at line 79 of file stm32f0xx_hal_conf.h.
| #define HAL_IWDG_MODULE_ENABLED |
Enable module.
Definition at line 81 of file stm32f0xx_hal_conf.h.
| #define HAL_MODULE_ENABLED |
This is the list of modules to be used in the HAL driver.
Definition at line 53 of file stm32f0xx_hal_conf.h.
| #define HAL_PCD_MODULE_ENABLED |
Enable module.
Definition at line 83 of file stm32f0xx_hal_conf.h.
| #define HAL_PWR_MODULE_ENABLED |
Enable module.
Definition at line 85 of file stm32f0xx_hal_conf.h.
| #define HAL_RCC_MODULE_ENABLED |
Enable module.
Definition at line 87 of file stm32f0xx_hal_conf.h.
| #define HAL_RTC_MODULE_ENABLED |
Enable module.
Definition at line 89 of file stm32f0xx_hal_conf.h.
| #define HAL_SMARTCARD_MODULE_ENABLED |
Enable module.
Definition at line 91 of file stm32f0xx_hal_conf.h.
| #define HAL_SMBUS_MODULE_ENABLED |
Enable module.
Definition at line 93 of file stm32f0xx_hal_conf.h.
| #define HAL_SPI_MODULE_ENABLED |
Enable module.
Definition at line 95 of file stm32f0xx_hal_conf.h.
| #define HAL_TIM_MODULE_ENABLED |
Enable module.
Definition at line 97 of file stm32f0xx_hal_conf.h.
| #define HAL_TSC_MODULE_ENABLED |
Enable module.
Definition at line 99 of file stm32f0xx_hal_conf.h.
| #define HAL_UART_MODULE_ENABLED |
Enable module.
Definition at line 101 of file stm32f0xx_hal_conf.h.
| #define HAL_USART_MODULE_ENABLED |
Enable module.
Definition at line 103 of file stm32f0xx_hal_conf.h.
| #define HAL_WWDG_MODULE_ENABLED |
Enable module.
Definition at line 105 of file stm32f0xx_hal_conf.h.
| #define HSE_STARTUP_TIMEOUT ((uint32_t)5000) |
In the following line adjust the External High Speed oscillator (HSE) Startup Timeout value.
Time out for HSE start up, in ms
Definition at line 126 of file stm32f0xx_hal_conf.h.
| #define HSE_VALUE HSEValue |
Definition at line 119 of file stm32f0xx_hal_conf.h.
| #define HSI14_VALUE ((uint32_t)14000000) |
Internal High Speed oscillator for ADC (HSI14) value.
Value of the Internal High Speed oscillator for ADC in Hz. The real value may vary depending on the variations in voltage and temperature.
Definition at line 152 of file stm32f0xx_hal_conf.h.
| #define HSI48_VALUE ((uint32_t)48000000) |
Internal High Speed oscillator for USB (HSI48) value.
Value of the Internal High Speed oscillator for USB in Hz. The real value may vary depending on the variations in voltage and temperature.
Definition at line 161 of file stm32f0xx_hal_conf.h.
| #define HSI_STARTUP_TIMEOUT ((uint32_t)5000) |
In the following line adjust the Internal High Speed oscillator (HSI) Startup Timeout value.
Time out for HSI start up
Definition at line 143 of file stm32f0xx_hal_conf.h.
| #define HSI_VALUE ((uint32_t)8000000) |
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 135 of file stm32f0xx_hal_conf.h.
| #define INSTRUCTION_CACHE_ENABLE 0 |
We do not have an instruction cache in stm32f0 (sure?)
Definition at line 203 of file stm32f0xx_hal_conf.h.
| #define LSE_STARTUP_TIMEOUT 5000U |
Time out for LSE start up value in ms.
Time out for LSE start up, in ms
Definition at line 183 of file stm32f0xx_hal_conf.h.
| #define LSE_VALUE ((uint32_t)32768) |
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.
Value of the External Low Speed oscillator in Hz
Definition at line 176 of file stm32f0xx_hal_conf.h.
| #define LSI_VALUE ((uint32_t)40000) |
Internal Low Speed oscillator (LSI) value.
Definition at line 168 of file stm32f0xx_hal_conf.h.
| #define PREFETCH_ENABLE 1 |
Enable flash prefetch.
Definition at line 201 of file stm32f0xx_hal_conf.h.
| #define TICK_INT_PRIORITY ((uint32_t)(1<<__NVIC_PRIO_BITS) - 1) |
tick interrupt priority (lowest by default)
Definition at line 195 of file stm32f0xx_hal_conf.h.
| #define UNUSED | ( | x | ) | ((void)((uint32_t)(x))) |
Definition at line 110 of file stm32f0xx_hal_conf.h.
| #define USE_RTOS 0 |
Do not use the stm32 HAL's RTOS features. (btw: why?)
Definition at line 199 of file stm32f0xx_hal_conf.h.
| #define VDD_VALUE ((uint32_t)3300) |
This is the HAL system configuration section.
Value of VDD in mv
Definition at line 194 of file stm32f0xx_hal_conf.h.
|
inlinestatic |
Definition at line 340 of file stm32f0xx_hal_conf.h.
|
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).