Skip to content

Commit 9b179ff

Browse files
committed
style(swan_r5): pre-commit whitespace style changes
1 parent 295cc18 commit 9b179ff

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

ports/stm/hal_conf/stm32l4xx_hal_conf.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define STM32L4xx_HAL_CONF_H
2727

2828
#ifdef __cplusplus
29-
extern "C" {
29+
extern "C" {
3030
#endif
3131

3232
/* Exported types ------------------------------------------------------------*/
@@ -94,19 +94,19 @@
9494
* This value is used by the RCC HAL module to compute the system frequency
9595
* (when HSE is used as system clock source, directly or through the PLL).
9696
*/
97-
#if !defined (HSE_VALUE)
97+
#if !defined(HSE_VALUE)
9898
#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
9999
#endif /* HSE_VALUE */
100100

101-
#if !defined (HSE_STARTUP_TIMEOUT)
101+
#if !defined(HSE_STARTUP_TIMEOUT)
102102
#define HSE_STARTUP_TIMEOUT 100U /*!< Time out for HSE start up, in ms */
103103
#endif /* HSE_STARTUP_TIMEOUT */
104104

105105
/**
106106
* @brief Internal Multiple Speed oscillator (MSI) default value.
107107
* This value is the default MSI range value after Reset.
108108
*/
109-
#if !defined (MSI_VALUE)
109+
#if !defined(MSI_VALUE)
110110
#define MSI_VALUE 4000000U /*!< Value of the Internal oscillator in Hz*/
111111
#endif /* MSI_VALUE */
112112

@@ -115,7 +115,7 @@
115115
* This value is used by the RCC HAL module to compute the system frequency
116116
* (when HSI is used as system clock source, directly or through the PLL).
117117
*/
118-
#if !defined (HSI_VALUE)
118+
#if !defined(HSI_VALUE)
119119
#define HSI_VALUE 16000000U /*!< Value of the Internal oscillator in Hz*/
120120
#endif /* HSI_VALUE */
121121

@@ -126,15 +126,15 @@
126126
* When the CRS is not used, the HSI48 RC oscillator runs on it default frequency
127127
* which is subject to manufacturing process variations.
128128
*/
129-
#if !defined (HSI48_VALUE)
129+
#if !defined(HSI48_VALUE)
130130
#define HSI48_VALUE 48000000U /*!< Value of the Internal High Speed oscillator for USB FS/SDMMC/RNG in Hz.
131131
The real value my vary depending on manufacturing process variations.*/
132132
#endif /* HSI48_VALUE */
133133

134134
/**
135135
* @brief Internal Low Speed oscillator (LSI) value.
136136
*/
137-
#if !defined (LSI_VALUE)
137+
#if !defined(LSI_VALUE)
138138
#define LSI_VALUE 32000U /*!< LSI Typical Value in Hz*/
139139
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
140140
The real value may vary depending on the variations
@@ -143,11 +143,11 @@
143143
* @brief External Low Speed oscillator (LSE) value.
144144
* This value is used by the UART, RTC HAL module to compute the system frequency
145145
*/
146-
#if !defined (LSE_VALUE)
146+
#if !defined(LSE_VALUE)
147147
#define LSE_VALUE 32768U /*!< Value of the External oscillator in Hz*/
148148
#endif /* LSE_VALUE */
149149

150-
#if !defined (LSE_STARTUP_TIMEOUT)
150+
#if !defined(LSE_STARTUP_TIMEOUT)
151151
#define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */
152152
#endif /* HSE_STARTUP_TIMEOUT */
153153

@@ -156,7 +156,7 @@
156156
* This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source
157157
* frequency.
158158
*/
159-
#if !defined (EXTERNAL_SAI1_CLOCK_VALUE)
159+
#if !defined(EXTERNAL_SAI1_CLOCK_VALUE)
160160
#define EXTERNAL_SAI1_CLOCK_VALUE 48000U /*!< Value of the SAI1 External clock source in Hz*/
161161
#endif /* EXTERNAL_SAI1_CLOCK_VALUE */
162162

@@ -165,7 +165,7 @@
165165
* This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source
166166
* frequency.
167167
*/
168-
#if !defined (EXTERNAL_SAI2_CLOCK_VALUE)
168+
#if !defined(EXTERNAL_SAI2_CLOCK_VALUE)
169169
#define EXTERNAL_SAI2_CLOCK_VALUE 48000U /*!< Value of the SAI2 External clock source in Hz*/
170170
#endif /* EXTERNAL_SAI2_CLOCK_VALUE */
171171

@@ -457,7 +457,7 @@
457457
*/
458458
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
459459
/* Exported functions ------------------------------------------------------- */
460-
void assert_failed(uint8_t *file, uint32_t line);
460+
void assert_failed(uint8_t *file, uint32_t line);
461461
#else
462462
#define assert_param(expr) ((void)0U)
463463
#endif /* USE_FULL_ASSERT */

ports/stm/supervisor/usb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ STATIC void init_usb_vbus_sense(void) {
6969

7070
void init_usb_hardware(void) {
7171

72-
/* Enable USB power on Pwrctrl CR2 register */
73-
#ifdef PWR_CR2_USV
72+
/* Enable USB power on Pwrctrl CR2 register */
73+
#ifdef PWR_CR2_USV
7474
HAL_PWREx_EnableVddUSB();
75-
#endif
75+
#endif
7676

7777
// TODO: if future chips overload this with options, move to peripherals management.
7878

@@ -145,7 +145,7 @@ void init_usb_hardware(void) {
145145
#endif
146146

147147

148-
init_usb_vbus_sense();
148+
init_usb_vbus_sense();
149149
}
150150

151151
void OTG_FS_IRQHandler(void) {

0 commit comments

Comments
 (0)