@@ -44,6 +44,7 @@ extern "C" {
44
44
#define HAL_CRYP_MODULE_ENABLED
45
45
#define HAL_DAC_MODULE_ENABLED
46
46
#define HAL_DMA_MODULE_ENABLED
47
+ #define HAL_EXTI_MODULE_ENABLED
47
48
#define HAL_FIREWALL_MODULE_ENABLED
48
49
#define HAL_FLASH_MODULE_ENABLED
49
50
#define HAL_GPIO_MODULE_ENABLED
@@ -76,19 +77,19 @@ extern "C" {
76
77
* (when HSE is used as system clock source, directly or through the PLL).
77
78
*/
78
79
#if !defined (HSE_VALUE )
79
- #define HSE_VALUE ((uint32_t) 8000000U) /*!< Value of the External oscillator in Hz */
80
+ #define HSE_VALUE (8000000U) /*!< Value of the External oscillator in Hz */
80
81
#endif /* HSE_VALUE */
81
82
82
83
#if !defined (HSE_STARTUP_TIMEOUT )
83
- #define HSE_STARTUP_TIMEOUT ((uint32_t) 100U) /*!< Time out for HSE start up, in ms */
84
+ #define HSE_STARTUP_TIMEOUT (100U) /*!< Time out for HSE start up, in ms */
84
85
#endif /* HSE_STARTUP_TIMEOUT */
85
86
86
87
/**
87
88
* @brief Internal Multiple Speed oscillator (MSI) default value.
88
89
* This value is the default MSI range value after Reset.
89
90
*/
90
91
#if !defined (MSI_VALUE )
91
- #define MSI_VALUE ((uint32_t) 2097152U) /*!< Value of the Internal oscillator in Hz*/
92
+ #define MSI_VALUE (2097152U) /*!< Value of the Internal oscillator in Hz*/
92
93
#endif /* MSI_VALUE */
93
94
94
95
/**
@@ -97,14 +98,14 @@ extern "C" {
97
98
* (when HSI is used as system clock source, directly or through the PLL).
98
99
*/
99
100
#if !defined (HSI_VALUE )
100
- #define HSI_VALUE ((uint32_t) 16000000U) /*!< Value of the Internal oscillator in Hz*/
101
+ #define HSI_VALUE (16000000U) /*!< Value of the Internal oscillator in Hz*/
101
102
#endif /* HSI_VALUE */
102
103
103
104
/**
104
105
* @brief Internal High Speed oscillator for USB (HSI48) value.
105
106
*/
106
107
#if !defined (HSI48_VALUE )
107
- #define HSI48_VALUE ((uint32_t) 48000000U) /*!< Value of the Internal High Speed oscillator for USB in Hz.
108
+ #define HSI48_VALUE (48000000U) /*!< Value of the Internal High Speed oscillator for USB in Hz.
108
109
The real value may vary depending on the variations
109
110
in voltage and temperature. */
110
111
#endif /* HSI48_VALUE */
@@ -113,25 +114,26 @@ extern "C" {
113
114
* @brief Internal Low Speed oscillator (LSI) value.
114
115
*/
115
116
#if !defined (LSI_VALUE )
116
- #define LSI_VALUE ((uint32_t) 37000U) /*!< LSI Typical Value in Hz*/
117
+ #define LSI_VALUE (37000U) /*!< LSI Typical Value in Hz*/
117
118
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
118
- The real value may vary depending on the variations
119
- in voltage and temperature.*/
119
+ The real value may vary depending on the variations
120
+ in voltage and temperature.*/
120
121
/**
121
122
* @brief External Low Speed oscillator (LSE) value.
122
123
* This value is used by the UART, RTC HAL module to compute the system frequency
123
124
*/
124
125
#if !defined (LSE_VALUE )
125
- #define LSE_VALUE ((uint32_t) 32768U) /*!< Value of the External oscillator in Hz*/
126
+ #define LSE_VALUE (32768U) /*!< Value of the External oscillator in Hz*/
126
127
#endif /* LSE_VALUE */
127
128
128
129
/**
129
130
* @brief Time out for LSE start up value in ms.
130
131
*/
131
132
#if !defined (LSE_STARTUP_TIMEOUT )
132
- #define LSE_STARTUP_TIMEOUT ((uint32_t) 5000U) /*!< Time out for LSE start up, in ms */
133
+ #define LSE_STARTUP_TIMEOUT ( 5000U) /*!< Time out for LSE start up, in ms */
133
134
#endif /* LSE_STARTUP_TIMEOUT */
134
135
136
+
135
137
/* Tip: To avoid modifying this file each time you need to use different HSE,
136
138
=== you can define the HSE value in your toolchain compiler preprocessor. */
137
139
@@ -223,6 +225,10 @@ in voltage and temperature.*/
223
225
#include "stm32l0xx_hal_dma.h"
224
226
#endif /* HAL_DMA_MODULE_ENABLED */
225
227
228
+ #ifdef HAL_EXTI_MODULE_ENABLED
229
+ #include "stm32l0xx_hal_exti.h"
230
+ #endif /* HAL_EXTI_MODULE_ENABLED */
231
+
226
232
#ifdef HAL_CORTEX_MODULE_ENABLED
227
233
#include "stm32l0xx_hal_cortex.h"
228
234
#endif /* HAL_CORTEX_MODULE_ENABLED */
@@ -285,7 +291,6 @@ in voltage and temperature.*/
285
291
286
292
#ifdef HAL_RTC_MODULE_ENABLED
287
293
#include "stm32l0xx_hal_rtc.h"
288
-
289
294
#endif /* HAL_RTC_MODULE_ENABLED */
290
295
291
296
#ifdef HAL_SPI_MODULE_ENABLED
0 commit comments