Skip to content

Commit 9e29039

Browse files
committed
[F3] Update stm32f3xx_hal_conf_default.h
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 0cb6c00 commit 9e29039

File tree

1 file changed

+39
-24
lines changed

1 file changed

+39
-24
lines changed

system/STM32F3xx/stm32f3xx_hal_conf_default.h

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,13 @@
55
******************************************************************************
66
* @attention
77
*
8-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
8+
* <h2><center>&copy; 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
*/
@@ -69,6 +53,7 @@ extern "C" {
6953
#define HAL_NAND_MODULE_ENABLED
7054
#define HAL_PCCARD_MODULE_ENABLED
7155
#define HAL_GPIO_MODULE_ENABLED
56+
#define HAL_EXTI_MODULE_ENABLED
7257
#define HAL_HRTIM_MODULE_ENABLED
7358
#define HAL_I2C_MODULE_ENABLED
7459
#define HAL_I2S_MODULE_ENABLED
@@ -187,6 +172,32 @@ 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_SRAM_REGISTER_CALLBACKS 0U /* SRAM register callback disabled */
181+
#define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U /* SMBUS register callback disabled */
182+
#define USE_HAL_SDADC_REGISTER_CALLBACKS 0U /* SDADC register callback disabled */
183+
#define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */
184+
#define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */
185+
#define USE_HAL_PCCARD_REGISTER_CALLBACKS 0U /* PCCARD register callback disabled */
186+
#define USE_HAL_HRTIM_REGISTER_CALLBACKS 0U /* HRTIM register callback disabled */
187+
#define USE_HAL_I2C_REGISTER_CALLBACKS 0U /* I2C register callback disabled */
188+
#define USE_HAL_UART_REGISTER_CALLBACKS 0U /* UART register callback disabled */
189+
#define USE_HAL_USART_REGISTER_CALLBACKS 0U /* USART register callback disabled */
190+
#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U /* IRDA register callback disabled */
191+
#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U /* SMARTCARD register callback disabled */
192+
#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U /* WWDG register callback disabled */
193+
#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U /* OPAMP register callback disabled */
194+
#define USE_HAL_RTC_REGISTER_CALLBACKS 0U /* RTC register callback disabled */
195+
#define USE_HAL_SPI_REGISTER_CALLBACKS 0U /* SPI register callback disabled */
196+
#define USE_HAL_I2S_REGISTER_CALLBACKS 0U /* I2S register callback disabled */
197+
#define USE_HAL_TIM_REGISTER_CALLBACKS 0U /* TIM register callback disabled */
198+
#define USE_HAL_TSC_REGISTER_CALLBACKS 0U /* TSC register callback disabled */
199+
#define USE_HAL_PCD_REGISTER_CALLBACKS 0U /* PCD register callback disabled */
200+
190201
/* ########################## Assert Selection ############################## */
191202
/**
192203
* @brief Uncomment the line below to expanse the "assert_param" macro in the
@@ -207,6 +218,10 @@ in voltage and temperature. */
207218
#include "stm32f3xx_hal_gpio.h"
208219
#endif /* HAL_GPIO_MODULE_ENABLED */
209220

221+
#ifdef HAL_EXTI_MODULE_ENABLED
222+
#include "stm32f3xx_hal_exti.h"
223+
#endif /* HAL_EXTI_MODULE_ENABLED */
224+
210225
#ifdef HAL_DMA_MODULE_ENABLED
211226
#include "stm32f3xx_hal_dma.h"
212227
#endif /* HAL_DMA_MODULE_ENABLED */
@@ -345,9 +360,9 @@ in voltage and temperature. */
345360
* If expr is true, it returns no value.
346361
* @retval None
347362
*/
348-
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((char *)__FILE__, __LINE__))
363+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
349364
/* Exported functions ------------------------------------------------------- */
350-
void assert_failed(char *file, uint32_t line);
365+
void assert_failed(uint8_t* file, uint32_t line);
351366
#else
352367
#define assert_param(expr) ((void)0U)
353368
#endif /* USE_FULL_ASSERT */

0 commit comments

Comments
 (0)