Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
110:165afa46840b
.

Who changed what in which revision?

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