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