mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Parent:
118:082adc85693f
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

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 122:f9eeca106725 5 * @version V1.4.0
Kojto 122:f9eeca106725 6 * @date 27-May-2016
Kojto 109:9296ab0bfc11 7 * @brief HAL configuration file.
Kojto 109:9296ab0bfc11 8 ******************************************************************************
Kojto 109:9296ab0bfc11 9 * @attention
Kojto 109:9296ab0bfc11 10 *
Kojto 122:f9eeca106725 11 * <h2><center>&copy; COPYRIGHT(c) 2016 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 122:f9eeca106725 96 #define HSE_STARTUP_TIMEOUT ((uint32_t)100) /*!< 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 122:f9eeca106725 113 #define HSI_STARTUP_TIMEOUT ((uint32_t)5000) /*!< 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 122:f9eeca106725 147 #endif /* LSE_VALUE */
Kojto 109:9296ab0bfc11 148
Kojto 122:f9eeca106725 149 /**
Kojto 122:f9eeca106725 150 * @brief Time out for LSE start up value in ms.
Kojto 122:f9eeca106725 151 */
Kojto 109:9296ab0bfc11 152 #if !defined (LSE_STARTUP_TIMEOUT)
Kojto 122:f9eeca106725 153 #define LSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for LSE start up, in ms */
Kojto 122:f9eeca106725 154 #endif /* LSE_STARTUP_TIMEOUT */
Kojto 109:9296ab0bfc11 155
Kojto 109:9296ab0bfc11 156
Kojto 109:9296ab0bfc11 157 /* Tip: To avoid modifying this file each time you need to use different HSE,
Kojto 109:9296ab0bfc11 158 === you can define the HSE value in your toolchain compiler preprocessor. */
Kojto 109:9296ab0bfc11 159
Kojto 109:9296ab0bfc11 160 /* ########################### System Configuration ######################### */
Kojto 109:9296ab0bfc11 161 /**
Kojto 109:9296ab0bfc11 162 * @brief This is the HAL system configuration section
Kojto 109:9296ab0bfc11 163 */
Kojto 109:9296ab0bfc11 164 #define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
Kojto 109:9296ab0bfc11 165 #define TICK_INT_PRIORITY ((uint32_t)(1<<__NVIC_PRIO_BITS) - 1) /*!< tick interrupt priority (lowest by default) */
Kojto 109:9296ab0bfc11 166 /* Warning: Must be set to higher priority for HAL_Delay() */
Kojto 109:9296ab0bfc11 167 /* and HAL_GetTick() usage under interrupt context */
Kojto 109:9296ab0bfc11 168 #define USE_RTOS 0
Kojto 109:9296ab0bfc11 169 #define PREFETCH_ENABLE 1
Kojto 109:9296ab0bfc11 170 #define INSTRUCTION_CACHE_ENABLE 0
Kojto 109:9296ab0bfc11 171 #define DATA_CACHE_ENABLE 0
Kojto 109:9296ab0bfc11 172
Kojto 109:9296ab0bfc11 173 /* ########################## Assert Selection ############################## */
Kojto 109:9296ab0bfc11 174 /**
Kojto 109:9296ab0bfc11 175 * @brief Uncomment the line below to expanse the "assert_param" macro in the
Kojto 109:9296ab0bfc11 176 * HAL drivers code
Kojto 109:9296ab0bfc11 177 */
Kojto 109:9296ab0bfc11 178 /*#define USE_FULL_ASSERT 1*/
Kojto 109:9296ab0bfc11 179
Kojto 109:9296ab0bfc11 180 /* Includes ------------------------------------------------------------------*/
Kojto 109:9296ab0bfc11 181 /**
Kojto 109:9296ab0bfc11 182 * @brief Include module's header file
Kojto 109:9296ab0bfc11 183 */
Kojto 109:9296ab0bfc11 184
Kojto 109:9296ab0bfc11 185 #ifdef HAL_RCC_MODULE_ENABLED
Kojto 109:9296ab0bfc11 186 #include "stm32f0xx_hal_rcc.h"
Kojto 109:9296ab0bfc11 187 #endif /* HAL_RCC_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 188
Kojto 109:9296ab0bfc11 189 #ifdef HAL_GPIO_MODULE_ENABLED
Kojto 109:9296ab0bfc11 190 #include "stm32f0xx_hal_gpio.h"
Kojto 109:9296ab0bfc11 191 #endif /* HAL_GPIO_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 192
Kojto 109:9296ab0bfc11 193 #ifdef HAL_DMA_MODULE_ENABLED
Kojto 109:9296ab0bfc11 194 #include "stm32f0xx_hal_dma.h"
Kojto 109:9296ab0bfc11 195 #endif /* HAL_DMA_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 196
Kojto 109:9296ab0bfc11 197 #ifdef HAL_CORTEX_MODULE_ENABLED
Kojto 109:9296ab0bfc11 198 #include "stm32f0xx_hal_cortex.h"
Kojto 109:9296ab0bfc11 199 #endif /* HAL_CORTEX_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 200
Kojto 109:9296ab0bfc11 201 #ifdef HAL_ADC_MODULE_ENABLED
Kojto 109:9296ab0bfc11 202 #include "stm32f0xx_hal_adc.h"
Kojto 109:9296ab0bfc11 203 #endif /* HAL_ADC_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 204
Kojto 109:9296ab0bfc11 205 #ifdef HAL_CAN_MODULE_ENABLED
Kojto 109:9296ab0bfc11 206 #include "stm32f0xx_hal_can.h"
Kojto 109:9296ab0bfc11 207 #endif /* HAL_CAN_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 208
Kojto 109:9296ab0bfc11 209 #ifdef HAL_CEC_MODULE_ENABLED
Kojto 109:9296ab0bfc11 210 #include "stm32f0xx_hal_cec.h"
Kojto 109:9296ab0bfc11 211 #endif /* HAL_CEC_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 212
Kojto 109:9296ab0bfc11 213 #ifdef HAL_COMP_MODULE_ENABLED
Kojto 109:9296ab0bfc11 214 #include "stm32f0xx_hal_comp.h"
Kojto 109:9296ab0bfc11 215 #endif /* HAL_COMP_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 216
Kojto 109:9296ab0bfc11 217 #ifdef HAL_CRC_MODULE_ENABLED
Kojto 109:9296ab0bfc11 218 #include "stm32f0xx_hal_crc.h"
Kojto 109:9296ab0bfc11 219 #endif /* HAL_CRC_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 220
Kojto 109:9296ab0bfc11 221 #ifdef HAL_DAC_MODULE_ENABLED
Kojto 109:9296ab0bfc11 222 #include "stm32f0xx_hal_dac.h"
Kojto 109:9296ab0bfc11 223 #endif /* HAL_DAC_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 224
Kojto 109:9296ab0bfc11 225 #ifdef HAL_FLASH_MODULE_ENABLED
Kojto 109:9296ab0bfc11 226 #include "stm32f0xx_hal_flash.h"
Kojto 109:9296ab0bfc11 227 #endif /* HAL_FLASH_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 228
Kojto 109:9296ab0bfc11 229 #ifdef HAL_I2C_MODULE_ENABLED
Kojto 109:9296ab0bfc11 230 #include "stm32f0xx_hal_i2c.h"
Kojto 109:9296ab0bfc11 231 #endif /* HAL_I2C_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 232
Kojto 109:9296ab0bfc11 233 #ifdef HAL_I2S_MODULE_ENABLED
Kojto 109:9296ab0bfc11 234 #include "stm32f0xx_hal_i2s.h"
Kojto 109:9296ab0bfc11 235 #endif /* HAL_I2S_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 236
Kojto 109:9296ab0bfc11 237 #ifdef HAL_IRDA_MODULE_ENABLED
Kojto 109:9296ab0bfc11 238 #include "stm32f0xx_hal_irda.h"
Kojto 109:9296ab0bfc11 239 #endif /* HAL_IRDA_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 240
Kojto 109:9296ab0bfc11 241 #ifdef HAL_IWDG_MODULE_ENABLED
Kojto 109:9296ab0bfc11 242 #include "stm32f0xx_hal_iwdg.h"
Kojto 109:9296ab0bfc11 243 #endif /* HAL_IWDG_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 244
Kojto 109:9296ab0bfc11 245 #ifdef HAL_PCD_MODULE_ENABLED
Kojto 109:9296ab0bfc11 246 #include "stm32f0xx_hal_pcd.h"
Kojto 109:9296ab0bfc11 247 #endif /* HAL_PCD_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 248
Kojto 109:9296ab0bfc11 249 #ifdef HAL_PWR_MODULE_ENABLED
Kojto 109:9296ab0bfc11 250 #include "stm32f0xx_hal_pwr.h"
Kojto 109:9296ab0bfc11 251 #endif /* HAL_PWR_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 252
Kojto 109:9296ab0bfc11 253 #ifdef HAL_RTC_MODULE_ENABLED
Kojto 109:9296ab0bfc11 254 #include "stm32f0xx_hal_rtc.h"
Kojto 109:9296ab0bfc11 255 #endif /* HAL_RTC_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 256
Kojto 109:9296ab0bfc11 257 #ifdef HAL_SMARTCARD_MODULE_ENABLED
Kojto 109:9296ab0bfc11 258 #include "stm32f0xx_hal_smartcard.h"
Kojto 109:9296ab0bfc11 259 #endif /* HAL_SMARTCARD_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 260
Kojto 109:9296ab0bfc11 261 #ifdef HAL_SMBUS_MODULE_ENABLED
Kojto 109:9296ab0bfc11 262 #include "stm32f0xx_hal_smbus.h"
Kojto 109:9296ab0bfc11 263 #endif /* HAL_SMBUS_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 264
Kojto 109:9296ab0bfc11 265 #ifdef HAL_SPI_MODULE_ENABLED
Kojto 109:9296ab0bfc11 266 #include "stm32f0xx_hal_spi.h"
Kojto 109:9296ab0bfc11 267 #endif /* HAL_SPI_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 268
Kojto 109:9296ab0bfc11 269 #ifdef HAL_TIM_MODULE_ENABLED
Kojto 109:9296ab0bfc11 270 #include "stm32f0xx_hal_tim.h"
Kojto 109:9296ab0bfc11 271 #endif /* HAL_TIM_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 272
Kojto 109:9296ab0bfc11 273 #ifdef HAL_TSC_MODULE_ENABLED
Kojto 109:9296ab0bfc11 274 #include "stm32f0xx_hal_tsc.h"
Kojto 109:9296ab0bfc11 275 #endif /* HAL_TSC_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 276
Kojto 109:9296ab0bfc11 277 #ifdef HAL_UART_MODULE_ENABLED
Kojto 109:9296ab0bfc11 278 #include "stm32f0xx_hal_uart.h"
Kojto 109:9296ab0bfc11 279 #endif /* HAL_UART_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 280
Kojto 109:9296ab0bfc11 281 #ifdef HAL_USART_MODULE_ENABLED
Kojto 109:9296ab0bfc11 282 #include "stm32f0xx_hal_usart.h"
Kojto 109:9296ab0bfc11 283 #endif /* HAL_USART_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 284
Kojto 109:9296ab0bfc11 285 #ifdef HAL_WWDG_MODULE_ENABLED
Kojto 109:9296ab0bfc11 286 #include "stm32f0xx_hal_wwdg.h"
Kojto 109:9296ab0bfc11 287 #endif /* HAL_WWDG_MODULE_ENABLED */
Kojto 109:9296ab0bfc11 288
Kojto 109:9296ab0bfc11 289 /* Exported macro ------------------------------------------------------------*/
Kojto 109:9296ab0bfc11 290 #ifdef USE_FULL_ASSERT
Kojto 109:9296ab0bfc11 291 /**
Kojto 109:9296ab0bfc11 292 * @brief The assert_param macro is used for function's parameters check.
Kojto 109:9296ab0bfc11 293 * @param expr: If expr is false, it calls assert_failed function
Kojto 109:9296ab0bfc11 294 * which reports the name of the source file and the source
Kojto 109:9296ab0bfc11 295 * line number of the call that failed.
Kojto 109:9296ab0bfc11 296 * If expr is true, it returns no value.
Kojto 109:9296ab0bfc11 297 * @retval None
Kojto 109:9296ab0bfc11 298 */
Kojto 122:f9eeca106725 299 #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
Kojto 109:9296ab0bfc11 300 /* Exported functions ------------------------------------------------------- */
Kojto 109:9296ab0bfc11 301 void assert_failed(uint8_t* file, uint32_t line);
Kojto 109:9296ab0bfc11 302 #else
Kojto 122:f9eeca106725 303 #define assert_param(expr) ((void)0U)
Kojto 109:9296ab0bfc11 304 #endif /* USE_FULL_ASSERT */
Kojto 109:9296ab0bfc11 305
Kojto 109:9296ab0bfc11 306 #ifdef __cplusplus
Kojto 109:9296ab0bfc11 307 }
Kojto 109:9296ab0bfc11 308 #endif
Kojto 109:9296ab0bfc11 309
Kojto 109:9296ab0bfc11 310 #endif /* __STM32F0xx_HAL_CONF_H */
Kojto 109:9296ab0bfc11 311
Kojto 109:9296ab0bfc11 312
Kojto 109:9296ab0bfc11 313 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Kojto 109:9296ab0bfc11 314