5
5
******************************************************************************
6
6
* @attention
7
7
*
8
- * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
8
+ * <h2><center>© Copyright (c) 2016 STMicroelectronics.
9
+ * All rights reserved.</center></h2>
9
10
*
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
31
15
*
32
16
******************************************************************************
33
17
*/
@@ -64,6 +48,7 @@ extern "C" {
64
48
#define HAL_DMA_MODULE_ENABLED
65
49
#define HAL_FLASH_MODULE_ENABLED
66
50
#define HAL_GPIO_MODULE_ENABLED
51
+ #define HAL_EXTI_MODULE_ENABLED
67
52
#define HAL_I2C_MODULE_ENABLED
68
53
#define HAL_I2S_MODULE_ENABLED
69
54
#define HAL_IRDA_MODULE_ENABLED
@@ -139,7 +124,7 @@ extern "C" {
139
124
* @brief Internal Low Speed oscillator (LSI) value.
140
125
*/
141
126
#if !defined (LSI_VALUE )
142
- #define LSI_VALUE 40000U
127
+ #define LSI_VALUE 32000U
143
128
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
144
129
The real value may vary depending on the variations
145
130
in voltage and temperature. */
@@ -187,6 +172,25 @@ in voltage and temperature. */
187
172
#define USE_SPI_CRC 0U
188
173
#endif
189
174
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
+
190
194
/* ########################## Assert Selection ############################## */
191
195
/**
192
196
* @brief Uncomment the line below to expanse the "assert_param" macro in the
@@ -207,6 +211,10 @@ in voltage and temperature. */
207
211
#include "stm32f0xx_hal_gpio.h"
208
212
#endif /* HAL_GPIO_MODULE_ENABLED */
209
213
214
+ #ifdef HAL_EXTI_MODULE_ENABLED
215
+ #include "stm32f0xx_hal_exti.h"
216
+ #endif /* HAL_EXTI_MODULE_ENABLED */
217
+
210
218
#ifdef HAL_DMA_MODULE_ENABLED
211
219
#include "stm32f0xx_hal_dma.h"
212
220
#endif /* HAL_DMA_MODULE_ENABLED */
@@ -313,9 +321,9 @@ in voltage and temperature. */
313
321
* If expr is true, it returns no value.
314
322
* @retval None
315
323
*/
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__))
317
325
/* Exported functions ------------------------------------------------------- */
318
- void assert_failed (char * file , uint32_t line );
326
+ void assert_failed (uint8_t * file , uint32_t line );
319
327
#else
320
328
#define assert_param (expr ) ((void)0U)
321
329
#endif /* USE_FULL_ASSERT */
0 commit comments