|
26 | 26 | #define STM32L4xx_HAL_CONF_H
|
27 | 27 |
|
28 | 28 | #ifdef __cplusplus
|
29 |
| - extern "C" { |
| 29 | +extern "C" { |
30 | 30 | #endif
|
31 | 31 |
|
32 | 32 | /* Exported types ------------------------------------------------------------*/
|
|
94 | 94 | * This value is used by the RCC HAL module to compute the system frequency
|
95 | 95 | * (when HSE is used as system clock source, directly or through the PLL).
|
96 | 96 | */
|
97 |
| -#if !defined (HSE_VALUE) |
| 97 | +#if !defined(HSE_VALUE) |
98 | 98 | #define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
|
99 | 99 | #endif /* HSE_VALUE */
|
100 | 100 |
|
101 |
| -#if !defined (HSE_STARTUP_TIMEOUT) |
| 101 | +#if !defined(HSE_STARTUP_TIMEOUT) |
102 | 102 | #define HSE_STARTUP_TIMEOUT 100U /*!< Time out for HSE start up, in ms */
|
103 | 103 | #endif /* HSE_STARTUP_TIMEOUT */
|
104 | 104 |
|
105 | 105 | /**
|
106 | 106 | * @brief Internal Multiple Speed oscillator (MSI) default value.
|
107 | 107 | * This value is the default MSI range value after Reset.
|
108 | 108 | */
|
109 |
| -#if !defined (MSI_VALUE) |
| 109 | +#if !defined(MSI_VALUE) |
110 | 110 | #define MSI_VALUE 4000000U /*!< Value of the Internal oscillator in Hz*/
|
111 | 111 | #endif /* MSI_VALUE */
|
112 | 112 |
|
|
115 | 115 | * This value is used by the RCC HAL module to compute the system frequency
|
116 | 116 | * (when HSI is used as system clock source, directly or through the PLL).
|
117 | 117 | */
|
118 |
| -#if !defined (HSI_VALUE) |
| 118 | +#if !defined(HSI_VALUE) |
119 | 119 | #define HSI_VALUE 16000000U /*!< Value of the Internal oscillator in Hz*/
|
120 | 120 | #endif /* HSI_VALUE */
|
121 | 121 |
|
|
126 | 126 | * When the CRS is not used, the HSI48 RC oscillator runs on it default frequency
|
127 | 127 | * which is subject to manufacturing process variations.
|
128 | 128 | */
|
129 |
| -#if !defined (HSI48_VALUE) |
| 129 | +#if !defined(HSI48_VALUE) |
130 | 130 | #define HSI48_VALUE 48000000U /*!< Value of the Internal High Speed oscillator for USB FS/SDMMC/RNG in Hz.
|
131 | 131 | The real value my vary depending on manufacturing process variations.*/
|
132 | 132 | #endif /* HSI48_VALUE */
|
133 | 133 |
|
134 | 134 | /**
|
135 | 135 | * @brief Internal Low Speed oscillator (LSI) value.
|
136 | 136 | */
|
137 |
| -#if !defined (LSI_VALUE) |
| 137 | +#if !defined(LSI_VALUE) |
138 | 138 | #define LSI_VALUE 32000U /*!< LSI Typical Value in Hz*/
|
139 | 139 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
|
140 | 140 | The real value may vary depending on the variations
|
|
143 | 143 | * @brief External Low Speed oscillator (LSE) value.
|
144 | 144 | * This value is used by the UART, RTC HAL module to compute the system frequency
|
145 | 145 | */
|
146 |
| -#if !defined (LSE_VALUE) |
| 146 | +#if !defined(LSE_VALUE) |
147 | 147 | #define LSE_VALUE 32768U /*!< Value of the External oscillator in Hz*/
|
148 | 148 | #endif /* LSE_VALUE */
|
149 | 149 |
|
150 |
| -#if !defined (LSE_STARTUP_TIMEOUT) |
| 150 | +#if !defined(LSE_STARTUP_TIMEOUT) |
151 | 151 | #define LSE_STARTUP_TIMEOUT 5000U /*!< Time out for LSE start up, in ms */
|
152 | 152 | #endif /* HSE_STARTUP_TIMEOUT */
|
153 | 153 |
|
|
156 | 156 | * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source
|
157 | 157 | * frequency.
|
158 | 158 | */
|
159 |
| -#if !defined (EXTERNAL_SAI1_CLOCK_VALUE) |
| 159 | +#if !defined(EXTERNAL_SAI1_CLOCK_VALUE) |
160 | 160 | #define EXTERNAL_SAI1_CLOCK_VALUE 48000U /*!< Value of the SAI1 External clock source in Hz*/
|
161 | 161 | #endif /* EXTERNAL_SAI1_CLOCK_VALUE */
|
162 | 162 |
|
|
165 | 165 | * This value is used by the RCC HAL module to compute the SAI1 & SAI2 clock source
|
166 | 166 | * frequency.
|
167 | 167 | */
|
168 |
| -#if !defined (EXTERNAL_SAI2_CLOCK_VALUE) |
| 168 | +#if !defined(EXTERNAL_SAI2_CLOCK_VALUE) |
169 | 169 | #define EXTERNAL_SAI2_CLOCK_VALUE 48000U /*!< Value of the SAI2 External clock source in Hz*/
|
170 | 170 | #endif /* EXTERNAL_SAI2_CLOCK_VALUE */
|
171 | 171 |
|
|
457 | 457 | */
|
458 | 458 | #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
|
459 | 459 | /* Exported functions ------------------------------------------------------- */
|
460 |
| - void assert_failed(uint8_t *file, uint32_t line); |
| 460 | +void assert_failed(uint8_t *file, uint32_t line); |
461 | 461 | #else
|
462 | 462 | #define assert_param(expr) ((void)0U)
|
463 | 463 | #endif /* USE_FULL_ASSERT */
|
|
0 commit comments