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:
111:4336505e4b1c
.

Who changed what in which revision?

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