mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Thu Aug 20 10:45:13 2015 +0100
Revision:
613:bc40b8d2aec4
Parent:
553:063b9f2f393c
Synchronized with git revision 92ca8c7b60a283b6bb60eb65b183dac1599f0ade

Full URL: https://github.com/mbedmicro/mbed/commit/92ca8c7b60a283b6bb60eb65b183dac1599f0ade/

Nordic: update application start address in GCC linker script

Who changed what in which revision?

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