A simple 128x32 graphical LCD program to quickstart with LCD on ARM mbed IoT Starter Kit. This requires mbed Applciation Shield with FRDM-K64F platform.

Dependencies:   C12832

Committer:
tushki7
Date:
Sun Apr 12 15:45:52 2015 +0000
Revision:
1:eb68c94a8ee5
Parent:
0:60d829a0353a
A simple 128x32 LCD program with ARM mbed IoT Starter Kit;

Who changed what in which revision?

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