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