55 ******************************************************************************
66 * @attention
77 *
8- * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
8+ * <h2><center>© Copyright (c) 2016 STMicroelectronics.
9+ * All rights reserved.</center></h2>
910 *
10- * Redistribution and use in source and binary forms, with or without modification,
11- * are permitted provided that the following conditions are met:
12- * 1. Redistributions of source code must retain the above copyright notice,
13- * this list of conditions and the following disclaimer.
14- * 2. Redistributions in binary form must reproduce the above copyright notice,
15- * this list of conditions and the following disclaimer in the documentation
16- * and/or other materials provided with the distribution.
17- * 3. Neither the name of STMicroelectronics nor the names of its contributors
18- * may be used to endorse or promote products derived from this software
19- * without specific prior written permission.
20- *
21- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11+ * This software component is licensed by ST under BSD 3-Clause license,
12+ * the "License"; You may not use this file except in compliance with the
13+ * License. You may obtain a copy of the License at:
14+ * opensource.org/licenses/BSD-3-Clause
3115 *
3216 ******************************************************************************
3317 */
@@ -64,6 +48,7 @@ extern "C" {
6448#define HAL_DMA_MODULE_ENABLED
6549#define HAL_FLASH_MODULE_ENABLED
6650#define HAL_GPIO_MODULE_ENABLED
51+ #define HAL_EXTI_MODULE_ENABLED
6752#define HAL_I2C_MODULE_ENABLED
6853#define HAL_I2S_MODULE_ENABLED
6954#define HAL_IRDA_MODULE_ENABLED
@@ -139,7 +124,7 @@ extern "C" {
139124 * @brief Internal Low Speed oscillator (LSI) value.
140125 */
141126#if !defined (LSI_VALUE )
142- #define LSI_VALUE 40000U
127+ #define LSI_VALUE 32000U
143128#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
144129The real value may vary depending on the variations
145130in voltage and temperature. */
@@ -187,6 +172,25 @@ in voltage and temperature. */
187172#define USE_SPI_CRC 0U
188173#endif
189174
175+ #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
176+ #define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */
177+ #define USE_HAL_COMP_REGISTER_CALLBACKS 0U /* COMP register callback disabled */
178+ #define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */
179+ #define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
180+ #define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */
181+ #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */
182+ #define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
183+ #define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */
184+ #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */
185+ #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
186+ #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */
187+ #define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
188+ #define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */
189+ #define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */
190+ #define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */
191+ #define USE_HAL_TSC_REGISTER_CALLBACKS 0U /* TSC register callback disabled */
192+ #define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */
193+
190194/* ########################## Assert Selection ############################## */
191195/**
192196 * @brief Uncomment the line below to expanse the "assert_param" macro in the
@@ -207,6 +211,10 @@ in voltage and temperature. */
207211#include "stm32f0xx_hal_gpio.h"
208212#endif /* HAL_GPIO_MODULE_ENABLED */
209213
214+ #ifdef HAL_EXTI_MODULE_ENABLED
215+ #include "stm32f0xx_hal_exti.h"
216+ #endif /* HAL_EXTI_MODULE_ENABLED */
217+
210218#ifdef HAL_DMA_MODULE_ENABLED
211219#include "stm32f0xx_hal_dma.h"
212220#endif /* HAL_DMA_MODULE_ENABLED */
@@ -313,9 +321,9 @@ in voltage and temperature. */
313321 * If expr is true, it returns no value.
314322 * @retval None
315323 */
316- #define assert_param (expr ) ((expr) ? (void)0U : assert_failed((char *)__FILE__, __LINE__))
324+ #define assert_param (expr ) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
317325/* Exported functions ------------------------------------------------------- */
318- void assert_failed (char * file , uint32_t line );
326+ void assert_failed (uint8_t * file , uint32_t line );
319327#else
320328#define assert_param (expr ) ((void)0U)
321329#endif /* USE_FULL_ASSERT */
0 commit comments