Skip to content

Commit 4628e28

Browse files
committed
[F1] Update stm32f1xx_hal_conf_default.h
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 3a79119 commit 4628e28

File tree

1 file changed

+36
-23
lines changed

1 file changed

+36
-23
lines changed

system/STM32F1xx/stm32f1xx_hal_conf_default.h

+36-23
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,13 @@
55
******************************************************************************
66
* @attention
77
*
8-
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
8+
* <h2><center>&copy; Copyright (c) 2017 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
*/
@@ -63,6 +47,7 @@ extern "C" {
6347
#define HAL_DAC_MODULE_ENABLED
6448
#define HAL_DMA_MODULE_ENABLED
6549
#define HAL_ETH_MODULE_ENABLED
50+
#define HAL_EXTI_MODULE_ENABLED
6651
#define HAL_FLASH_MODULE_ENABLED
6752
#define HAL_GPIO_MODULE_ENABLED
6853
#define HAL_HCD_MODULE_ENABLED
@@ -155,6 +140,30 @@ extern "C" {
155140
#define PREFETCH_ENABLE 1U
156141
#endif
157142

143+
#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
144+
#define USE_HAL_CAN_REGISTER_CALLBACKS 0U /* CAN register callback disabled */
145+
#define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */
146+
#define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
147+
#define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */
148+
#define USE_HAL_HCD_REGISTER_CALLBACKS 0U /* HCD register callback disabled */
149+
#define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */
150+
#define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */
151+
#define USE_HAL_MMC_REGISTER_CALLBACKS 0U /* MMC register callback disabled */
152+
#define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */
153+
#define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */
154+
#define USE_HAL_PCCARD_REGISTER_CALLBACKS 0U /* PCCARD register callback disabled */
155+
#define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */
156+
#define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
157+
#define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
158+
#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
159+
#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */
160+
#define USE_HAL_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */
161+
#define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */
162+
#define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */
163+
#define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
164+
#define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */
165+
#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */
166+
158167
/* ########################## Assert Selection ############################## */
159168
/**
160169
* @brief Uncomment the line below to expanse the "assert_param" macro in the
@@ -251,6 +260,10 @@ extern "C" {
251260
#include "stm32f1xx_hal_gpio.h"
252261
#endif /* HAL_GPIO_MODULE_ENABLED */
253262

263+
#ifdef HAL_EXTI_MODULE_ENABLED
264+
#include "stm32f1xx_hal_exti.h"
265+
#endif /* HAL_EXTI_MODULE_ENABLED */
266+
254267
#ifdef HAL_DMA_MODULE_ENABLED
255268
#include "stm32f1xx_hal_dma.h"
256269
#endif /* HAL_DMA_MODULE_ENABLED */
@@ -375,7 +388,7 @@ extern "C" {
375388
#ifdef USE_FULL_ASSERT
376389
/**
377390
* @brief The assert_param macro is used for function's parameters check.
378-
* @param expr: If expr is false, it calls assert_failed function
391+
* @param expr If expr is false, it calls assert_failed function
379392
* which reports the name of the source file and the source
380393
* line number of the call that failed.
381394
* If expr is true, it returns no value.

0 commit comments

Comments
 (0)