I don't know
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx_hal_conf.h@625:6502bcae5f2c, 2015-09-25 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Sep 25 12:00:11 2015 +0100
- Revision:
- 625:6502bcae5f2c
Synchronized with git revision 724c07935c2d3e3d8a1b3e7274b29ba5dcbed7ad
Full URL: https://github.com/mbedmicro/mbed/commit/724c07935c2d3e3d8a1b3e7274b29ba5dcbed7ad/
Changes contains only "Copyright year information" and "KR styling". Safe to merge.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 625:6502bcae5f2c | 1 | /** |
mbed_official | 625:6502bcae5f2c | 2 | ****************************************************************************** |
mbed_official | 625:6502bcae5f2c | 3 | * @file stm32f4xx_hal_conf.h |
mbed_official | 625:6502bcae5f2c | 4 | * @author MCD Application Team |
mbed_official | 625:6502bcae5f2c | 5 | * @version V1.1.0 |
mbed_official | 625:6502bcae5f2c | 6 | * @date 26-December-2014 |
mbed_official | 625:6502bcae5f2c | 7 | * @brief HAL configuration file |
mbed_official | 625:6502bcae5f2c | 8 | ****************************************************************************** |
mbed_official | 625:6502bcae5f2c | 9 | * @attention |
mbed_official | 625:6502bcae5f2c | 10 | * |
mbed_official | 625:6502bcae5f2c | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
mbed_official | 625:6502bcae5f2c | 12 | * |
mbed_official | 625:6502bcae5f2c | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 625:6502bcae5f2c | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 625:6502bcae5f2c | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 625:6502bcae5f2c | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 625:6502bcae5f2c | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 625:6502bcae5f2c | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 625:6502bcae5f2c | 19 | * and/or other materials provided with the distribution. |
mbed_official | 625:6502bcae5f2c | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 625:6502bcae5f2c | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 625:6502bcae5f2c | 22 | * without specific prior written permission. |
mbed_official | 625:6502bcae5f2c | 23 | * |
mbed_official | 625:6502bcae5f2c | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 625:6502bcae5f2c | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 625:6502bcae5f2c | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 625:6502bcae5f2c | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 625:6502bcae5f2c | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 625:6502bcae5f2c | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 625:6502bcae5f2c | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 625:6502bcae5f2c | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 625:6502bcae5f2c | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 625:6502bcae5f2c | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 625:6502bcae5f2c | 34 | * |
mbed_official | 625:6502bcae5f2c | 35 | ****************************************************************************** |
mbed_official | 625:6502bcae5f2c | 36 | */ |
mbed_official | 625:6502bcae5f2c | 37 | |
mbed_official | 625:6502bcae5f2c | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 625:6502bcae5f2c | 39 | #ifndef __STM32F4xx_HAL_CONF_H |
mbed_official | 625:6502bcae5f2c | 40 | #define __STM32F4xx_HAL_CONF_H |
mbed_official | 625:6502bcae5f2c | 41 | |
mbed_official | 625:6502bcae5f2c | 42 | #ifdef __cplusplus |
mbed_official | 625:6502bcae5f2c | 43 | extern "C" { |
mbed_official | 625:6502bcae5f2c | 44 | #endif |
mbed_official | 625:6502bcae5f2c | 45 | |
mbed_official | 625:6502bcae5f2c | 46 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 625:6502bcae5f2c | 47 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 625:6502bcae5f2c | 48 | |
mbed_official | 625:6502bcae5f2c | 49 | /* ########################## Module Selection ############################## */ |
mbed_official | 625:6502bcae5f2c | 50 | /** |
mbed_official | 625:6502bcae5f2c | 51 | * @brief This is the list of modules to be used in the HAL driver |
mbed_official | 625:6502bcae5f2c | 52 | */ |
mbed_official | 625:6502bcae5f2c | 53 | #define HAL_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 54 | #define HAL_ADC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 55 | #define HAL_CAN_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 56 | #define HAL_CRC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 57 | #define HAL_CRYP_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 58 | #define HAL_DAC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 59 | #define HAL_DCMI_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 60 | #define HAL_DMA_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 61 | /* #define HAL_DMA2D_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 62 | #define HAL_ETH_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 63 | #define HAL_FLASH_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 64 | #define HAL_NAND_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 65 | #define HAL_NOR_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 66 | #define HAL_PCCARD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 67 | #define HAL_SRAM_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 68 | /* #define HAL_SDRAM_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 69 | #define HAL_HASH_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 70 | #define HAL_GPIO_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 71 | #define HAL_I2C_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 72 | #define HAL_I2S_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 73 | #define HAL_IWDG_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 74 | #define HAL_LTDC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 75 | #define HAL_PWR_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 76 | #define HAL_RCC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 77 | #define HAL_RNG_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 78 | #define HAL_RTC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 79 | /* #define HAL_SAI_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 80 | #define HAL_SD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 81 | #define HAL_SPI_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 82 | #define HAL_TIM_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 83 | #define HAL_UART_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 84 | #define HAL_USART_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 85 | #define HAL_IRDA_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 86 | #define HAL_SMARTCARD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 87 | #define HAL_WWDG_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 88 | #define HAL_CORTEX_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 89 | #define HAL_PCD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 90 | #define HAL_HCD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 91 | |
mbed_official | 625:6502bcae5f2c | 92 | |
mbed_official | 625:6502bcae5f2c | 93 | /* ########################## HSE/HSI Values adaptation ##################### */ |
mbed_official | 625:6502bcae5f2c | 94 | /** |
mbed_official | 625:6502bcae5f2c | 95 | * @brief Adjust the value of External High Speed oscillator (HSE) used in your application. |
mbed_official | 625:6502bcae5f2c | 96 | * This value is used by the RCC HAL module to compute the system frequency |
mbed_official | 625:6502bcae5f2c | 97 | * (when HSE is used as system clock source, directly or through the PLL). |
mbed_official | 625:6502bcae5f2c | 98 | */ |
mbed_official | 625:6502bcae5f2c | 99 | #if !defined (HSE_VALUE) |
mbed_official | 625:6502bcae5f2c | 100 | #define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */ |
mbed_official | 625:6502bcae5f2c | 101 | #endif /* HSE_VALUE */ |
mbed_official | 625:6502bcae5f2c | 102 | |
mbed_official | 625:6502bcae5f2c | 103 | #if !defined (HSE_STARTUP_TIMEOUT) |
mbed_official | 625:6502bcae5f2c | 104 | #define HSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for HSE start up, in ms */ |
mbed_official | 625:6502bcae5f2c | 105 | #endif /* HSE_STARTUP_TIMEOUT */ |
mbed_official | 625:6502bcae5f2c | 106 | |
mbed_official | 625:6502bcae5f2c | 107 | /** |
mbed_official | 625:6502bcae5f2c | 108 | * @brief Internal High Speed oscillator (HSI) value. |
mbed_official | 625:6502bcae5f2c | 109 | * This value is used by the RCC HAL module to compute the system frequency |
mbed_official | 625:6502bcae5f2c | 110 | * (when HSI is used as system clock source, directly or through the PLL). |
mbed_official | 625:6502bcae5f2c | 111 | */ |
mbed_official | 625:6502bcae5f2c | 112 | #if !defined (HSI_VALUE) |
mbed_official | 625:6502bcae5f2c | 113 | #define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/ |
mbed_official | 625:6502bcae5f2c | 114 | #endif /* HSI_VALUE */ |
mbed_official | 625:6502bcae5f2c | 115 | |
mbed_official | 625:6502bcae5f2c | 116 | /** |
mbed_official | 625:6502bcae5f2c | 117 | * @brief Internal Low Speed oscillator (LSI) value. |
mbed_official | 625:6502bcae5f2c | 118 | */ |
mbed_official | 625:6502bcae5f2c | 119 | #if !defined (LSI_VALUE) |
mbed_official | 625:6502bcae5f2c | 120 | #define LSI_VALUE ((uint32_t)32000) |
mbed_official | 625:6502bcae5f2c | 121 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz |
mbed_official | 625:6502bcae5f2c | 122 | The real value may vary depending on the variations |
mbed_official | 625:6502bcae5f2c | 123 | in voltage and temperature. */ |
mbed_official | 625:6502bcae5f2c | 124 | /** |
mbed_official | 625:6502bcae5f2c | 125 | * @brief External Low Speed oscillator (LSE) value. |
mbed_official | 625:6502bcae5f2c | 126 | */ |
mbed_official | 625:6502bcae5f2c | 127 | #if !defined (LSE_VALUE) |
mbed_official | 625:6502bcae5f2c | 128 | #define LSE_VALUE ((uint32_t)32768) /*!< Value of the External Low Speed oscillator in Hz */ |
mbed_official | 625:6502bcae5f2c | 129 | #endif /* LSE_VALUE */ |
mbed_official | 625:6502bcae5f2c | 130 | |
mbed_official | 625:6502bcae5f2c | 131 | /** |
mbed_official | 625:6502bcae5f2c | 132 | * @brief External clock source for I2S peripheral |
mbed_official | 625:6502bcae5f2c | 133 | * This value is used by the I2S HAL module to compute the I2S clock source |
mbed_official | 625:6502bcae5f2c | 134 | * frequency, this source is inserted directly through I2S_CKIN pad. |
mbed_official | 625:6502bcae5f2c | 135 | */ |
mbed_official | 625:6502bcae5f2c | 136 | #if !defined (EXTERNAL_CLOCK_VALUE) |
mbed_official | 625:6502bcae5f2c | 137 | #define EXTERNAL_CLOCK_VALUE ((uint32_t)12288000) /*!< Value of the Internal oscillator in Hz*/ |
mbed_official | 625:6502bcae5f2c | 138 | #endif /* EXTERNAL_CLOCK_VALUE */ |
mbed_official | 625:6502bcae5f2c | 139 | |
mbed_official | 625:6502bcae5f2c | 140 | /* Tip: To avoid modifying this file each time you need to use different HSE, |
mbed_official | 625:6502bcae5f2c | 141 | === you can define the HSE value in your toolchain compiler preprocessor. */ |
mbed_official | 625:6502bcae5f2c | 142 | |
mbed_official | 625:6502bcae5f2c | 143 | /* ########################### System Configuration ######################### */ |
mbed_official | 625:6502bcae5f2c | 144 | /** |
mbed_official | 625:6502bcae5f2c | 145 | * @brief This is the HAL system configuration section |
mbed_official | 625:6502bcae5f2c | 146 | */ |
mbed_official | 625:6502bcae5f2c | 147 | #define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */ |
mbed_official | 625:6502bcae5f2c | 148 | #define TICK_INT_PRIORITY ((uint32_t)0x0F) /*!< tick interrupt priority */ |
mbed_official | 625:6502bcae5f2c | 149 | #define USE_RTOS 0 |
mbed_official | 625:6502bcae5f2c | 150 | #define PREFETCH_ENABLE 1 |
mbed_official | 625:6502bcae5f2c | 151 | #define INSTRUCTION_CACHE_ENABLE 1 |
mbed_official | 625:6502bcae5f2c | 152 | #define DATA_CACHE_ENABLE 1 |
mbed_official | 625:6502bcae5f2c | 153 | |
mbed_official | 625:6502bcae5f2c | 154 | /* ########################## Assert Selection ############################## */ |
mbed_official | 625:6502bcae5f2c | 155 | /** |
mbed_official | 625:6502bcae5f2c | 156 | * @brief Uncomment the line below to expanse the "assert_param" macro in the |
mbed_official | 625:6502bcae5f2c | 157 | * HAL drivers code |
mbed_official | 625:6502bcae5f2c | 158 | */ |
mbed_official | 625:6502bcae5f2c | 159 | /* #define USE_FULL_ASSERT 1 */ |
mbed_official | 625:6502bcae5f2c | 160 | |
mbed_official | 625:6502bcae5f2c | 161 | /* ################## Ethernet peripheral configuration ##################### */ |
mbed_official | 625:6502bcae5f2c | 162 | |
mbed_official | 625:6502bcae5f2c | 163 | /* Section 1 : Ethernet peripheral configuration */ |
mbed_official | 625:6502bcae5f2c | 164 | |
mbed_official | 625:6502bcae5f2c | 165 | /* MAC ADDRESS: MAC_ADDR0:MAC_ADDR1:MAC_ADDR2:MAC_ADDR3:MAC_ADDR4:MAC_ADDR5 */ |
mbed_official | 625:6502bcae5f2c | 166 | #define MAC_ADDR0 2 |
mbed_official | 625:6502bcae5f2c | 167 | #define MAC_ADDR1 0 |
mbed_official | 625:6502bcae5f2c | 168 | #define MAC_ADDR2 0 |
mbed_official | 625:6502bcae5f2c | 169 | #define MAC_ADDR3 0 |
mbed_official | 625:6502bcae5f2c | 170 | #define MAC_ADDR4 0 |
mbed_official | 625:6502bcae5f2c | 171 | #define MAC_ADDR5 0 |
mbed_official | 625:6502bcae5f2c | 172 | |
mbed_official | 625:6502bcae5f2c | 173 | /* Definition of the Ethernet driver buffers size and count */ |
mbed_official | 625:6502bcae5f2c | 174 | #define ETH_RX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for receive */ |
mbed_official | 625:6502bcae5f2c | 175 | #define ETH_TX_BUF_SIZE ETH_MAX_PACKET_SIZE /* buffer size for transmit */ |
mbed_official | 625:6502bcae5f2c | 176 | #define ETH_RXBUFNB ((uint32_t)4) /* 4 Rx buffers of size ETH_RX_BUF_SIZE */ |
mbed_official | 625:6502bcae5f2c | 177 | #define ETH_TXBUFNB ((uint32_t)4) /* 4 Tx buffers of size ETH_TX_BUF_SIZE */ |
mbed_official | 625:6502bcae5f2c | 178 | |
mbed_official | 625:6502bcae5f2c | 179 | /* Section 2: PHY configuration section */ |
mbed_official | 625:6502bcae5f2c | 180 | |
mbed_official | 625:6502bcae5f2c | 181 | /* DP83848 PHY Address*/ |
mbed_official | 625:6502bcae5f2c | 182 | #define DP83848_PHY_ADDRESS 0x01 |
mbed_official | 625:6502bcae5f2c | 183 | /* PHY Reset delay these values are based on a 1 ms Systick interrupt*/ |
mbed_official | 625:6502bcae5f2c | 184 | #define PHY_RESET_DELAY ((uint32_t)0x000000FF) |
mbed_official | 625:6502bcae5f2c | 185 | /* PHY Configuration delay */ |
mbed_official | 625:6502bcae5f2c | 186 | #define PHY_CONFIG_DELAY ((uint32_t)0x00000FFF) |
mbed_official | 625:6502bcae5f2c | 187 | |
mbed_official | 625:6502bcae5f2c | 188 | #define PHY_READ_TO ((uint32_t)0x0000FFFF) |
mbed_official | 625:6502bcae5f2c | 189 | #define PHY_WRITE_TO ((uint32_t)0x0000FFFF) |
mbed_official | 625:6502bcae5f2c | 190 | |
mbed_official | 625:6502bcae5f2c | 191 | /* Section 3: Common PHY Registers */ |
mbed_official | 625:6502bcae5f2c | 192 | |
mbed_official | 625:6502bcae5f2c | 193 | #define PHY_BCR ((uint16_t)0x00) /*!< Transceiver Basic Control Register */ |
mbed_official | 625:6502bcae5f2c | 194 | #define PHY_BSR ((uint16_t)0x01) /*!< Transceiver Basic Status Register */ |
mbed_official | 625:6502bcae5f2c | 195 | |
mbed_official | 625:6502bcae5f2c | 196 | #define PHY_RESET ((uint16_t)0x8000) /*!< PHY Reset */ |
mbed_official | 625:6502bcae5f2c | 197 | #define PHY_LOOPBACK ((uint16_t)0x4000) /*!< Select loop-back mode */ |
mbed_official | 625:6502bcae5f2c | 198 | #define PHY_FULLDUPLEX_100M ((uint16_t)0x2100) /*!< Set the full-duplex mode at 100 Mb/s */ |
mbed_official | 625:6502bcae5f2c | 199 | #define PHY_HALFDUPLEX_100M ((uint16_t)0x2000) /*!< Set the half-duplex mode at 100 Mb/s */ |
mbed_official | 625:6502bcae5f2c | 200 | #define PHY_FULLDUPLEX_10M ((uint16_t)0x0100) /*!< Set the full-duplex mode at 10 Mb/s */ |
mbed_official | 625:6502bcae5f2c | 201 | #define PHY_HALFDUPLEX_10M ((uint16_t)0x0000) /*!< Set the half-duplex mode at 10 Mb/s */ |
mbed_official | 625:6502bcae5f2c | 202 | #define PHY_AUTONEGOTIATION ((uint16_t)0x1000) /*!< Enable auto-negotiation function */ |
mbed_official | 625:6502bcae5f2c | 203 | #define PHY_RESTART_AUTONEGOTIATION ((uint16_t)0x0200) /*!< Restart auto-negotiation function */ |
mbed_official | 625:6502bcae5f2c | 204 | #define PHY_POWERDOWN ((uint16_t)0x0800) /*!< Select the power down mode */ |
mbed_official | 625:6502bcae5f2c | 205 | #define PHY_ISOLATE ((uint16_t)0x0400) /*!< Isolate PHY from MII */ |
mbed_official | 625:6502bcae5f2c | 206 | |
mbed_official | 625:6502bcae5f2c | 207 | #define PHY_AUTONEGO_COMPLETE ((uint16_t)0x0020) /*!< Auto-Negotiation process completed */ |
mbed_official | 625:6502bcae5f2c | 208 | #define PHY_LINKED_STATUS ((uint16_t)0x0004) /*!< Valid link established */ |
mbed_official | 625:6502bcae5f2c | 209 | #define PHY_JABBER_DETECTION ((uint16_t)0x0002) /*!< Jabber condition detected */ |
mbed_official | 625:6502bcae5f2c | 210 | |
mbed_official | 625:6502bcae5f2c | 211 | /* Section 4: Extended PHY Registers */ |
mbed_official | 625:6502bcae5f2c | 212 | |
mbed_official | 625:6502bcae5f2c | 213 | #define PHY_SR ((uint16_t)0x10) /*!< PHY status register Offset */ |
mbed_official | 625:6502bcae5f2c | 214 | #define PHY_MICR ((uint16_t)0x11) /*!< MII Interrupt Control Register */ |
mbed_official | 625:6502bcae5f2c | 215 | #define PHY_MISR ((uint16_t)0x12) /*!< MII Interrupt Status and Misc. Control Register */ |
mbed_official | 625:6502bcae5f2c | 216 | |
mbed_official | 625:6502bcae5f2c | 217 | #define PHY_LINK_STATUS ((uint16_t)0x0001) /*!< PHY Link mask */ |
mbed_official | 625:6502bcae5f2c | 218 | #define PHY_SPEED_STATUS ((uint16_t)0x0002) /*!< PHY Speed mask */ |
mbed_official | 625:6502bcae5f2c | 219 | #define PHY_DUPLEX_STATUS ((uint16_t)0x0004) /*!< PHY Duplex mask */ |
mbed_official | 625:6502bcae5f2c | 220 | |
mbed_official | 625:6502bcae5f2c | 221 | #define PHY_MICR_INT_EN ((uint16_t)0x0002) /*!< PHY Enable interrupts */ |
mbed_official | 625:6502bcae5f2c | 222 | #define PHY_MICR_INT_OE ((uint16_t)0x0001) /*!< PHY Enable output interrupt events */ |
mbed_official | 625:6502bcae5f2c | 223 | |
mbed_official | 625:6502bcae5f2c | 224 | #define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020) /*!< Enable Interrupt on change of link status */ |
mbed_official | 625:6502bcae5f2c | 225 | #define PHY_LINK_INTERRUPT ((uint16_t)0x2000) /*!< PHY link status interrupt mask */ |
mbed_official | 625:6502bcae5f2c | 226 | |
mbed_official | 625:6502bcae5f2c | 227 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 625:6502bcae5f2c | 228 | /** |
mbed_official | 625:6502bcae5f2c | 229 | * @brief Include module's header file |
mbed_official | 625:6502bcae5f2c | 230 | */ |
mbed_official | 625:6502bcae5f2c | 231 | |
mbed_official | 625:6502bcae5f2c | 232 | #ifdef HAL_RCC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 233 | #include "stm32f4xx_hal_rcc.h" |
mbed_official | 625:6502bcae5f2c | 234 | #endif /* HAL_RCC_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 235 | |
mbed_official | 625:6502bcae5f2c | 236 | #ifdef HAL_GPIO_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 237 | #include "stm32f4xx_hal_gpio.h" |
mbed_official | 625:6502bcae5f2c | 238 | #endif /* HAL_GPIO_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 239 | |
mbed_official | 625:6502bcae5f2c | 240 | #ifdef HAL_DMA_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 241 | #include "stm32f4xx_hal_dma.h" |
mbed_official | 625:6502bcae5f2c | 242 | #endif /* HAL_DMA_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 243 | |
mbed_official | 625:6502bcae5f2c | 244 | #ifdef HAL_CORTEX_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 245 | #include "stm32f4xx_hal_cortex.h" |
mbed_official | 625:6502bcae5f2c | 246 | #endif /* HAL_CORTEX_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 247 | |
mbed_official | 625:6502bcae5f2c | 248 | #ifdef HAL_ADC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 249 | #include "stm32f4xx_hal_adc.h" |
mbed_official | 625:6502bcae5f2c | 250 | #endif /* HAL_ADC_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 251 | |
mbed_official | 625:6502bcae5f2c | 252 | #ifdef HAL_CAN_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 253 | #include "stm32f4xx_hal_can.h" |
mbed_official | 625:6502bcae5f2c | 254 | #endif /* HAL_CAN_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 255 | |
mbed_official | 625:6502bcae5f2c | 256 | #ifdef HAL_CRC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 257 | #include "stm32f4xx_hal_crc.h" |
mbed_official | 625:6502bcae5f2c | 258 | #endif /* HAL_CRC_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 259 | |
mbed_official | 625:6502bcae5f2c | 260 | #ifdef HAL_CRYP_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 261 | #include "stm32f4xx_hal_cryp.h" |
mbed_official | 625:6502bcae5f2c | 262 | #endif /* HAL_CRYP_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 263 | |
mbed_official | 625:6502bcae5f2c | 264 | #ifdef HAL_DMA2D_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 265 | #include "stm32f4xx_hal_dma2d.h" |
mbed_official | 625:6502bcae5f2c | 266 | #endif /* HAL_DMA2D_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 267 | |
mbed_official | 625:6502bcae5f2c | 268 | #ifdef HAL_DAC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 269 | #include "stm32f4xx_hal_dac.h" |
mbed_official | 625:6502bcae5f2c | 270 | #endif /* HAL_DAC_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 271 | |
mbed_official | 625:6502bcae5f2c | 272 | #ifdef HAL_DCMI_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 273 | #include "stm32f4xx_hal_dcmi.h" |
mbed_official | 625:6502bcae5f2c | 274 | #endif /* HAL_DCMI_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 275 | |
mbed_official | 625:6502bcae5f2c | 276 | #ifdef HAL_ETH_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 277 | #include "stm32f4xx_hal_eth.h" |
mbed_official | 625:6502bcae5f2c | 278 | #endif /* HAL_ETH_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 279 | |
mbed_official | 625:6502bcae5f2c | 280 | #ifdef HAL_FLASH_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 281 | #include "stm32f4xx_hal_flash.h" |
mbed_official | 625:6502bcae5f2c | 282 | #endif /* HAL_FLASH_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 283 | |
mbed_official | 625:6502bcae5f2c | 284 | #ifdef HAL_SRAM_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 285 | #include "stm32f4xx_hal_sram.h" |
mbed_official | 625:6502bcae5f2c | 286 | #endif /* HAL_SRAM_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 287 | |
mbed_official | 625:6502bcae5f2c | 288 | #ifdef HAL_NOR_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 289 | #include "stm32f4xx_hal_nor.h" |
mbed_official | 625:6502bcae5f2c | 290 | #endif /* HAL_NOR_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 291 | |
mbed_official | 625:6502bcae5f2c | 292 | #ifdef HAL_NAND_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 293 | #include "stm32f4xx_hal_nand.h" |
mbed_official | 625:6502bcae5f2c | 294 | #endif /* HAL_NAND_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 295 | |
mbed_official | 625:6502bcae5f2c | 296 | #ifdef HAL_PCCARD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 297 | #include "stm32f4xx_hal_pccard.h" |
mbed_official | 625:6502bcae5f2c | 298 | #endif /* HAL_PCCARD_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 299 | |
mbed_official | 625:6502bcae5f2c | 300 | #ifdef HAL_SDRAM_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 301 | #include "stm32f4xx_hal_sdram.h" |
mbed_official | 625:6502bcae5f2c | 302 | #endif /* HAL_SDRAM_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 303 | |
mbed_official | 625:6502bcae5f2c | 304 | #ifdef HAL_HASH_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 305 | #include "stm32f4xx_hal_hash.h" |
mbed_official | 625:6502bcae5f2c | 306 | #endif /* HAL_HASH_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 307 | |
mbed_official | 625:6502bcae5f2c | 308 | #ifdef HAL_I2C_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 309 | #include "stm32f4xx_hal_i2c.h" |
mbed_official | 625:6502bcae5f2c | 310 | #endif /* HAL_I2C_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 311 | |
mbed_official | 625:6502bcae5f2c | 312 | #ifdef HAL_I2S_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 313 | #include "stm32f4xx_hal_i2s.h" |
mbed_official | 625:6502bcae5f2c | 314 | #endif /* HAL_I2S_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 315 | |
mbed_official | 625:6502bcae5f2c | 316 | #ifdef HAL_IWDG_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 317 | #include "stm32f4xx_hal_iwdg.h" |
mbed_official | 625:6502bcae5f2c | 318 | #endif /* HAL_IWDG_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 319 | |
mbed_official | 625:6502bcae5f2c | 320 | #ifdef HAL_LTDC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 321 | #include "stm32f4xx_hal_ltdc.h" |
mbed_official | 625:6502bcae5f2c | 322 | #endif /* HAL_LTDC_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 323 | |
mbed_official | 625:6502bcae5f2c | 324 | #ifdef HAL_PWR_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 325 | #include "stm32f4xx_hal_pwr.h" |
mbed_official | 625:6502bcae5f2c | 326 | #endif /* HAL_PWR_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 327 | |
mbed_official | 625:6502bcae5f2c | 328 | #ifdef HAL_RNG_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 329 | #include "stm32f4xx_hal_rng.h" |
mbed_official | 625:6502bcae5f2c | 330 | #endif /* HAL_RNG_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 331 | |
mbed_official | 625:6502bcae5f2c | 332 | #ifdef HAL_RTC_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 333 | #include "stm32f4xx_hal_rtc.h" |
mbed_official | 625:6502bcae5f2c | 334 | #endif /* HAL_RTC_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 335 | |
mbed_official | 625:6502bcae5f2c | 336 | #ifdef HAL_SAI_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 337 | #include "stm32f4xx_hal_sai.h" |
mbed_official | 625:6502bcae5f2c | 338 | #endif /* HAL_SAI_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 339 | |
mbed_official | 625:6502bcae5f2c | 340 | #ifdef HAL_SD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 341 | #include "stm32f4xx_hal_sd.h" |
mbed_official | 625:6502bcae5f2c | 342 | #endif /* HAL_SD_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 343 | |
mbed_official | 625:6502bcae5f2c | 344 | #ifdef HAL_SPI_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 345 | #include "stm32f4xx_hal_spi.h" |
mbed_official | 625:6502bcae5f2c | 346 | #endif /* HAL_SPI_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 347 | |
mbed_official | 625:6502bcae5f2c | 348 | #ifdef HAL_TIM_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 349 | #include "stm32f4xx_hal_tim.h" |
mbed_official | 625:6502bcae5f2c | 350 | #endif /* HAL_TIM_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 351 | |
mbed_official | 625:6502bcae5f2c | 352 | #ifdef HAL_UART_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 353 | #include "stm32f4xx_hal_uart.h" |
mbed_official | 625:6502bcae5f2c | 354 | #endif /* HAL_UART_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 355 | |
mbed_official | 625:6502bcae5f2c | 356 | #ifdef HAL_USART_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 357 | #include "stm32f4xx_hal_usart.h" |
mbed_official | 625:6502bcae5f2c | 358 | #endif /* HAL_USART_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 359 | |
mbed_official | 625:6502bcae5f2c | 360 | #ifdef HAL_IRDA_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 361 | #include "stm32f4xx_hal_irda.h" |
mbed_official | 625:6502bcae5f2c | 362 | #endif /* HAL_IRDA_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 363 | |
mbed_official | 625:6502bcae5f2c | 364 | #ifdef HAL_SMARTCARD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 365 | #include "stm32f4xx_hal_smartcard.h" |
mbed_official | 625:6502bcae5f2c | 366 | #endif /* HAL_SMARTCARD_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 367 | |
mbed_official | 625:6502bcae5f2c | 368 | #ifdef HAL_WWDG_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 369 | #include "stm32f4xx_hal_wwdg.h" |
mbed_official | 625:6502bcae5f2c | 370 | #endif /* HAL_WWDG_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 371 | |
mbed_official | 625:6502bcae5f2c | 372 | #ifdef HAL_PCD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 373 | #include "stm32f4xx_hal_pcd.h" |
mbed_official | 625:6502bcae5f2c | 374 | #endif /* HAL_PCD_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 375 | |
mbed_official | 625:6502bcae5f2c | 376 | #ifdef HAL_HCD_MODULE_ENABLED |
mbed_official | 625:6502bcae5f2c | 377 | #include "stm32f4xx_hal_hcd.h" |
mbed_official | 625:6502bcae5f2c | 378 | #endif /* HAL_HCD_MODULE_ENABLED */ |
mbed_official | 625:6502bcae5f2c | 379 | |
mbed_official | 625:6502bcae5f2c | 380 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 625:6502bcae5f2c | 381 | #ifdef USE_FULL_ASSERT |
mbed_official | 625:6502bcae5f2c | 382 | /** |
mbed_official | 625:6502bcae5f2c | 383 | * @brief The assert_param macro is used for function's parameters check. |
mbed_official | 625:6502bcae5f2c | 384 | * @param expr: If expr is false, it calls assert_failed function |
mbed_official | 625:6502bcae5f2c | 385 | * which reports the name of the source file and the source |
mbed_official | 625:6502bcae5f2c | 386 | * line number of the call that failed. |
mbed_official | 625:6502bcae5f2c | 387 | * If expr is true, it returns no value. |
mbed_official | 625:6502bcae5f2c | 388 | * @retval None |
mbed_official | 625:6502bcae5f2c | 389 | */ |
mbed_official | 625:6502bcae5f2c | 390 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
mbed_official | 625:6502bcae5f2c | 391 | /* Exported functions ------------------------------------------------------- */ |
mbed_official | 625:6502bcae5f2c | 392 | void assert_failed(uint8_t* file, uint32_t line); |
mbed_official | 625:6502bcae5f2c | 393 | #else |
mbed_official | 625:6502bcae5f2c | 394 | #define assert_param(expr) ((void)0) |
mbed_official | 625:6502bcae5f2c | 395 | #endif /* USE_FULL_ASSERT */ |
mbed_official | 625:6502bcae5f2c | 396 | |
mbed_official | 625:6502bcae5f2c | 397 | |
mbed_official | 625:6502bcae5f2c | 398 | #ifdef __cplusplus |
mbed_official | 625:6502bcae5f2c | 399 | } |
mbed_official | 625:6502bcae5f2c | 400 | #endif |
mbed_official | 625:6502bcae5f2c | 401 | |
mbed_official | 625:6502bcae5f2c | 402 | #endif /* __STM32F4xx_HAL_CONF_H */ |
mbed_official | 625:6502bcae5f2c | 403 | |
mbed_official | 625:6502bcae5f2c | 404 | |
mbed_official | 625:6502bcae5f2c | 405 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |