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:
Kojto
Date:
Fri Oct 02 07:35:07 2015 +0200
Revision:
108:34e6b704fe68
Parent:
93:e188a91d3eaa
Child:
109:9296ab0bfc11
Release 108  of the mbed library

Changes:
- new platforms - ELMO_F411RE, WIZNET_7500P, ARM_MPS2_BEID
- EFM32 - bugfixes in rtc, serial
- Cortex A cmsis - update files
- STML4 - RAM fixes

Who changed what in which revision?

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