|
5 | 5 | ******************************************************************************
|
6 | 6 | * @attention
|
7 | 7 | *
|
8 |
| - * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
| 8 | + * <h2><center>© Copyright (c) 2017 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 | */
|
@@ -63,6 +47,7 @@ extern "C" {
|
63 | 47 | #define HAL_DAC_MODULE_ENABLED
|
64 | 48 | #define HAL_DMA_MODULE_ENABLED
|
65 | 49 | #define HAL_ETH_MODULE_ENABLED
|
| 50 | +#define HAL_EXTI_MODULE_ENABLED |
66 | 51 | #define HAL_FLASH_MODULE_ENABLED
|
67 | 52 | #define HAL_GPIO_MODULE_ENABLED
|
68 | 53 | #define HAL_HCD_MODULE_ENABLED
|
@@ -155,6 +140,30 @@ extern "C" {
|
155 | 140 | #define PREFETCH_ENABLE 1U
|
156 | 141 | #endif
|
157 | 142 |
|
| 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 | + |
158 | 167 | /* ########################## Assert Selection ############################## */
|
159 | 168 | /**
|
160 | 169 | * @brief Uncomment the line below to expanse the "assert_param" macro in the
|
@@ -251,6 +260,10 @@ extern "C" {
|
251 | 260 | #include "stm32f1xx_hal_gpio.h"
|
252 | 261 | #endif /* HAL_GPIO_MODULE_ENABLED */
|
253 | 262 |
|
| 263 | +#ifdef HAL_EXTI_MODULE_ENABLED |
| 264 | +#include "stm32f1xx_hal_exti.h" |
| 265 | +#endif /* HAL_EXTI_MODULE_ENABLED */ |
| 266 | + |
254 | 267 | #ifdef HAL_DMA_MODULE_ENABLED
|
255 | 268 | #include "stm32f1xx_hal_dma.h"
|
256 | 269 | #endif /* HAL_DMA_MODULE_ENABLED */
|
@@ -375,7 +388,7 @@ extern "C" {
|
375 | 388 | #ifdef USE_FULL_ASSERT
|
376 | 389 | /**
|
377 | 390 | * @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 |
379 | 392 | * which reports the name of the source file and the source
|
380 | 393 | * line number of the call that failed.
|
381 | 394 | * If expr is true, it returns no value.
|
|
0 commit comments