Skip to content

Commit 9566cb2

Browse files
committed
Code style fixes
***NO_CI***
1 parent 1c9faa3 commit 9566cb2

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

targets/ChibiOS/ST_STM32F769I_DISCOVERY/stm32f7xx_hal_conf.h

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,46 @@
1010
#define STM32F769xx
1111

1212
#ifdef __cplusplus
13-
extern "C" {
13+
extern "C"
14+
{
1415
#endif
1516

1617
#define HAL_DMA_MODULE_ENABLED
1718
#define HAL_QSPI_MODULE_ENABLED
1819
#define HAL_RCC_MODULE_ENABLED
1920

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 */
2223

2324
#ifdef HAL_RCC_MODULE_ENABLED
24-
#include "stm32f7xx_hal_rcc.h"
25+
#include "stm32f7xx_hal_rcc.h"
2526
#endif /* HAL_RCC_MODULE_ENABLED */
2627

2728
#ifdef HAL_DMA_MODULE_ENABLED
28-
#include "stm32f7xx_hal_dma.h"
29+
#include "stm32f7xx_hal_dma.h"
2930
#endif /* HAL_DMA_MODULE_ENABLED */
3031

3132
#ifdef HAL_QSPI_MODULE_ENABLED
32-
#include "stm32f7xx_hal_qspi.h"
33+
#include "stm32f7xx_hal_qspi.h"
3334
#endif /* HAL_QSPI_MODULE_ENABLED */
3435

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);
4747
#else
48-
#define assert_param(expr) ((void)0U)
48+
#define assert_param(expr) ((void)0U)
4949
#endif /* USE_FULL_ASSERT */
5050

51-
5251
#ifdef __cplusplus
5352
}
5453
#endif
5554

56-
#endif // __STM32F7xx_HAL_CONF_H
55+
#endif // __STM32F7xx_HAL_CONF_H

0 commit comments

Comments
 (0)