77 *
88 * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
99 *
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
3114 *
3215 ******************************************************************************
3316 */
@@ -56,12 +39,14 @@ extern "C" {
5639#define HAL_MODULE_ENABLED
5740#define HAL_ADC_MODULE_ENABLED
5841#define HAL_CAN_MODULE_ENABLED
42+ /* #define HAL_CAN_LEGACY_MODULE_ENABLED */
5943#define HAL_CRC_MODULE_ENABLED
6044#define HAL_CRYP_MODULE_ENABLED
6145#define HAL_DAC_MODULE_ENABLED
6246#define HAL_DCMI_MODULE_ENABLED
6347#define HAL_DMA_MODULE_ENABLED
6448#define HAL_ETH_MODULE_ENABLED
49+ #define HAL_EXTI_MODULE_ENABLED
6550#define HAL_FLASH_MODULE_ENABLED
6651#define HAL_NAND_MODULE_ENABLED
6752#define HAL_NOR_MODULE_ENABLED
@@ -167,6 +152,33 @@ in voltage and temperature.*/
167152#define DATA_CACHE_ENABLE 1U
168153#endif
169154
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+
170182/* ########################## Assert Selection ############################## */
171183/**
172184 * @brief Uncomment the line below to expanse the "assert_param" macro in the
@@ -263,6 +275,10 @@ in voltage and temperature.*/
263275#include "stm32f2xx_hal_gpio.h"
264276#endif /* HAL_GPIO_MODULE_ENABLED */
265277
278+ #ifdef HAL_EXTI_MODULE_ENABLED
279+ #include "stm32f2xx_hal_exti.h"
280+ #endif /* HAL_EXTI_MODULE_ENABLED */
281+
266282#ifdef HAL_DMA_MODULE_ENABLED
267283#include "stm32f2xx_hal_dma.h"
268284#endif /* HAL_DMA_MODULE_ENABLED */
@@ -279,6 +295,10 @@ in voltage and temperature.*/
279295#include "stm32f2xx_hal_can.h"
280296#endif /* HAL_CAN_MODULE_ENABLED */
281297
298+ #ifdef HAL_CAN_LEGACY_MODULE_ENABLED
299+ #include "stm32f2xx_hal_can_legacy.h"
300+ #endif /* HAL_CAN_LEGACY_MODULE_ENABLED */
301+
282302#ifdef HAL_CRC_MODULE_ENABLED
283303#include "stm32f2xx_hal_crc.h"
284304#endif /* HAL_CRC_MODULE_ENABLED */
@@ -394,7 +414,7 @@ in voltage and temperature.*/
394414#ifdef USE_FULL_ASSERT
395415/**
396416 * @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
398418 * which reports the name of the source file and the source
399419 * line number of the call that failed.
400420 * If expr is true, it returns no value.
0 commit comments