7
7
*
8
8
* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
9
9
*
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.
10
+ * This software component is licensed by ST under BSD 3-Clause license,
11
+ * the "License"; You may not use this file except in compliance with the
12
+ * License. You may obtain a copy of the License at:
13
+ * opensource.org/licenses/BSD-3-Clause
31
14
*
32
15
******************************************************************************
33
16
*/
@@ -56,12 +39,14 @@ extern "C" {
56
39
#define HAL_MODULE_ENABLED
57
40
#define HAL_ADC_MODULE_ENABLED
58
41
#define HAL_CAN_MODULE_ENABLED
42
+ /* #define HAL_CAN_LEGACY_MODULE_ENABLED */
59
43
#define HAL_CRC_MODULE_ENABLED
60
44
#define HAL_CRYP_MODULE_ENABLED
61
45
#define HAL_DAC_MODULE_ENABLED
62
46
#define HAL_DCMI_MODULE_ENABLED
63
47
#define HAL_DMA_MODULE_ENABLED
64
48
#define HAL_ETH_MODULE_ENABLED
49
+ #define HAL_EXTI_MODULE_ENABLED
65
50
#define HAL_FLASH_MODULE_ENABLED
66
51
#define HAL_NAND_MODULE_ENABLED
67
52
#define HAL_NOR_MODULE_ENABLED
@@ -167,6 +152,33 @@ in voltage and temperature.*/
167
152
#define DATA_CACHE_ENABLE 1U
168
153
#endif
169
154
155
+ #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
156
+ #define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */
157
+ #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */
158
+ #define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
159
+ #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U /* DCMI register callback disabled */
160
+ #define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */
161
+ #define USE_HAL_HASH_REGISTER_CALLBACKS 0U /* HASH register callback disabled */
162
+ #define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */
163
+ #define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */
164
+ #define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */
165
+ #define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */
166
+ #define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */
167
+ #define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */
168
+ #define USE_HAL_PCCARD_REGISTER_CALLBACKS 0U /* PCCARD register callback disabled */
169
+ #define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */
170
+ #define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
171
+ #define USE_HAL_RNG_REGISTER_CALLBACKS 0U /* RNG register callback disabled */
172
+ #define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
173
+ #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
174
+ #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */
175
+ #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */
176
+ #define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */
177
+ #define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */
178
+ #define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
179
+ #define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */
180
+ #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */
181
+
170
182
/* ########################## Assert Selection ############################## */
171
183
/**
172
184
* @brief Uncomment the line below to expanse the "assert_param" macro in the
@@ -263,6 +275,10 @@ in voltage and temperature.*/
263
275
#include "stm32f2xx_hal_gpio.h"
264
276
#endif /* HAL_GPIO_MODULE_ENABLED */
265
277
278
+ #ifdef HAL_EXTI_MODULE_ENABLED
279
+ #include "stm32f2xx_hal_exti.h"
280
+ #endif /* HAL_EXTI_MODULE_ENABLED */
281
+
266
282
#ifdef HAL_DMA_MODULE_ENABLED
267
283
#include "stm32f2xx_hal_dma.h"
268
284
#endif /* HAL_DMA_MODULE_ENABLED */
@@ -279,6 +295,10 @@ in voltage and temperature.*/
279
295
#include "stm32f2xx_hal_can.h"
280
296
#endif /* HAL_CAN_MODULE_ENABLED */
281
297
298
+ #ifdef HAL_CAN_LEGACY_MODULE_ENABLED
299
+ #include "stm32f2xx_hal_can_legacy.h"
300
+ #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */
301
+
282
302
#ifdef HAL_CRC_MODULE_ENABLED
283
303
#include "stm32f2xx_hal_crc.h"
284
304
#endif /* HAL_CRC_MODULE_ENABLED */
@@ -394,7 +414,7 @@ in voltage and temperature.*/
394
414
#ifdef USE_FULL_ASSERT
395
415
/**
396
416
* @brief The assert_param macro is used for function's parameters check.
397
- * @param expr: If expr is false, it calls assert_failed function
417
+ * @param expr If expr is false, it calls assert_failed function
398
418
* which reports the name of the source file and the source
399
419
* line number of the call that failed.
400
420
* If expr is true, it returns no value.
0 commit comments