|
10 | 10 | #define STM32F769xx
|
11 | 11 |
|
12 | 12 | #ifdef __cplusplus
|
13 |
| - extern "C" { |
| 13 | +extern "C" |
| 14 | +{ |
14 | 15 | #endif
|
15 | 16 |
|
16 | 17 | #define HAL_DMA_MODULE_ENABLED
|
17 | 18 | #define HAL_QSPI_MODULE_ENABLED
|
18 | 19 | #define HAL_RCC_MODULE_ENABLED
|
19 | 20 |
|
20 |
| -#define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U /* DMA2D register callback disabled */ |
21 |
| -#define USE_HAL_QSPI_REGISTER_CALLBACKS 0U /* QSPI register callback disabled */ |
| 21 | +#define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U /* DMA2D register callback disabled */ |
| 22 | +#define USE_HAL_QSPI_REGISTER_CALLBACKS 0U /* QSPI register callback disabled */ |
22 | 23 |
|
23 | 24 | #ifdef HAL_RCC_MODULE_ENABLED
|
24 |
| - #include "stm32f7xx_hal_rcc.h" |
| 25 | +#include "stm32f7xx_hal_rcc.h" |
25 | 26 | #endif /* HAL_RCC_MODULE_ENABLED */
|
26 | 27 |
|
27 | 28 | #ifdef HAL_DMA_MODULE_ENABLED
|
28 |
| - #include "stm32f7xx_hal_dma.h" |
| 29 | +#include "stm32f7xx_hal_dma.h" |
29 | 30 | #endif /* HAL_DMA_MODULE_ENABLED */
|
30 | 31 |
|
31 | 32 | #ifdef HAL_QSPI_MODULE_ENABLED
|
32 |
| - #include "stm32f7xx_hal_qspi.h" |
| 33 | +#include "stm32f7xx_hal_qspi.h" |
33 | 34 | #endif /* HAL_QSPI_MODULE_ENABLED */
|
34 | 35 |
|
35 |
| - |
36 |
| -#ifdef USE_FULL_ASSERT |
37 |
| -/** |
38 |
| - * @brief The assert_param macro is used for function's parameters check. |
39 |
| - * @param expr: If expr is false, it calls assert_failed function |
40 |
| - * which reports the name of the source file and the source |
41 |
| - * line number of the call that failed. |
42 |
| - * If expr is true, it returns no value. |
43 |
| - * @retval None |
44 |
| - */ |
45 |
| - #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
46 |
| - void assert_failed(uint8_t* file, uint32_t line); |
| 36 | +#ifdef USE_FULL_ASSERT |
| 37 | + /** |
| 38 | + * @brief The assert_param macro is used for function's parameters check. |
| 39 | + * @param expr: If expr is false, it calls assert_failed function |
| 40 | + * which reports the name of the source file and the source |
| 41 | + * line number of the call that failed. |
| 42 | + * If expr is true, it returns no value. |
| 43 | + * @retval None |
| 44 | + */ |
| 45 | +#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
| 46 | + void assert_failed(uint8_t *file, uint32_t line); |
47 | 47 | #else
|
48 |
| - #define assert_param(expr) ((void)0U) |
| 48 | +#define assert_param(expr) ((void)0U) |
49 | 49 | #endif /* USE_FULL_ASSERT */
|
50 | 50 |
|
51 |
| - |
52 | 51 | #ifdef __cplusplus
|
53 | 52 | }
|
54 | 53 | #endif
|
55 | 54 |
|
56 |
| -#endif // __STM32F7xx_HAL_CONF_H |
| 55 | +#endif // __STM32F7xx_HAL_CONF_H |
0 commit comments