|
Open Model Railroad Network (OpenMRN)
|
HAL configuration template file. This file should be copied to the application folder and renamed to stm32f1xx_hal_conf.h. More...
#include "stm32f1xx_hal_rcc.h"#include "stm32f1xx_hal_gpio.h"#include "stm32f1xx_hal_dma.h"#include "stm32f1xx_hal_eth.h"#include "stm32f1xx_hal_can.h"#include "stm32f1xx_hal_cec.h"#include "stm32f1xx_hal_cortex.h"#include "stm32f1xx_hal_adc.h"#include "stm32f1xx_hal_crc.h"#include "stm32f1xx_hal_dac.h"#include "stm32f1xx_hal_flash.h"#include "stm32f1xx_hal_sram.h"#include "stm32f1xx_hal_nor.h"#include "stm32f1xx_hal_i2c.h"#include "stm32f1xx_hal_i2s.h"#include "stm32f1xx_hal_iwdg.h"#include "stm32f1xx_hal_pwr.h"#include "stm32f1xx_hal_rtc.h"#include "stm32f1xx_hal_pccard.h"#include "stm32f1xx_hal_sd.h"#include "stm32f1xx_hal_nand.h"#include "stm32f1xx_hal_spi.h"#include "stm32f1xx_hal_tim.h"#include "stm32f1xx_hal_uart.h"#include "stm32f1xx_hal_usart.h"#include "stm32f1xx_hal_irda.h"#include "stm32f1xx_hal_smartcard.h"#include "stm32f1xx_hal_wwdg.h"#include "stm32f1xx_hal_pcd.h"#include "stm32f1xx_hal_hcd.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_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_ETH_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_FLASH_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_GPIO_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_HCD_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_NAND_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_NOR_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_PCCARD_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_SD_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_SMARTCARD_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_SPI_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_SRAM_MODULE_ENABLED |
| Enable module. | |
| #define | HAL_TIM_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 | HSE_VALUE ((uint32_t)8000000) |
| Adjust the value of External High Speed oscillator (HSE) used in your application. | |
| #define | HSE_STARTUP_TIMEOUT ((uint32_t)5000) |
| #define | HSI_VALUE ((uint32_t)8000000) |
| Internal High Speed oscillator (HSI) 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 ((uint32_t)5000) |
| #define | VDD_VALUE ((uint32_t)3300) |
| This is the HAL system configuration section. | |
| #define | TICK_INT_PRIORITY ((uint32_t)0x000F) |
| #define | USE_RTOS 0 |
| Do not use the stm32 HAL's RTOS features. (btw: why?) | |
| #define | PREFETCH_ENABLE 1 |
| Enable flash prefetch. | |
| #define | MAC_ADDR0 2 |
| Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code. | |
| #define | MAC_ADDR1 0 |
| MAC accress byte 1. | |
| #define | MAC_ADDR2 0 |
| MAC accress byte 2. | |
| #define | MAC_ADDR3 0 |
| MAC accress byte 3. | |
| #define | MAC_ADDR4 0 |
| MAC accress byte 4. | |
| #define | MAC_ADDR5 0 |
| MAC accress byte 5. | |
| #define | ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE |
| #define | ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE |
| #define | ETH_RXBUFNB ((uint32_t)8) |
| #define | ETH_TXBUFNB ((uint32_t)4) |
| #define | DP83848_PHY_ADDRESS 0x01 |
| DP83848 PHY Address. | |
| #define | PHY_RESET_DELAY ((uint32_t)0x000000FF) |
| PHY Reset delay these values are based on a 1 ms Systick interrupt. | |
| #define | PHY_CONFIG_DELAY ((uint32_t)0x00000FFF) |
| PHY Configuration delay. | |
| #define | PHY_READ_TO ((uint32_t)0x0000FFFF) |
| ? | |
| #define | PHY_WRITE_TO ((uint32_t)0x0000FFFF) |
| ? | |
| #define | PHY_BCR ((uint16_t)0x00) |
| #define | PHY_BSR ((uint16_t)0x01) |
| #define | PHY_RESET ((uint16_t)0x8000) |
| #define | PHY_LOOPBACK ((uint16_t)0x4000) |
| #define | PHY_FULLDUPLEX_100M ((uint16_t)0x2100) |
| #define | PHY_HALFDUPLEX_100M ((uint16_t)0x2000) |
| #define | PHY_FULLDUPLEX_10M ((uint16_t)0x0100) |
| #define | PHY_HALFDUPLEX_10M ((uint16_t)0x0000) |
| #define | PHY_AUTONEGOTIATION ((uint16_t)0x1000) |
| #define | PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200) |
| #define | PHY_POWERDOWN ((uint16_t)0x0800) |
| #define | PHY_ISOLATE ((uint16_t)0x0400) |
| #define | PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020) |
| #define | PHY_LINKED_STATUS ((uint16_t)0x0004) |
| #define | PHY_JABBER_DETECTION ((uint16_t)0x0002) |
| #define | PHY_SR ((uint16_t)0x10) |
| #define | PHY_MICR ((uint16_t)0x11) |
| #define | PHY_MISR ((uint16_t)0x12) |
| #define | PHY_LINK_STATUS ((uint16_t)0x0001) |
| #define | PHY_SPEED_STATUS ((uint16_t)0x0002) |
| #define | PHY_DUPLEX_STATUS ((uint16_t)0x0004) |
| #define | PHY_MICR_INT_EN ((uint16_t)0x0002) |
| #define | PHY_MICR_INT_OE ((uint16_t)0x0001) |
| #define | PHY_MISR_LINK_INT_EN ((uint16_t)0x0020) |
| #define | PHY_LINK_INTERRUPT ((uint16_t)0x2000) |
| #define | assert_param(expr) ((void)0) |
| Include module's header file. | |
Functions | |
| static void | SetInterruptPriority (uint32_t irq, uint8_t priority) |
HAL configuration template file. This file should be copied to the application folder and renamed to stm32f1xx_hal_conf.h.
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 stm32f1xx_hal_conf.h.
| #define assert_param | ( | expr | ) | ((void)0) |
Include module's header file.
Definition at line 406 of file stm32f1xx_hal_conf.h.
| #define DP83848_PHY_ADDRESS 0x01 |
DP83848 PHY Address.
Definition at line 216 of file stm32f1xx_hal_conf.h.
| #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE |
buffer size for receive
Definition at line 208 of file stm32f1xx_hal_conf.h.
| #define ETH_RXBUFNB ((uint32_t)8) |
8 Rx buffers of size ETH_RX_BUF_SIZE
Definition at line 210 of file stm32f1xx_hal_conf.h.
| #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE |
buffer size for transmit
Definition at line 209 of file stm32f1xx_hal_conf.h.
| #define ETH_TXBUFNB ((uint32_t)4) |
4 Tx buffers of size ETH_TX_BUF_SIZE
Definition at line 211 of file stm32f1xx_hal_conf.h.
| #define HAL_ADC_MODULE_ENABLED |
Enable module.
Definition at line 57 of file stm32f1xx_hal_conf.h.
| #define HAL_CAN_MODULE_ENABLED |
Enable module.
Definition at line 59 of file stm32f1xx_hal_conf.h.
| #define HAL_CEC_MODULE_ENABLED |
Enable module.
Definition at line 61 of file stm32f1xx_hal_conf.h.
| #define HAL_CORTEX_MODULE_ENABLED |
Enable module.
Definition at line 63 of file stm32f1xx_hal_conf.h.
| #define HAL_CRC_MODULE_ENABLED |
Enable module.
Definition at line 65 of file stm32f1xx_hal_conf.h.
| #define HAL_DAC_MODULE_ENABLED |
Enable module.
Definition at line 67 of file stm32f1xx_hal_conf.h.
| #define HAL_DMA_MODULE_ENABLED |
Enable module.
Definition at line 69 of file stm32f1xx_hal_conf.h.
| #define HAL_ETH_MODULE_ENABLED |
Enable module.
Definition at line 71 of file stm32f1xx_hal_conf.h.
| #define HAL_FLASH_MODULE_ENABLED |
Enable module.
Definition at line 73 of file stm32f1xx_hal_conf.h.
| #define HAL_GPIO_MODULE_ENABLED |
Enable module.
Definition at line 75 of file stm32f1xx_hal_conf.h.
| #define HAL_HCD_MODULE_ENABLED |
Enable module.
Definition at line 77 of file stm32f1xx_hal_conf.h.
| #define HAL_I2C_MODULE_ENABLED |
Enable module.
Definition at line 79 of file stm32f1xx_hal_conf.h.
| #define HAL_I2S_MODULE_ENABLED |
Enable module.
Definition at line 81 of file stm32f1xx_hal_conf.h.
| #define HAL_IRDA_MODULE_ENABLED |
Enable module.
Definition at line 83 of file stm32f1xx_hal_conf.h.
| #define HAL_IWDG_MODULE_ENABLED |
Enable module.
Definition at line 85 of file stm32f1xx_hal_conf.h.
| #define HAL_MODULE_ENABLED |
This is the list of modules to be used in the HAL driver.
Definition at line 55 of file stm32f1xx_hal_conf.h.
| #define HAL_NAND_MODULE_ENABLED |
Enable module.
Definition at line 87 of file stm32f1xx_hal_conf.h.
| #define HAL_NOR_MODULE_ENABLED |
Enable module.
Definition at line 89 of file stm32f1xx_hal_conf.h.
| #define HAL_PCCARD_MODULE_ENABLED |
Enable module.
Definition at line 91 of file stm32f1xx_hal_conf.h.
| #define HAL_PCD_MODULE_ENABLED |
Enable module.
Definition at line 93 of file stm32f1xx_hal_conf.h.
| #define HAL_PWR_MODULE_ENABLED |
Enable module.
Definition at line 95 of file stm32f1xx_hal_conf.h.
| #define HAL_RCC_MODULE_ENABLED |
Enable module.
Definition at line 97 of file stm32f1xx_hal_conf.h.
| #define HAL_RTC_MODULE_ENABLED |
Enable module.
Definition at line 99 of file stm32f1xx_hal_conf.h.
| #define HAL_SD_MODULE_ENABLED |
Enable module.
Definition at line 101 of file stm32f1xx_hal_conf.h.
| #define HAL_SMARTCARD_MODULE_ENABLED |
Enable module.
Definition at line 103 of file stm32f1xx_hal_conf.h.
| #define HAL_SPI_MODULE_ENABLED |
Enable module.
Definition at line 105 of file stm32f1xx_hal_conf.h.
| #define HAL_SRAM_MODULE_ENABLED |
Enable module.
Definition at line 107 of file stm32f1xx_hal_conf.h.
| #define HAL_TIM_MODULE_ENABLED |
Enable module.
Definition at line 109 of file stm32f1xx_hal_conf.h.
| #define HAL_UART_MODULE_ENABLED |
Enable module.
Definition at line 111 of file stm32f1xx_hal_conf.h.
| #define HAL_USART_MODULE_ENABLED |
Enable module.
Definition at line 113 of file stm32f1xx_hal_conf.h.
| #define HAL_WWDG_MODULE_ENABLED |
Enable module.
Definition at line 115 of file stm32f1xx_hal_conf.h.
| #define HSE_STARTUP_TIMEOUT ((uint32_t)5000) |
Time out for HSE start up, in ms
Definition at line 132 of file stm32f1xx_hal_conf.h.
| #define HSE_VALUE ((uint32_t)8000000) |
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
Definition at line 127 of file stm32f1xx_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 141 of file stm32f1xx_hal_conf.h.
| #define LSE_STARTUP_TIMEOUT ((uint32_t)5000) |
Time out for LSE start up, in ms
Definition at line 163 of file stm32f1xx_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.
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 158 of file stm32f1xx_hal_conf.h.
| #define LSI_VALUE ((uint32_t)40000) |
Internal Low Speed oscillator (LSI) value.
Definition at line 148 of file stm32f1xx_hal_conf.h.
| #define MAC_ADDR0 2 |
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.
MAC accress byte 0
Definition at line 195 of file stm32f1xx_hal_conf.h.
| #define MAC_ADDR1 0 |
MAC accress byte 1.
Definition at line 197 of file stm32f1xx_hal_conf.h.
| #define MAC_ADDR2 0 |
MAC accress byte 2.
Definition at line 199 of file stm32f1xx_hal_conf.h.
| #define MAC_ADDR3 0 |
MAC accress byte 3.
Definition at line 201 of file stm32f1xx_hal_conf.h.
| #define MAC_ADDR4 0 |
MAC accress byte 4.
Definition at line 203 of file stm32f1xx_hal_conf.h.
| #define MAC_ADDR5 0 |
MAC accress byte 5.
Definition at line 205 of file stm32f1xx_hal_conf.h.
| #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020) |
Auto-Negotiation process completed
Definition at line 243 of file stm32f1xx_hal_conf.h.
| #define PHY_AUTONEGOTIATION ((uint16_t)0x1000) |
Enable auto-negotiation function
Definition at line 238 of file stm32f1xx_hal_conf.h.
| #define PHY_BCR ((uint16_t)0x00) |
Transceiver Basic Control Register
Definition at line 229 of file stm32f1xx_hal_conf.h.
| #define PHY_BSR ((uint16_t)0x01) |
Transceiver Basic Status Register
Definition at line 230 of file stm32f1xx_hal_conf.h.
| #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFF) |
PHY Configuration delay.
Definition at line 220 of file stm32f1xx_hal_conf.h.
| #define PHY_DUPLEX_STATUS ((uint16_t)0x0004) |
PHY Duplex mask
Definition at line 255 of file stm32f1xx_hal_conf.h.
| #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100) |
Set the full-duplex mode at 100 Mb/s
Definition at line 234 of file stm32f1xx_hal_conf.h.
| #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100) |
Set the full-duplex mode at 10 Mb/s
Definition at line 236 of file stm32f1xx_hal_conf.h.
| #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000) |
Set the half-duplex mode at 100 Mb/s
Definition at line 235 of file stm32f1xx_hal_conf.h.
| #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000) |
Set the half-duplex mode at 10 Mb/s
Definition at line 237 of file stm32f1xx_hal_conf.h.
| #define PHY_ISOLATE ((uint16_t)0x0400) |
Isolate PHY from MII
Definition at line 241 of file stm32f1xx_hal_conf.h.
| #define PHY_JABBER_DETECTION ((uint16_t)0x0002) |
Jabber condition detected
Definition at line 245 of file stm32f1xx_hal_conf.h.
| #define PHY_LINK_INTERRUPT ((uint16_t)0x2000) |
PHY link status interrupt mask
Definition at line 261 of file stm32f1xx_hal_conf.h.
| #define PHY_LINK_STATUS ((uint16_t)0x0001) |
PHY Link mask
Definition at line 253 of file stm32f1xx_hal_conf.h.
| #define PHY_LINKED_STATUS ((uint16_t)0x0004) |
Valid link established
Definition at line 244 of file stm32f1xx_hal_conf.h.
| #define PHY_LOOPBACK ((uint16_t)0x4000) |
Select loop-back mode
Definition at line 233 of file stm32f1xx_hal_conf.h.
| #define PHY_MICR ((uint16_t)0x11) |
MII Interrupt Control Register
Definition at line 250 of file stm32f1xx_hal_conf.h.
| #define PHY_MICR_INT_EN ((uint16_t)0x0002) |
PHY Enable interrupts
Definition at line 257 of file stm32f1xx_hal_conf.h.
| #define PHY_MICR_INT_OE ((uint16_t)0x0001) |
PHY Enable output interrupt events
Definition at line 258 of file stm32f1xx_hal_conf.h.
| #define PHY_MISR ((uint16_t)0x12) |
MII Interrupt Status and Misc. Control Register
Definition at line 251 of file stm32f1xx_hal_conf.h.
| #define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020) |
Enable Interrupt on change of link status
Definition at line 260 of file stm32f1xx_hal_conf.h.
| #define PHY_POWERDOWN ((uint16_t)0x0800) |
Select the power down mode
Definition at line 240 of file stm32f1xx_hal_conf.h.
| #define PHY_READ_TO ((uint32_t)0x0000FFFF) |
?
Definition at line 223 of file stm32f1xx_hal_conf.h.
| #define PHY_RESET ((uint16_t)0x8000) |
PHY Reset
Definition at line 232 of file stm32f1xx_hal_conf.h.
| #define PHY_RESET_DELAY ((uint32_t)0x000000FF) |
PHY Reset delay these values are based on a 1 ms Systick interrupt.
Definition at line 218 of file stm32f1xx_hal_conf.h.
| #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200) |
Restart auto-negotiation function
Definition at line 239 of file stm32f1xx_hal_conf.h.
| #define PHY_SPEED_STATUS ((uint16_t)0x0002) |
PHY Speed mask
Definition at line 254 of file stm32f1xx_hal_conf.h.
| #define PHY_SR ((uint16_t)0x10) |
PHY status register Offset
Definition at line 249 of file stm32f1xx_hal_conf.h.
| #define PHY_WRITE_TO ((uint32_t)0x0000FFFF) |
?
Definition at line 225 of file stm32f1xx_hal_conf.h.
| #define PREFETCH_ENABLE 1 |
Enable flash prefetch.
Definition at line 179 of file stm32f1xx_hal_conf.h.
| #define TICK_INT_PRIORITY ((uint32_t)0x000F) |
tick interrupt priority
Definition at line 175 of file stm32f1xx_hal_conf.h.
| #define USE_RTOS 0 |
Do not use the stm32 HAL's RTOS features. (btw: why?)
Definition at line 177 of file stm32f1xx_hal_conf.h.
| #define VDD_VALUE ((uint32_t)3300) |
This is the HAL system configuration section.
Value of VDD in mv
Definition at line 174 of file stm32f1xx_hal_conf.h.
|
inlinestatic |
Definition at line 409 of file stm32f1xx_hal_conf.h.