Skip to content

Commit 45d0d28

Browse files
dek3rrrbiasini
authored andcommitted
remove whitespace (commaai#255)
1 parent e49d0db commit 45d0d28

21 files changed

+5230
-5230
lines changed

board/inc/stm32f205xx.h

+204-204
Large diffs are not rendered by default.

board/inc/stm32f2xx.h

+23-23
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
* @author MCD Application Team
55
* @version V2.1.2
66
* @date 29-June-2016
7-
* @brief CMSIS STM32F2xx Device Peripheral Access Layer Header File.
7+
* @brief CMSIS STM32F2xx Device Peripheral Access Layer Header File.
88
*
99
* The file is the unique include file that the application programmer
1010
* is using in the C source code, usually in main.c. This file contains:
1111
* - Configuration section that allows to select:
1212
* - The STM32F2xx device used in the target application
13-
* - To use or not the peripheral’s drivers in application code(i.e.
14-
* code will be based on direct access to peripheral’s registers
15-
* rather than drivers API), this option is controlled by
13+
* - To use or not the peripheral’s drivers in application code(i.e.
14+
* code will be based on direct access to peripheral’s registers
15+
* rather than drivers API), this option is controlled by
1616
* "#define USE_HAL_DRIVER"
17-
*
17+
*
1818
******************************************************************************
1919
* @attention
2020
*
@@ -52,14 +52,14 @@
5252
/** @addtogroup stm32f2xx
5353
* @{
5454
*/
55-
55+
5656
#ifndef __STM32F2xx_H
5757
#define __STM32F2xx_H
5858

5959
#ifdef __cplusplus
6060
extern "C" {
6161
#endif /* __cplusplus */
62-
62+
6363
/** @addtogroup Library_configuration_section
6464
* @{
6565
*/
@@ -70,9 +70,9 @@
7070
#if !defined (STM32F2)
7171
#define STM32F2
7272
#endif /* STM32F2 */
73-
73+
7474
/* Uncomment the line below according to the target STM32 device used in your
75-
application
75+
application
7676
*/
7777
#if !defined (STM32F205xx) && !defined (STM32F215xx) && !defined (STM32F207xx) && !defined (STM32F217xx)
7878

@@ -83,17 +83,17 @@
8383
/* #define STM32F207xx */ /*!< STM32F207VG, STM32F207ZG, STM32F207IG, STM32F207VF, STM32F207ZF, STM32F207IF,
8484
STM32F207VE, STM32F207ZE, STM32F207IE, STM32F207VC, STM32F207ZC and STM32F207IC Devices */
8585
/* #define STM32F217xx */ /*!< STM32F217VG, STM32F217ZG, STM32F217IG, STM32F217VE, STM32F217ZE and STM32F217IE Devices */
86-
86+
8787
#endif
88-
88+
8989
/* Tip: To avoid modifying this file each time you need to switch between these
9090
devices, you can define the device in your toolchain compiler preprocessor.
9191
*/
9292
#if !defined (USE_HAL_DRIVER)
9393
/**
9494
* @brief Comment the line below if you will not use the peripherals drivers.
95-
In this case, these drivers will not be included and the application code will
96-
be based on direct access to peripherals registers
95+
In this case, these drivers will not be included and the application code will
96+
be based on direct access to peripherals registers
9797
*/
9898
/*#define USE_HAL_DRIVER */
9999
#endif /* USE_HAL_DRIVER */
@@ -136,23 +136,23 @@
136136

137137
/** @addtogroup Exported_types
138138
* @{
139-
*/
140-
typedef enum
139+
*/
140+
typedef enum
141141
{
142-
RESET = 0,
142+
RESET = 0,
143143
SET = !RESET
144144
} FlagStatus, ITStatus;
145145

146-
typedef enum
146+
typedef enum
147147
{
148-
DISABLE = 0,
148+
DISABLE = 0,
149149
ENABLE = !DISABLE
150150
} FunctionalState;
151151
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
152152

153-
typedef enum
153+
typedef enum
154154
{
155-
ERROR = 0,
155+
ERROR = 0,
156156
SUCCESS = !ERROR
157157
} ErrorStatus;
158158

@@ -178,13 +178,13 @@ typedef enum
178178

179179
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
180180

181-
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
181+
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
182182

183183

184184
/**
185185
* @}
186186
*/
187-
187+
188188
#if defined (USE_HAL_DRIVER)
189189
#include "stm32f2xx_hal.h"
190190
#endif /* USE_HAL_DRIVER */
@@ -202,7 +202,7 @@ typedef enum
202202
/**
203203
* @}
204204
*/
205-
205+
206206

207207

208208

board/inc/stm32f2xx_hal_def.h

+23-23
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @author MCD Application Team
55
* @version V1.1.3
66
* @date 29-June-2016
7-
* @brief This file contains HAL common defines, enumeration, macros and
8-
* structures definitions.
7+
* @brief This file contains HAL common defines, enumeration, macros and
8+
* structures definitions.
99
******************************************************************************
1010
* @attention
1111
*
@@ -51,24 +51,24 @@
5151

5252
/* Exported types ------------------------------------------------------------*/
5353

54-
/**
55-
* @brief HAL Status structures definition
56-
*/
57-
typedef enum
54+
/**
55+
* @brief HAL Status structures definition
56+
*/
57+
typedef enum
5858
{
5959
HAL_OK = 0x00U,
6060
HAL_ERROR = 0x01U,
6161
HAL_BUSY = 0x02U,
6262
HAL_TIMEOUT = 0x03U
6363
} HAL_StatusTypeDef;
6464

65-
/**
66-
* @brief HAL Lock structures definition
65+
/**
66+
* @brief HAL Lock structures definition
6767
*/
68-
typedef enum
68+
typedef enum
6969
{
7070
HAL_UNLOCKED = 0x00U,
71-
HAL_LOCKED = 0x01U
71+
HAL_LOCKED = 0x01U
7272
} HAL_LockTypeDef;
7373

7474
/* Exported macro ------------------------------------------------------------*/
@@ -84,14 +84,14 @@ typedef enum
8484
} while(0)
8585

8686
#define UNUSED(x) ((void)(x))
87-
87+
8888
/** @brief Reset the Handle's State field.
8989
* @param __HANDLE__: specifies the Peripheral Handle.
90-
* @note This macro can be used for the following purpose:
90+
* @note This macro can be used for the following purpose:
9191
* - When the Handle is declared as local variable; before passing it as parameter
92-
* to HAL_PPP_Init() for the first time, it is mandatory to use this macro
92+
* to HAL_PPP_Init() for the first time, it is mandatory to use this macro
9393
* to set to 0 the Handle's "State" field.
94-
* Otherwise, "State" field may have any random value and the first time the function
94+
* Otherwise, "State" field may have any random value and the first time the function
9595
* HAL_PPP_Init() is called, the low level hardware initialization will be missed
9696
* (i.e. HAL_PPP_MspInit() will not be executed).
9797
* - When there is a need to reconfigure the low level hardware: instead of calling
@@ -133,34 +133,34 @@ typedef enum
133133
#endif /* __packed */
134134
#endif /* __GNUC__ */
135135

136-
136+
137137
/* Macro to get variable aligned on 4-bytes, for __ICCARM__ the directive "#pragma data_alignment=4" must be used instead */
138138
#if defined (__GNUC__) /* GNU Compiler */
139139
#ifndef __ALIGN_END
140140
#define __ALIGN_END __attribute__ ((aligned (4)))
141141
#endif /* __ALIGN_END */
142-
#ifndef __ALIGN_BEGIN
142+
#ifndef __ALIGN_BEGIN
143143
#define __ALIGN_BEGIN
144144
#endif /* __ALIGN_BEGIN */
145145
#else
146146
#ifndef __ALIGN_END
147147
#define __ALIGN_END
148148
#endif /* __ALIGN_END */
149-
#ifndef __ALIGN_BEGIN
149+
#ifndef __ALIGN_BEGIN
150150
#if defined (__CC_ARM) /* ARM Compiler */
151-
#define __ALIGN_BEGIN __align(4)
151+
#define __ALIGN_BEGIN __align(4)
152152
#elif defined (__ICCARM__) /* IAR Compiler */
153-
#define __ALIGN_BEGIN
153+
#define __ALIGN_BEGIN
154154
#endif /* __CC_ARM */
155155
#endif /* __ALIGN_BEGIN */
156156
#endif /* __GNUC__ */
157157

158-
/**
158+
/**
159159
* @brief __NOINLINE definition
160-
*/
160+
*/
161161
#if defined ( __CC_ARM ) || defined ( __GNUC__ )
162-
/* ARM & GNUCompiler
163-
----------------
162+
/* ARM & GNUCompiler
163+
----------------
164164
*/
165165
#define __NOINLINE __attribute__ ( (noinline) )
166166

0 commit comments

Comments
 (0)