Modified version of the mbed library for use with the Nucleo boards.

Dependents:   EEPROMWrite Full-Project

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Mon Sep 28 10:45:10 2015 +0100
Revision:
630:825f75ca301e
Parent:
441:d2c15dda23c1
Synchronized with git revision 54fbe4144faf309c37205a5d39fa665daa919f10

Full URL: https://github.com/mbedmicro/mbed/commit/54fbe4144faf309c37205a5d39fa665daa919f10/

NUCLEO_F031K6 : Add new target

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 340:28d1f895c6fe 1 /**
mbed_official 340:28d1f895c6fe 2 ******************************************************************************
mbed_official 630:825f75ca301e 3 * @file stm32f0xx_hal_conf.h
mbed_official 340:28d1f895c6fe 4 * @author MCD Application Team
mbed_official 630:825f75ca301e 5 * @version V1.3.0
mbed_official 630:825f75ca301e 6 * @date 26-June-2015
mbed_official 340:28d1f895c6fe 7 * @brief HAL configuration file.
mbed_official 340:28d1f895c6fe 8 ******************************************************************************
mbed_official 340:28d1f895c6fe 9 * @attention
mbed_official 340:28d1f895c6fe 10 *
mbed_official 630:825f75ca301e 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 340:28d1f895c6fe 12 *
mbed_official 340:28d1f895c6fe 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 340:28d1f895c6fe 14 * are permitted provided that the following conditions are met:
mbed_official 340:28d1f895c6fe 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 340:28d1f895c6fe 16 * this list of conditions and the following disclaimer.
mbed_official 340:28d1f895c6fe 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 340:28d1f895c6fe 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 340:28d1f895c6fe 19 * and/or other materials provided with the distribution.
mbed_official 340:28d1f895c6fe 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 340:28d1f895c6fe 21 * may be used to endorse or promote products derived from this software
mbed_official 340:28d1f895c6fe 22 * without specific prior written permission.
mbed_official 340:28d1f895c6fe 23 *
mbed_official 340:28d1f895c6fe 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 340:28d1f895c6fe 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 340:28d1f895c6fe 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 340:28d1f895c6fe 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 340:28d1f895c6fe 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 340:28d1f895c6fe 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 340:28d1f895c6fe 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 340:28d1f895c6fe 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 340:28d1f895c6fe 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 340:28d1f895c6fe 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 340:28d1f895c6fe 34 *
mbed_official 340:28d1f895c6fe 35 ******************************************************************************
mbed_official 340:28d1f895c6fe 36 */
mbed_official 340:28d1f895c6fe 37
mbed_official 340:28d1f895c6fe 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 340:28d1f895c6fe 39 #ifndef __STM32F0xx_HAL_CONF_H
mbed_official 340:28d1f895c6fe 40 #define __STM32F0xx_HAL_CONF_H
mbed_official 340:28d1f895c6fe 41
mbed_official 340:28d1f895c6fe 42 #ifdef __cplusplus
mbed_official 340:28d1f895c6fe 43 extern "C" {
mbed_official 340:28d1f895c6fe 44 #endif
mbed_official 340:28d1f895c6fe 45
mbed_official 340:28d1f895c6fe 46 /* Exported types ------------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 47 /* Exported constants --------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 48
mbed_official 340:28d1f895c6fe 49 /* ########################## Module Selection ############################## */
mbed_official 340:28d1f895c6fe 50 /**
mbed_official 340:28d1f895c6fe 51 * @brief This is the list of modules to be used in the HAL driver
mbed_official 340:28d1f895c6fe 52 */
mbed_official 340:28d1f895c6fe 53 #define HAL_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 54 #define HAL_ADC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 55 #define HAL_CAN_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 56 #define HAL_CEC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 57 #define HAL_COMP_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 58 #define HAL_CORTEX_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 59 #define HAL_CRC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 60 #define HAL_DAC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 61 #define HAL_DMA_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 62 #define HAL_FLASH_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 63 #define HAL_GPIO_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 64 #define HAL_I2C_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 65 #define HAL_I2S_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 66 #define HAL_IRDA_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 67 #define HAL_IWDG_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 68 #define HAL_PCD_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 69 #define HAL_PWR_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 70 #define HAL_RCC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 71 #define HAL_RTC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 72 #define HAL_SMARTCARD_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 73 #define HAL_SMBUS_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 74 #define HAL_SPI_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 75 #define HAL_TIM_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 76 #define HAL_TSC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 77 #define HAL_UART_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 78 #define HAL_USART_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 79 #define HAL_WWDG_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 80
mbed_official 340:28d1f895c6fe 81 /* ######################### Oscillator Values adaptation ################### */
mbed_official 340:28d1f895c6fe 82 /**
mbed_official 340:28d1f895c6fe 83 * @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
mbed_official 340:28d1f895c6fe 84 * This value is used by the RCC HAL module to compute the system frequency
mbed_official 340:28d1f895c6fe 85 * (when HSE is used as system clock source, directly or through the PLL).
mbed_official 340:28d1f895c6fe 86 */
mbed_official 340:28d1f895c6fe 87 #if !defined (HSE_VALUE)
mbed_official 340:28d1f895c6fe 88 #define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
mbed_official 340:28d1f895c6fe 89 #endif /* HSE_VALUE */
mbed_official 340:28d1f895c6fe 90
mbed_official 340:28d1f895c6fe 91 /**
mbed_official 340:28d1f895c6fe 92 * @brief In the following line adjust the External High Speed oscillator (HSE) Startup
mbed_official 340:28d1f895c6fe 93 * Timeout value
mbed_official 340:28d1f895c6fe 94 */
mbed_official 340:28d1f895c6fe 95 #if !defined (HSE_STARTUP_TIMEOUT)
mbed_official 340:28d1f895c6fe 96 #define HSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for HSE start up, in ms */
mbed_official 340:28d1f895c6fe 97 #endif /* HSE_STARTUP_TIMEOUT */
mbed_official 340:28d1f895c6fe 98
mbed_official 340:28d1f895c6fe 99 /**
mbed_official 340:28d1f895c6fe 100 * @brief Internal High Speed oscillator (HSI) value.
mbed_official 340:28d1f895c6fe 101 * This value is used by the RCC HAL module to compute the system frequency
mbed_official 340:28d1f895c6fe 102 * (when HSI is used as system clock source, directly or through the PLL).
mbed_official 340:28d1f895c6fe 103 */
mbed_official 340:28d1f895c6fe 104 #if !defined (HSI_VALUE)
mbed_official 340:28d1f895c6fe 105 #define HSI_VALUE ((uint32_t)8000000) /*!< Value of the Internal oscillator in Hz*/
mbed_official 340:28d1f895c6fe 106 #endif /* HSI_VALUE */
mbed_official 340:28d1f895c6fe 107
mbed_official 340:28d1f895c6fe 108 /**
mbed_official 340:28d1f895c6fe 109 * @brief In the following line adjust the Internal High Speed oscillator (HSI) Startup
mbed_official 340:28d1f895c6fe 110 * Timeout value
mbed_official 340:28d1f895c6fe 111 */
mbed_official 340:28d1f895c6fe 112 #if !defined (HSI_STARTUP_TIMEOUT)
mbed_official 340:28d1f895c6fe 113 #define HSI_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for HSI start up */
mbed_official 340:28d1f895c6fe 114 #endif /* HSI_STARTUP_TIMEOUT */
mbed_official 340:28d1f895c6fe 115
mbed_official 340:28d1f895c6fe 116 /**
mbed_official 340:28d1f895c6fe 117 * @brief Internal High Speed oscillator for ADC (HSI14) value.
mbed_official 340:28d1f895c6fe 118 */
mbed_official 340:28d1f895c6fe 119 #if !defined (HSI14_VALUE)
mbed_official 340:28d1f895c6fe 120 #define HSI14_VALUE ((uint32_t)14000000) /*!< Value of the Internal High Speed oscillator for ADC in Hz.
mbed_official 340:28d1f895c6fe 121 The real value may vary depending on the variations
mbed_official 340:28d1f895c6fe 122 in voltage and temperature. */
mbed_official 340:28d1f895c6fe 123 #endif /* HSI14_VALUE */
mbed_official 340:28d1f895c6fe 124
mbed_official 340:28d1f895c6fe 125 /**
mbed_official 340:28d1f895c6fe 126 * @brief Internal High Speed oscillator for USB (HSI48) value.
mbed_official 340:28d1f895c6fe 127 */
mbed_official 340:28d1f895c6fe 128 #if !defined (HSI48_VALUE)
mbed_official 340:28d1f895c6fe 129 #define HSI48_VALUE ((uint32_t)48000000) /*!< Value of the Internal High Speed oscillator for USB in Hz.
mbed_official 340:28d1f895c6fe 130 The real value may vary depending on the variations
mbed_official 340:28d1f895c6fe 131 in voltage and temperature. */
mbed_official 340:28d1f895c6fe 132 #endif /* HSI48_VALUE */
mbed_official 340:28d1f895c6fe 133
mbed_official 340:28d1f895c6fe 134 /**
mbed_official 340:28d1f895c6fe 135 * @brief Internal Low Speed oscillator (LSI) value.
mbed_official 340:28d1f895c6fe 136 */
mbed_official 340:28d1f895c6fe 137 #if !defined (LSI_VALUE)
mbed_official 340:28d1f895c6fe 138 #define LSI_VALUE ((uint32_t)40000)
mbed_official 340:28d1f895c6fe 139 #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
mbed_official 340:28d1f895c6fe 140 The real value may vary depending on the variations
mbed_official 340:28d1f895c6fe 141 in voltage and temperature. */
mbed_official 340:28d1f895c6fe 142 /**
mbed_official 340:28d1f895c6fe 143 * @brief External Low Speed oscillator (LSE) value.
mbed_official 340:28d1f895c6fe 144 */
mbed_official 340:28d1f895c6fe 145 #if !defined (LSE_VALUE)
mbed_official 340:28d1f895c6fe 146 #define LSE_VALUE ((uint32_t)32768) /*!< Value of the External Low Speed oscillator in Hz */
mbed_official 340:28d1f895c6fe 147 #endif /* LSE_VALUE */
mbed_official 340:28d1f895c6fe 148
mbed_official 630:825f75ca301e 149 #if !defined (LSE_STARTUP_TIMEOUT)
mbed_official 630:825f75ca301e 150 #define LSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for LSE start up, in ms */
mbed_official 630:825f75ca301e 151 #endif /* HSE_STARTUP_TIMEOUT */
mbed_official 630:825f75ca301e 152
mbed_official 340:28d1f895c6fe 153
mbed_official 340:28d1f895c6fe 154 /* Tip: To avoid modifying this file each time you need to use different HSE,
mbed_official 340:28d1f895c6fe 155 === you can define the HSE value in your toolchain compiler preprocessor. */
mbed_official 340:28d1f895c6fe 156
mbed_official 340:28d1f895c6fe 157 /* ########################### System Configuration ######################### */
mbed_official 340:28d1f895c6fe 158 /**
mbed_official 340:28d1f895c6fe 159 * @brief This is the HAL system configuration section
mbed_official 340:28d1f895c6fe 160 */
mbed_official 340:28d1f895c6fe 161 #define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
mbed_official 340:28d1f895c6fe 162 #define TICK_INT_PRIORITY ((uint32_t)(1<<__NVIC_PRIO_BITS) - 1) /*!< tick interrupt priority (lowest by default) */
mbed_official 340:28d1f895c6fe 163 /* Warning: Must be set to higher priority for HAL_Delay() */
mbed_official 340:28d1f895c6fe 164 /* and HAL_GetTick() usage under interrupt context */
mbed_official 340:28d1f895c6fe 165 #define USE_RTOS 0
mbed_official 340:28d1f895c6fe 166 #define PREFETCH_ENABLE 1
mbed_official 340:28d1f895c6fe 167 #define INSTRUCTION_CACHE_ENABLE 0
mbed_official 340:28d1f895c6fe 168 #define DATA_CACHE_ENABLE 0
mbed_official 340:28d1f895c6fe 169
mbed_official 340:28d1f895c6fe 170 /* ########################## Assert Selection ############################## */
mbed_official 340:28d1f895c6fe 171 /**
mbed_official 340:28d1f895c6fe 172 * @brief Uncomment the line below to expanse the "assert_param" macro in the
mbed_official 340:28d1f895c6fe 173 * HAL drivers code
mbed_official 340:28d1f895c6fe 174 */
mbed_official 340:28d1f895c6fe 175 /*#define USE_FULL_ASSERT 1*/
mbed_official 340:28d1f895c6fe 176
mbed_official 340:28d1f895c6fe 177 /* Includes ------------------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 178 /**
mbed_official 340:28d1f895c6fe 179 * @brief Include module's header file
mbed_official 340:28d1f895c6fe 180 */
mbed_official 340:28d1f895c6fe 181
mbed_official 340:28d1f895c6fe 182 #ifdef HAL_RCC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 183 #include "stm32f0xx_hal_rcc.h"
mbed_official 340:28d1f895c6fe 184 #endif /* HAL_RCC_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 185
mbed_official 340:28d1f895c6fe 186 #ifdef HAL_GPIO_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 187 #include "stm32f0xx_hal_gpio.h"
mbed_official 340:28d1f895c6fe 188 #endif /* HAL_GPIO_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 189
mbed_official 340:28d1f895c6fe 190 #ifdef HAL_DMA_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 191 #include "stm32f0xx_hal_dma.h"
mbed_official 340:28d1f895c6fe 192 #endif /* HAL_DMA_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 193
mbed_official 340:28d1f895c6fe 194 #ifdef HAL_CORTEX_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 195 #include "stm32f0xx_hal_cortex.h"
mbed_official 340:28d1f895c6fe 196 #endif /* HAL_CORTEX_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 197
mbed_official 340:28d1f895c6fe 198 #ifdef HAL_ADC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 199 #include "stm32f0xx_hal_adc.h"
mbed_official 340:28d1f895c6fe 200 #endif /* HAL_ADC_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 201
mbed_official 340:28d1f895c6fe 202 #ifdef HAL_CAN_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 203 #include "stm32f0xx_hal_can.h"
mbed_official 340:28d1f895c6fe 204 #endif /* HAL_CAN_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 205
mbed_official 340:28d1f895c6fe 206 #ifdef HAL_CEC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 207 #include "stm32f0xx_hal_cec.h"
mbed_official 340:28d1f895c6fe 208 #endif /* HAL_CEC_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 209
mbed_official 340:28d1f895c6fe 210 #ifdef HAL_COMP_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 211 #include "stm32f0xx_hal_comp.h"
mbed_official 340:28d1f895c6fe 212 #endif /* HAL_COMP_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 213
mbed_official 340:28d1f895c6fe 214 #ifdef HAL_CRC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 215 #include "stm32f0xx_hal_crc.h"
mbed_official 340:28d1f895c6fe 216 #endif /* HAL_CRC_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 217
mbed_official 340:28d1f895c6fe 218 #ifdef HAL_DAC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 219 #include "stm32f0xx_hal_dac.h"
mbed_official 340:28d1f895c6fe 220 #endif /* HAL_DAC_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 221
mbed_official 340:28d1f895c6fe 222 #ifdef HAL_FLASH_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 223 #include "stm32f0xx_hal_flash.h"
mbed_official 340:28d1f895c6fe 224 #endif /* HAL_FLASH_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 225
mbed_official 340:28d1f895c6fe 226 #ifdef HAL_I2C_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 227 #include "stm32f0xx_hal_i2c.h"
mbed_official 340:28d1f895c6fe 228 #endif /* HAL_I2C_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 229
mbed_official 340:28d1f895c6fe 230 #ifdef HAL_I2S_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 231 #include "stm32f0xx_hal_i2s.h"
mbed_official 340:28d1f895c6fe 232 #endif /* HAL_I2S_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 233
mbed_official 340:28d1f895c6fe 234 #ifdef HAL_IRDA_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 235 #include "stm32f0xx_hal_irda.h"
mbed_official 340:28d1f895c6fe 236 #endif /* HAL_IRDA_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 237
mbed_official 340:28d1f895c6fe 238 #ifdef HAL_IWDG_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 239 #include "stm32f0xx_hal_iwdg.h"
mbed_official 340:28d1f895c6fe 240 #endif /* HAL_IWDG_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 241
mbed_official 340:28d1f895c6fe 242 #ifdef HAL_PCD_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 243 #include "stm32f0xx_hal_pcd.h"
mbed_official 340:28d1f895c6fe 244 #endif /* HAL_PCD_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 245
mbed_official 340:28d1f895c6fe 246 #ifdef HAL_PWR_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 247 #include "stm32f0xx_hal_pwr.h"
mbed_official 340:28d1f895c6fe 248 #endif /* HAL_PWR_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 249
mbed_official 340:28d1f895c6fe 250 #ifdef HAL_RTC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 251 #include "stm32f0xx_hal_rtc.h"
mbed_official 340:28d1f895c6fe 252 #endif /* HAL_RTC_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 253
mbed_official 340:28d1f895c6fe 254 #ifdef HAL_SMARTCARD_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 255 #include "stm32f0xx_hal_smartcard.h"
mbed_official 340:28d1f895c6fe 256 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 257
mbed_official 340:28d1f895c6fe 258 #ifdef HAL_SMBUS_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 259 #include "stm32f0xx_hal_smbus.h"
mbed_official 340:28d1f895c6fe 260 #endif /* HAL_SMBUS_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 261
mbed_official 340:28d1f895c6fe 262 #ifdef HAL_SPI_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 263 #include "stm32f0xx_hal_spi.h"
mbed_official 340:28d1f895c6fe 264 #endif /* HAL_SPI_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 265
mbed_official 340:28d1f895c6fe 266 #ifdef HAL_TIM_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 267 #include "stm32f0xx_hal_tim.h"
mbed_official 340:28d1f895c6fe 268 #endif /* HAL_TIM_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 269
mbed_official 340:28d1f895c6fe 270 #ifdef HAL_TSC_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 271 #include "stm32f0xx_hal_tsc.h"
mbed_official 340:28d1f895c6fe 272 #endif /* HAL_TSC_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 273
mbed_official 340:28d1f895c6fe 274 #ifdef HAL_UART_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 275 #include "stm32f0xx_hal_uart.h"
mbed_official 340:28d1f895c6fe 276 #endif /* HAL_UART_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 277
mbed_official 340:28d1f895c6fe 278 #ifdef HAL_USART_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 279 #include "stm32f0xx_hal_usart.h"
mbed_official 340:28d1f895c6fe 280 #endif /* HAL_USART_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 281
mbed_official 340:28d1f895c6fe 282 #ifdef HAL_WWDG_MODULE_ENABLED
mbed_official 340:28d1f895c6fe 283 #include "stm32f0xx_hal_wwdg.h"
mbed_official 340:28d1f895c6fe 284 #endif /* HAL_WWDG_MODULE_ENABLED */
mbed_official 340:28d1f895c6fe 285
mbed_official 340:28d1f895c6fe 286 /* Exported macro ------------------------------------------------------------*/
mbed_official 340:28d1f895c6fe 287 #ifdef USE_FULL_ASSERT
mbed_official 340:28d1f895c6fe 288 /**
mbed_official 340:28d1f895c6fe 289 * @brief The assert_param macro is used for function's parameters check.
mbed_official 340:28d1f895c6fe 290 * @param expr: If expr is false, it calls assert_failed function
mbed_official 340:28d1f895c6fe 291 * which reports the name of the source file and the source
mbed_official 340:28d1f895c6fe 292 * line number of the call that failed.
mbed_official 340:28d1f895c6fe 293 * If expr is true, it returns no value.
mbed_official 340:28d1f895c6fe 294 * @retval None
mbed_official 340:28d1f895c6fe 295 */
mbed_official 340:28d1f895c6fe 296 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
mbed_official 340:28d1f895c6fe 297 /* Exported functions ------------------------------------------------------- */
mbed_official 340:28d1f895c6fe 298 void assert_failed(uint8_t* file, uint32_t line);
mbed_official 340:28d1f895c6fe 299 #else
mbed_official 340:28d1f895c6fe 300 #define assert_param(expr) ((void)0)
mbed_official 340:28d1f895c6fe 301 #endif /* USE_FULL_ASSERT */
mbed_official 340:28d1f895c6fe 302
mbed_official 340:28d1f895c6fe 303 #ifdef __cplusplus
mbed_official 340:28d1f895c6fe 304 }
mbed_official 340:28d1f895c6fe 305 #endif
mbed_official 340:28d1f895c6fe 306
mbed_official 340:28d1f895c6fe 307 #endif /* __STM32F0xx_HAL_CONF_H */
mbed_official 340:28d1f895c6fe 308
mbed_official 340:28d1f895c6fe 309
mbed_official 340:28d1f895c6fe 310 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
mbed_official 340:28d1f895c6fe 311