Example for Bluetooth low energy interface

Dependencies:   mbed HC_SR04_Ultrasonic_Library

Committer:
julientiron
Date:
Tue May 19 20:42:25 2015 +0000
Revision:
3:829f081fde15
Parent:
0:3d641e170a74
hihi;

Who changed what in which revision?

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