mikroSDK Reference Manual
stm32_hal_legacy.h
Go to the documentation of this file.
1
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef STM32_HAL_LEGACY
23#define STM32_HAL_LEGACY
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30/* Exported types ------------------------------------------------------------*/
31/* Exported constants --------------------------------------------------------*/
32
36#define AES_FLAG_RDERR CRYP_FLAG_RDERR
37#define AES_FLAG_WRERR CRYP_FLAG_WRERR
38#define AES_CLEARFLAG_CCF CRYP_CLEARFLAG_CCF
39#define AES_CLEARFLAG_RDERR CRYP_CLEARFLAG_RDERR
40#define AES_CLEARFLAG_WRERR CRYP_CLEARFLAG_WRERR
48#define ADC_RESOLUTION12b ADC_RESOLUTION_12B
49#define ADC_RESOLUTION10b ADC_RESOLUTION_10B
50#define ADC_RESOLUTION8b ADC_RESOLUTION_8B
51#define ADC_RESOLUTION6b ADC_RESOLUTION_6B
52#define OVR_DATA_OVERWRITTEN ADC_OVR_DATA_OVERWRITTEN
53#define OVR_DATA_PRESERVED ADC_OVR_DATA_PRESERVED
54#define EOC_SINGLE_CONV ADC_EOC_SINGLE_CONV
55#define EOC_SEQ_CONV ADC_EOC_SEQ_CONV
56#define EOC_SINGLE_SEQ_CONV ADC_EOC_SINGLE_SEQ_CONV
57#define REGULAR_GROUP ADC_REGULAR_GROUP
58#define INJECTED_GROUP ADC_INJECTED_GROUP
59#define REGULAR_INJECTED_GROUP ADC_REGULAR_INJECTED_GROUP
60#define AWD_EVENT ADC_AWD_EVENT
61#define AWD1_EVENT ADC_AWD1_EVENT
62#define AWD2_EVENT ADC_AWD2_EVENT
63#define AWD3_EVENT ADC_AWD3_EVENT
64#define OVR_EVENT ADC_OVR_EVENT
65#define JQOVF_EVENT ADC_JQOVF_EVENT
66#define ALL_CHANNELS ADC_ALL_CHANNELS
67#define REGULAR_CHANNELS ADC_REGULAR_CHANNELS
68#define INJECTED_CHANNELS ADC_INJECTED_CHANNELS
69#define SYSCFG_FLAG_SENSOR_ADC ADC_FLAG_SENSOR
70#define SYSCFG_FLAG_VREF_ADC ADC_FLAG_VREFINT
71#define ADC_CLOCKPRESCALER_PCLK_DIV1 ADC_CLOCK_SYNC_PCLK_DIV1
72#define ADC_CLOCKPRESCALER_PCLK_DIV2 ADC_CLOCK_SYNC_PCLK_DIV2
73#define ADC_CLOCKPRESCALER_PCLK_DIV4 ADC_CLOCK_SYNC_PCLK_DIV4
74#define ADC_CLOCKPRESCALER_PCLK_DIV6 ADC_CLOCK_SYNC_PCLK_DIV6
75#define ADC_CLOCKPRESCALER_PCLK_DIV8 ADC_CLOCK_SYNC_PCLK_DIV8
76#define ADC_EXTERNALTRIG0_T6_TRGO ADC_EXTERNALTRIGCONV_T6_TRGO
77#define ADC_EXTERNALTRIG1_T21_CC2 ADC_EXTERNALTRIGCONV_T21_CC2
78#define ADC_EXTERNALTRIG2_T2_TRGO ADC_EXTERNALTRIGCONV_T2_TRGO
79#define ADC_EXTERNALTRIG3_T2_CC4 ADC_EXTERNALTRIGCONV_T2_CC4
80#define ADC_EXTERNALTRIG4_T22_TRGO ADC_EXTERNALTRIGCONV_T22_TRGO
81#define ADC_EXTERNALTRIG7_EXT_IT11 ADC_EXTERNALTRIGCONV_EXT_IT11
82#define ADC_CLOCK_ASYNC ADC_CLOCK_ASYNC_DIV1
83#define ADC_EXTERNALTRIG_EDGE_NONE ADC_EXTERNALTRIGCONVEDGE_NONE
84#define ADC_EXTERNALTRIG_EDGE_RISING ADC_EXTERNALTRIGCONVEDGE_RISING
85#define ADC_EXTERNALTRIG_EDGE_FALLING ADC_EXTERNALTRIGCONVEDGE_FALLING
86#define ADC_EXTERNALTRIG_EDGE_RISINGFALLING ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING
87#define ADC_SAMPLETIME_2CYCLE_5 ADC_SAMPLETIME_2CYCLES_5
88
89#define HAL_ADC_STATE_BUSY_REG HAL_ADC_STATE_REG_BUSY
90#define HAL_ADC_STATE_BUSY_INJ HAL_ADC_STATE_INJ_BUSY
91#define HAL_ADC_STATE_EOC_REG HAL_ADC_STATE_REG_EOC
92#define HAL_ADC_STATE_EOC_INJ HAL_ADC_STATE_INJ_EOC
93#define HAL_ADC_STATE_ERROR HAL_ADC_STATE_ERROR_INTERNAL
94#define HAL_ADC_STATE_BUSY HAL_ADC_STATE_BUSY_INTERNAL
95#define HAL_ADC_STATE_AWD HAL_ADC_STATE_AWD1
96
97#if defined(STM32H7)
98#define ADC_CHANNEL_VBAT_DIV4 ADC_CHANNEL_VBAT
99#endif /* STM32H7 */
108#define __HAL_CEC_GET_IT __HAL_CEC_GET_FLAG
109
117#define COMP_WINDOWMODE_DISABLED COMP_WINDOWMODE_DISABLE
118#define COMP_WINDOWMODE_ENABLED COMP_WINDOWMODE_ENABLE
119#define COMP_EXTI_LINE_COMP1_EVENT COMP_EXTI_LINE_COMP1
120#define COMP_EXTI_LINE_COMP2_EVENT COMP_EXTI_LINE_COMP2
121#define COMP_EXTI_LINE_COMP3_EVENT COMP_EXTI_LINE_COMP3
122#define COMP_EXTI_LINE_COMP4_EVENT COMP_EXTI_LINE_COMP4
123#define COMP_EXTI_LINE_COMP5_EVENT COMP_EXTI_LINE_COMP5
124#define COMP_EXTI_LINE_COMP6_EVENT COMP_EXTI_LINE_COMP6
125#define COMP_EXTI_LINE_COMP7_EVENT COMP_EXTI_LINE_COMP7
126#if defined(STM32L0)
127#define COMP_LPTIMCONNECTION_ENABLED ((uint32_t)0x00000003U)
128#endif
129#define COMP_OUTPUT_COMP6TIM2OCREFCLR COMP_OUTPUT_COMP6_TIM2OCREFCLR
130#if defined(STM32F373xC) || defined(STM32F378xx)
131#define COMP_OUTPUT_TIM3IC1 COMP_OUTPUT_COMP1_TIM3IC1
132#define COMP_OUTPUT_TIM3OCREFCLR COMP_OUTPUT_COMP1_TIM3OCREFCLR
133#endif /* STM32F373xC || STM32F378xx */
134
135#if defined(STM32L0) || defined(STM32L4)
136#define COMP_WINDOWMODE_ENABLE COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON
137
138#define COMP_NONINVERTINGINPUT_IO1 COMP_INPUT_PLUS_IO1
139#define COMP_NONINVERTINGINPUT_IO2 COMP_INPUT_PLUS_IO2
140#define COMP_NONINVERTINGINPUT_IO3 COMP_INPUT_PLUS_IO3
141#define COMP_NONINVERTINGINPUT_IO4 COMP_INPUT_PLUS_IO4
142#define COMP_NONINVERTINGINPUT_IO5 COMP_INPUT_PLUS_IO5
143#define COMP_NONINVERTINGINPUT_IO6 COMP_INPUT_PLUS_IO6
144
145#define COMP_INVERTINGINPUT_1_4VREFINT COMP_INPUT_MINUS_1_4VREFINT
146#define COMP_INVERTINGINPUT_1_2VREFINT COMP_INPUT_MINUS_1_2VREFINT
147#define COMP_INVERTINGINPUT_3_4VREFINT COMP_INPUT_MINUS_3_4VREFINT
148#define COMP_INVERTINGINPUT_VREFINT COMP_INPUT_MINUS_VREFINT
149#define COMP_INVERTINGINPUT_DAC1_CH1 COMP_INPUT_MINUS_DAC1_CH1
150#define COMP_INVERTINGINPUT_DAC1_CH2 COMP_INPUT_MINUS_DAC1_CH2
151#define COMP_INVERTINGINPUT_DAC1 COMP_INPUT_MINUS_DAC1_CH1
152#define COMP_INVERTINGINPUT_DAC2 COMP_INPUT_MINUS_DAC1_CH2
153#define COMP_INVERTINGINPUT_IO1 COMP_INPUT_MINUS_IO1
154#if defined(STM32L0)
155/* Issue fixed on STM32L0 COMP driver: only 2 dedicated IO (IO1 and IO2), */
156/* IO2 was wrongly assigned to IO shared with DAC and IO3 was corresponding */
157/* to the second dedicated IO (only for COMP2). */
158#define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_DAC1_CH2
159#define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO2
160#else
161#define COMP_INVERTINGINPUT_IO2 COMP_INPUT_MINUS_IO2
162#define COMP_INVERTINGINPUT_IO3 COMP_INPUT_MINUS_IO3
163#endif
164#define COMP_INVERTINGINPUT_IO4 COMP_INPUT_MINUS_IO4
165#define COMP_INVERTINGINPUT_IO5 COMP_INPUT_MINUS_IO5
166
167#define COMP_OUTPUTLEVEL_LOW COMP_OUTPUT_LEVEL_LOW
168#define COMP_OUTPUTLEVEL_HIGH COMP_OUTPUT_LEVEL_HIGH
169
170/* Note: Literal "COMP_FLAG_LOCK" kept for legacy purpose. */
171/* To check COMP lock state, use macro "__HAL_COMP_IS_LOCKED()". */
172#if defined(COMP_CSR_LOCK)
173#define COMP_FLAG_LOCK COMP_CSR_LOCK
174#elif defined(COMP_CSR_COMP1LOCK)
175#define COMP_FLAG_LOCK COMP_CSR_COMP1LOCK
176#elif defined(COMP_CSR_COMPxLOCK)
177#define COMP_FLAG_LOCK COMP_CSR_COMPxLOCK
178#endif
179
180#if defined(STM32L4)
181#define COMP_BLANKINGSRCE_TIM1OC5 COMP_BLANKINGSRC_TIM1_OC5_COMP1
182#define COMP_BLANKINGSRCE_TIM2OC3 COMP_BLANKINGSRC_TIM2_OC3_COMP1
183#define COMP_BLANKINGSRCE_TIM3OC3 COMP_BLANKINGSRC_TIM3_OC3_COMP1
184#define COMP_BLANKINGSRCE_TIM3OC4 COMP_BLANKINGSRC_TIM3_OC4_COMP2
185#define COMP_BLANKINGSRCE_TIM8OC5 COMP_BLANKINGSRC_TIM8_OC5_COMP2
186#define COMP_BLANKINGSRCE_TIM15OC1 COMP_BLANKINGSRC_TIM15_OC1_COMP2
187#define COMP_BLANKINGSRCE_NONE COMP_BLANKINGSRC_NONE
188#endif
189
190#if defined(STM32L0)
191#define COMP_MODE_HIGHSPEED COMP_POWERMODE_MEDIUMSPEED
192#define COMP_MODE_LOWSPEED COMP_POWERMODE_ULTRALOWPOWER
193#else
194#define COMP_MODE_HIGHSPEED COMP_POWERMODE_HIGHSPEED
195#define COMP_MODE_MEDIUMSPEED COMP_POWERMODE_MEDIUMSPEED
196#define COMP_MODE_LOWPOWER COMP_POWERMODE_LOWPOWER
197#define COMP_MODE_ULTRALOWPOWER COMP_POWERMODE_ULTRALOWPOWER
198#endif
199
200#endif
208#define __HAL_CORTEX_SYSTICKCLK_CONFIG HAL_SYSTICK_CLKSourceConfig
217#define CRC_OUTPUTDATA_INVERSION_DISABLED CRC_OUTPUTDATA_INVERSION_DISABLE
218#define CRC_OUTPUTDATA_INVERSION_ENABLED CRC_OUTPUTDATA_INVERSION_ENABLE
219
228#define DAC1_CHANNEL_1 DAC_CHANNEL_1
229#define DAC1_CHANNEL_2 DAC_CHANNEL_2
230#define DAC2_CHANNEL_1 DAC_CHANNEL_1
231#define DAC_WAVE_NONE 0x00000000U
232#define DAC_WAVE_NOISE DAC_CR_WAVE1_0
233#define DAC_WAVE_TRIANGLE DAC_CR_WAVE1_1
234#define DAC_WAVEGENERATION_NONE DAC_WAVE_NONE
235#define DAC_WAVEGENERATION_NOISE DAC_WAVE_NOISE
236#define DAC_WAVEGENERATION_TRIANGLE DAC_WAVE_TRIANGLE
237
238#if defined(STM32G4) || defined(STM32H7)
239#define DAC_CHIPCONNECT_DISABLE DAC_CHIPCONNECT_EXTERNAL
240#define DAC_CHIPCONNECT_ENABLE DAC_CHIPCONNECT_INTERNAL
241#endif
242
243#if defined(STM32L1) || defined(STM32L4) || defined(STM32G0) || defined(STM32L5) || defined(STM32H7) || defined(STM32F4) || defined(STM32G4)
244#define HAL_DAC_MSP_INIT_CB_ID HAL_DAC_MSPINIT_CB_ID
245#define HAL_DAC_MSP_DEINIT_CB_ID HAL_DAC_MSPDEINIT_CB_ID
246#endif
247
255#define HAL_REMAPDMA_ADC_DMA_CH2 DMA_REMAP_ADC_DMA_CH2
256#define HAL_REMAPDMA_USART1_TX_DMA_CH4 DMA_REMAP_USART1_TX_DMA_CH4
257#define HAL_REMAPDMA_USART1_RX_DMA_CH5 DMA_REMAP_USART1_RX_DMA_CH5
258#define HAL_REMAPDMA_TIM16_DMA_CH4 DMA_REMAP_TIM16_DMA_CH4
259#define HAL_REMAPDMA_TIM17_DMA_CH2 DMA_REMAP_TIM17_DMA_CH2
260#define HAL_REMAPDMA_USART3_DMA_CH32 DMA_REMAP_USART3_DMA_CH32
261#define HAL_REMAPDMA_TIM16_DMA_CH6 DMA_REMAP_TIM16_DMA_CH6
262#define HAL_REMAPDMA_TIM17_DMA_CH7 DMA_REMAP_TIM17_DMA_CH7
263#define HAL_REMAPDMA_SPI2_DMA_CH67 DMA_REMAP_SPI2_DMA_CH67
264#define HAL_REMAPDMA_USART2_DMA_CH67 DMA_REMAP_USART2_DMA_CH67
265#define HAL_REMAPDMA_I2C1_DMA_CH76 DMA_REMAP_I2C1_DMA_CH76
266#define HAL_REMAPDMA_TIM1_DMA_CH6 DMA_REMAP_TIM1_DMA_CH6
267#define HAL_REMAPDMA_TIM2_DMA_CH7 DMA_REMAP_TIM2_DMA_CH7
268#define HAL_REMAPDMA_TIM3_DMA_CH6 DMA_REMAP_TIM3_DMA_CH6
269
270#define IS_HAL_REMAPDMA IS_DMA_REMAP
271#define __HAL_REMAPDMA_CHANNEL_ENABLE __HAL_DMA_REMAP_CHANNEL_ENABLE
272#define __HAL_REMAPDMA_CHANNEL_DISABLE __HAL_DMA_REMAP_CHANNEL_DISABLE
273
274#if defined(STM32L4)
275
276#define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0
277#define HAL_DMAMUX1_REQUEST_GEN_EXTI1 HAL_DMAMUX1_REQ_GEN_EXTI1
278#define HAL_DMAMUX1_REQUEST_GEN_EXTI2 HAL_DMAMUX1_REQ_GEN_EXTI2
279#define HAL_DMAMUX1_REQUEST_GEN_EXTI3 HAL_DMAMUX1_REQ_GEN_EXTI3
280#define HAL_DMAMUX1_REQUEST_GEN_EXTI4 HAL_DMAMUX1_REQ_GEN_EXTI4
281#define HAL_DMAMUX1_REQUEST_GEN_EXTI5 HAL_DMAMUX1_REQ_GEN_EXTI5
282#define HAL_DMAMUX1_REQUEST_GEN_EXTI6 HAL_DMAMUX1_REQ_GEN_EXTI6
283#define HAL_DMAMUX1_REQUEST_GEN_EXTI7 HAL_DMAMUX1_REQ_GEN_EXTI7
284#define HAL_DMAMUX1_REQUEST_GEN_EXTI8 HAL_DMAMUX1_REQ_GEN_EXTI8
285#define HAL_DMAMUX1_REQUEST_GEN_EXTI9 HAL_DMAMUX1_REQ_GEN_EXTI9
286#define HAL_DMAMUX1_REQUEST_GEN_EXTI10 HAL_DMAMUX1_REQ_GEN_EXTI10
287#define HAL_DMAMUX1_REQUEST_GEN_EXTI11 HAL_DMAMUX1_REQ_GEN_EXTI11
288#define HAL_DMAMUX1_REQUEST_GEN_EXTI12 HAL_DMAMUX1_REQ_GEN_EXTI12
289#define HAL_DMAMUX1_REQUEST_GEN_EXTI13 HAL_DMAMUX1_REQ_GEN_EXTI13
290#define HAL_DMAMUX1_REQUEST_GEN_EXTI14 HAL_DMAMUX1_REQ_GEN_EXTI14
291#define HAL_DMAMUX1_REQUEST_GEN_EXTI15 HAL_DMAMUX1_REQ_GEN_EXTI15
292#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT
293#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT
294#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT
295#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH3_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH3_EVT
296#define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT
297#define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT
298#define HAL_DMAMUX1_REQUEST_GEN_DSI_TE HAL_DMAMUX1_REQ_GEN_DSI_TE
299#define HAL_DMAMUX1_REQUEST_GEN_DSI_EOT HAL_DMAMUX1_REQ_GEN_DSI_EOT
300#define HAL_DMAMUX1_REQUEST_GEN_DMA2D_EOT HAL_DMAMUX1_REQ_GEN_DMA2D_EOT
301#define HAL_DMAMUX1_REQUEST_GEN_LTDC_IT HAL_DMAMUX1_REQ_GEN_LTDC_IT
302
303#define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT
304#define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING
305#define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING
306#define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING
307
308#if defined(STM32L4R5xx) || defined(STM32L4R9xx) || defined(STM32L4R9xx) || defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx)
309#define DMA_REQUEST_DCMI_PSSI DMA_REQUEST_DCMI
310#endif
311
312#endif /* STM32L4 */
313
314#if defined(STM32G0)
315#define DMA_REQUEST_DAC1_CHANNEL1 DMA_REQUEST_DAC1_CH1
316#define DMA_REQUEST_DAC1_CHANNEL2 DMA_REQUEST_DAC1_CH2
317#define DMA_REQUEST_TIM16_TRIG_COM DMA_REQUEST_TIM16_COM
318#define DMA_REQUEST_TIM17_TRIG_COM DMA_REQUEST_TIM17_COM
319
320#define LL_DMAMUX_REQ_TIM16_TRIG_COM LL_DMAMUX_REQ_TIM16_COM
321#define LL_DMAMUX_REQ_TIM17_TRIG_COM LL_DMAMUX_REQ_TIM17_COM
322#endif
323
324#if defined(STM32H7)
325
326#define DMA_REQUEST_DAC1 DMA_REQUEST_DAC1_CH1
327#define DMA_REQUEST_DAC2 DMA_REQUEST_DAC1_CH2
328
329#define BDMA_REQUEST_LP_UART1_RX BDMA_REQUEST_LPUART1_RX
330#define BDMA_REQUEST_LP_UART1_TX BDMA_REQUEST_LPUART1_TX
331
332#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH0_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT
333#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH1_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT
334#define HAL_DMAMUX1_REQUEST_GEN_DMAMUX1_CH2_EVT HAL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT
335#define HAL_DMAMUX1_REQUEST_GEN_LPTIM1_OUT HAL_DMAMUX1_REQ_GEN_LPTIM1_OUT
336#define HAL_DMAMUX1_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT
337#define HAL_DMAMUX1_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX1_REQ_GEN_LPTIM3_OUT
338#define HAL_DMAMUX1_REQUEST_GEN_EXTI0 HAL_DMAMUX1_REQ_GEN_EXTI0
339#define HAL_DMAMUX1_REQUEST_GEN_TIM12_TRGO HAL_DMAMUX1_REQ_GEN_TIM12_TRGO
340
341#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH0_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT
342#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH1_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT
343#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH2_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT
344#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH3_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT
345#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH4_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT
346#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH5_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT
347#define HAL_DMAMUX2_REQUEST_GEN_DMAMUX2_CH6_EVT HAL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT
348#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP
349#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_WKUP HAL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP
350#define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM2_WKUP
351#define HAL_DMAMUX2_REQUEST_GEN_LPTIM2_OUT HAL_DMAMUX2_REQ_GEN_LPTIM2_OUT
352#define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM3_WKUP
353#define HAL_DMAMUX2_REQUEST_GEN_LPTIM3_OUT HAL_DMAMUX2_REQ_GEN_LPTIM3_OUT
354#define HAL_DMAMUX2_REQUEST_GEN_LPTIM4_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM4_WKUP
355#define HAL_DMAMUX2_REQUEST_GEN_LPTIM5_WKUP HAL_DMAMUX2_REQ_GEN_LPTIM5_WKUP
356#define HAL_DMAMUX2_REQUEST_GEN_I2C4_WKUP HAL_DMAMUX2_REQ_GEN_I2C4_WKUP
357#define HAL_DMAMUX2_REQUEST_GEN_SPI6_WKUP HAL_DMAMUX2_REQ_GEN_SPI6_WKUP
358#define HAL_DMAMUX2_REQUEST_GEN_COMP1_OUT HAL_DMAMUX2_REQ_GEN_COMP1_OUT
359#define HAL_DMAMUX2_REQUEST_GEN_COMP2_OUT HAL_DMAMUX2_REQ_GEN_COMP2_OUT
360#define HAL_DMAMUX2_REQUEST_GEN_RTC_WKUP HAL_DMAMUX2_REQ_GEN_RTC_WKUP
361#define HAL_DMAMUX2_REQUEST_GEN_EXTI0 HAL_DMAMUX2_REQ_GEN_EXTI0
362#define HAL_DMAMUX2_REQUEST_GEN_EXTI2 HAL_DMAMUX2_REQ_GEN_EXTI2
363#define HAL_DMAMUX2_REQUEST_GEN_I2C4_IT_EVT HAL_DMAMUX2_REQ_GEN_I2C4_IT_EVT
364#define HAL_DMAMUX2_REQUEST_GEN_SPI6_IT HAL_DMAMUX2_REQ_GEN_SPI6_IT
365#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_TX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_TX_IT
366#define HAL_DMAMUX2_REQUEST_GEN_LPUART1_RX_IT HAL_DMAMUX2_REQ_GEN_LPUART1_RX_IT
367#define HAL_DMAMUX2_REQUEST_GEN_ADC3_IT HAL_DMAMUX2_REQ_GEN_ADC3_IT
368#define HAL_DMAMUX2_REQUEST_GEN_ADC3_AWD1_OUT HAL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT
369#define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH0_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH0_IT
370#define HAL_DMAMUX2_REQUEST_GEN_BDMA_CH1_IT HAL_DMAMUX2_REQ_GEN_BDMA_CH1_IT
371
372#define HAL_DMAMUX_REQUEST_GEN_NO_EVENT HAL_DMAMUX_REQ_GEN_NO_EVENT
373#define HAL_DMAMUX_REQUEST_GEN_RISING HAL_DMAMUX_REQ_GEN_RISING
374#define HAL_DMAMUX_REQUEST_GEN_FALLING HAL_DMAMUX_REQ_GEN_FALLING
375#define HAL_DMAMUX_REQUEST_GEN_RISING_FALLING HAL_DMAMUX_REQ_GEN_RISING_FALLING
376
377#define DFSDM_FILTER_EXT_TRIG_LPTIM1 DFSDM_FILTER_EXT_TRIG_LPTIM1_OUT
378#define DFSDM_FILTER_EXT_TRIG_LPTIM2 DFSDM_FILTER_EXT_TRIG_LPTIM2_OUT
379#define DFSDM_FILTER_EXT_TRIG_LPTIM3 DFSDM_FILTER_EXT_TRIG_LPTIM3_OUT
380
381#define DAC_TRIGGER_LP1_OUT DAC_TRIGGER_LPTIM1_OUT
382#define DAC_TRIGGER_LP2_OUT DAC_TRIGGER_LPTIM2_OUT
383
384#endif /* STM32H7 */
385
394#define TYPEPROGRAM_BYTE FLASH_TYPEPROGRAM_BYTE
395#define TYPEPROGRAM_HALFWORD FLASH_TYPEPROGRAM_HALFWORD
396#define TYPEPROGRAM_WORD FLASH_TYPEPROGRAM_WORD
397#define TYPEPROGRAM_DOUBLEWORD FLASH_TYPEPROGRAM_DOUBLEWORD
398#define TYPEERASE_SECTORS FLASH_TYPEERASE_SECTORS
399#define TYPEERASE_PAGES FLASH_TYPEERASE_PAGES
400#define TYPEERASE_PAGEERASE FLASH_TYPEERASE_PAGES
401#define TYPEERASE_MASSERASE FLASH_TYPEERASE_MASSERASE
402#define WRPSTATE_DISABLE OB_WRPSTATE_DISABLE
403#define WRPSTATE_ENABLE OB_WRPSTATE_ENABLE
404#define HAL_FLASH_TIMEOUT_VALUE FLASH_TIMEOUT_VALUE
405#define OBEX_PCROP OPTIONBYTE_PCROP
406#define OBEX_BOOTCONFIG OPTIONBYTE_BOOTCONFIG
407#define PCROPSTATE_DISABLE OB_PCROP_STATE_DISABLE
408#define PCROPSTATE_ENABLE OB_PCROP_STATE_ENABLE
409#define TYPEERASEDATA_BYTE FLASH_TYPEERASEDATA_BYTE
410#define TYPEERASEDATA_HALFWORD FLASH_TYPEERASEDATA_HALFWORD
411#define TYPEERASEDATA_WORD FLASH_TYPEERASEDATA_WORD
412#define TYPEPROGRAMDATA_BYTE FLASH_TYPEPROGRAMDATA_BYTE
413#define TYPEPROGRAMDATA_HALFWORD FLASH_TYPEPROGRAMDATA_HALFWORD
414#define TYPEPROGRAMDATA_WORD FLASH_TYPEPROGRAMDATA_WORD
415#define TYPEPROGRAMDATA_FASTBYTE FLASH_TYPEPROGRAMDATA_FASTBYTE
416#define TYPEPROGRAMDATA_FASTHALFWORD FLASH_TYPEPROGRAMDATA_FASTHALFWORD
417#define TYPEPROGRAMDATA_FASTWORD FLASH_TYPEPROGRAMDATA_FASTWORD
418#define PAGESIZE FLASH_PAGE_SIZE
419#define TYPEPROGRAM_FASTBYTE FLASH_TYPEPROGRAM_BYTE
420#define TYPEPROGRAM_FASTHALFWORD FLASH_TYPEPROGRAM_HALFWORD
421#define TYPEPROGRAM_FASTWORD FLASH_TYPEPROGRAM_WORD
422#define VOLTAGE_RANGE_1 FLASH_VOLTAGE_RANGE_1
423#define VOLTAGE_RANGE_2 FLASH_VOLTAGE_RANGE_2
424#define VOLTAGE_RANGE_3 FLASH_VOLTAGE_RANGE_3
425#define VOLTAGE_RANGE_4 FLASH_VOLTAGE_RANGE_4
426#define TYPEPROGRAM_FAST FLASH_TYPEPROGRAM_FAST
427#define TYPEPROGRAM_FAST_AND_LAST FLASH_TYPEPROGRAM_FAST_AND_LAST
428#define WRPAREA_BANK1_AREAA OB_WRPAREA_BANK1_AREAA
429#define WRPAREA_BANK1_AREAB OB_WRPAREA_BANK1_AREAB
430#define WRPAREA_BANK2_AREAA OB_WRPAREA_BANK2_AREAA
431#define WRPAREA_BANK2_AREAB OB_WRPAREA_BANK2_AREAB
432#define IWDG_STDBY_FREEZE OB_IWDG_STDBY_FREEZE
433#define IWDG_STDBY_ACTIVE OB_IWDG_STDBY_RUN
434#define IWDG_STOP_FREEZE OB_IWDG_STOP_FREEZE
435#define IWDG_STOP_ACTIVE OB_IWDG_STOP_RUN
436#define FLASH_ERROR_NONE HAL_FLASH_ERROR_NONE
437#define FLASH_ERROR_RD HAL_FLASH_ERROR_RD
438#define FLASH_ERROR_PG HAL_FLASH_ERROR_PROG
439#define FLASH_ERROR_PGP HAL_FLASH_ERROR_PGS
440#define FLASH_ERROR_WRP HAL_FLASH_ERROR_WRP
441#define FLASH_ERROR_OPTV HAL_FLASH_ERROR_OPTV
442#define FLASH_ERROR_OPTVUSR HAL_FLASH_ERROR_OPTVUSR
443#define FLASH_ERROR_PROG HAL_FLASH_ERROR_PROG
444#define FLASH_ERROR_OP HAL_FLASH_ERROR_OPERATION
445#define FLASH_ERROR_PGA HAL_FLASH_ERROR_PGA
446#define FLASH_ERROR_SIZE HAL_FLASH_ERROR_SIZE
447#define FLASH_ERROR_SIZ HAL_FLASH_ERROR_SIZE
448#define FLASH_ERROR_PGS HAL_FLASH_ERROR_PGS
449#define FLASH_ERROR_MIS HAL_FLASH_ERROR_MIS
450#define FLASH_ERROR_FAST HAL_FLASH_ERROR_FAST
451#define FLASH_ERROR_FWWERR HAL_FLASH_ERROR_FWWERR
452#define FLASH_ERROR_NOTZERO HAL_FLASH_ERROR_NOTZERO
453#define FLASH_ERROR_OPERATION HAL_FLASH_ERROR_OPERATION
454#define FLASH_ERROR_ERS HAL_FLASH_ERROR_ERS
455#define OB_WDG_SW OB_IWDG_SW
456#define OB_WDG_HW OB_IWDG_HW
457#define OB_SDADC12_VDD_MONITOR_SET OB_SDACD_VDD_MONITOR_SET
458#define OB_SDADC12_VDD_MONITOR_RESET OB_SDACD_VDD_MONITOR_RESET
459#define OB_RAM_PARITY_CHECK_SET OB_SRAM_PARITY_SET
460#define OB_RAM_PARITY_CHECK_RESET OB_SRAM_PARITY_RESET
461#define IS_OB_SDADC12_VDD_MONITOR IS_OB_SDACD_VDD_MONITOR
462#define OB_RDP_LEVEL0 OB_RDP_LEVEL_0
463#define OB_RDP_LEVEL1 OB_RDP_LEVEL_1
464#define OB_RDP_LEVEL2 OB_RDP_LEVEL_2
465#if defined(STM32G0)
466#define OB_BOOT_LOCK_DISABLE OB_BOOT_ENTRY_FORCED_NONE
467#define OB_BOOT_LOCK_ENABLE OB_BOOT_ENTRY_FORCED_FLASH
468#else
469#define OB_BOOT_ENTRY_FORCED_NONE OB_BOOT_LOCK_DISABLE
470#define OB_BOOT_ENTRY_FORCED_FLASH OB_BOOT_LOCK_ENABLE
471#endif
472#if defined(STM32H7)
473#define FLASH_FLAG_SNECCE_BANK1RR FLASH_FLAG_SNECCERR_BANK1
474#define FLASH_FLAG_DBECCE_BANK1RR FLASH_FLAG_DBECCERR_BANK1
475#define FLASH_FLAG_STRBER_BANK1R FLASH_FLAG_STRBERR_BANK1
476#define FLASH_FLAG_SNECCE_BANK2RR FLASH_FLAG_SNECCERR_BANK2
477#define FLASH_FLAG_DBECCE_BANK2RR FLASH_FLAG_DBECCERR_BANK2
478#define FLASH_FLAG_STRBER_BANK2R FLASH_FLAG_STRBERR_BANK2
479#define FLASH_FLAG_WDW FLASH_FLAG_WBNE
480#define OB_WRP_SECTOR_All OB_WRP_SECTOR_ALL
481#endif /* STM32H7 */
482
491#if defined(STM32H7)
492#define __HAL_RCC_JPEG_CLK_ENABLE __HAL_RCC_JPGDECEN_CLK_ENABLE
493#define __HAL_RCC_JPEG_CLK_DISABLE __HAL_RCC_JPGDECEN_CLK_DISABLE
494#define __HAL_RCC_JPEG_FORCE_RESET __HAL_RCC_JPGDECRST_FORCE_RESET
495#define __HAL_RCC_JPEG_RELEASE_RESET __HAL_RCC_JPGDECRST_RELEASE_RESET
496#define __HAL_RCC_JPEG_CLK_SLEEP_ENABLE __HAL_RCC_JPGDEC_CLK_SLEEP_ENABLE
497#define __HAL_RCC_JPEG_CLK_SLEEP_DISABLE __HAL_RCC_JPGDEC_CLK_SLEEP_DISABLE
498#endif /* STM32H7 */
499
508#define HAL_SYSCFG_FASTMODEPLUS_I2C_PA9 I2C_FASTMODEPLUS_PA9
509#define HAL_SYSCFG_FASTMODEPLUS_I2C_PA10 I2C_FASTMODEPLUS_PA10
510#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB6 I2C_FASTMODEPLUS_PB6
511#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB7 I2C_FASTMODEPLUS_PB7
512#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB8 I2C_FASTMODEPLUS_PB8
513#define HAL_SYSCFG_FASTMODEPLUS_I2C_PB9 I2C_FASTMODEPLUS_PB9
514#define HAL_SYSCFG_FASTMODEPLUS_I2C1 I2C_FASTMODEPLUS_I2C1
515#define HAL_SYSCFG_FASTMODEPLUS_I2C2 I2C_FASTMODEPLUS_I2C2
516#define HAL_SYSCFG_FASTMODEPLUS_I2C3 I2C_FASTMODEPLUS_I2C3
517#if defined(STM32G4)
518
519#define HAL_SYSCFG_EnableIOAnalogSwitchBooster HAL_SYSCFG_EnableIOSwitchBooster
520#define HAL_SYSCFG_DisableIOAnalogSwitchBooster HAL_SYSCFG_DisableIOSwitchBooster
521#define HAL_SYSCFG_EnableIOAnalogSwitchVDD HAL_SYSCFG_EnableIOSwitchVDD
522#define HAL_SYSCFG_DisableIOAnalogSwitchVDD HAL_SYSCFG_DisableIOSwitchVDD
523#endif /* STM32G4 */
532#if defined(STM32L4) || defined(STM32F7) || defined(STM32H7) || defined(STM32G4)
533#define FMC_NAND_PCC_WAIT_FEATURE_DISABLE FMC_NAND_WAIT_FEATURE_DISABLE
534#define FMC_NAND_PCC_WAIT_FEATURE_ENABLE FMC_NAND_WAIT_FEATURE_ENABLE
535#define FMC_NAND_PCC_MEM_BUS_WIDTH_8 FMC_NAND_MEM_BUS_WIDTH_8
536#define FMC_NAND_PCC_MEM_BUS_WIDTH_16 FMC_NAND_MEM_BUS_WIDTH_16
537#elif defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4)
538#define FMC_NAND_WAIT_FEATURE_DISABLE FMC_NAND_PCC_WAIT_FEATURE_DISABLE
539#define FMC_NAND_WAIT_FEATURE_ENABLE FMC_NAND_PCC_WAIT_FEATURE_ENABLE
540#define FMC_NAND_MEM_BUS_WIDTH_8 FMC_NAND_PCC_MEM_BUS_WIDTH_8
541#define FMC_NAND_MEM_BUS_WIDTH_16 FMC_NAND_PCC_MEM_BUS_WIDTH_16
542#endif
551#define FSMC_NORSRAM_TYPEDEF FSMC_NORSRAM_TypeDef
552#define FSMC_NORSRAM_EXTENDED_TYPEDEF FSMC_NORSRAM_EXTENDED_TypeDef
560#define GET_GPIO_SOURCE GPIO_GET_INDEX
561#define GET_GPIO_INDEX GPIO_GET_INDEX
562
563#if defined(STM32F4)
564#define GPIO_AF12_SDMMC GPIO_AF12_SDIO
565#define GPIO_AF12_SDMMC1 GPIO_AF12_SDIO
566#endif
567
568#if defined(STM32F7)
569#define GPIO_AF12_SDIO GPIO_AF12_SDMMC1
570#define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1
571#endif
572
573#if defined(STM32L4)
574#define GPIO_AF12_SDIO GPIO_AF12_SDMMC1
575#define GPIO_AF12_SDMMC GPIO_AF12_SDMMC1
576#endif
577
578#if defined(STM32H7)
579#define GPIO_AF7_SDIO1 GPIO_AF7_SDMMC1
580#define GPIO_AF8_SDIO1 GPIO_AF8_SDMMC1
581#define GPIO_AF12_SDIO1 GPIO_AF12_SDMMC1
582#define GPIO_AF9_SDIO2 GPIO_AF9_SDMMC2
583#define GPIO_AF10_SDIO2 GPIO_AF10_SDMMC2
584#define GPIO_AF11_SDIO2 GPIO_AF11_SDMMC2
585
586#if defined (STM32H743xx) || defined (STM32H753xx) || defined (STM32H750xx) || defined (STM32H742xx) || \
587 defined (STM32H745xx) || defined (STM32H755xx) || defined (STM32H747xx) || defined (STM32H757xx)
588#define GPIO_AF10_OTG2_HS GPIO_AF10_OTG2_FS
589#define GPIO_AF10_OTG1_FS GPIO_AF10_OTG1_HS
590#define GPIO_AF12_OTG2_FS GPIO_AF12_OTG1_FS
591#endif /*STM32H743xx || STM32H753xx || STM32H750xx || STM32H742xx || STM32H745xx || STM32H755xx || STM32H747xx || STM32H757xx */
592#endif /* STM32H7 */
593
594#define GPIO_AF0_LPTIM GPIO_AF0_LPTIM1
595#define GPIO_AF1_LPTIM GPIO_AF1_LPTIM1
596#define GPIO_AF2_LPTIM GPIO_AF2_LPTIM1
597
598#if defined(STM32L0) || defined(STM32L4) || defined(STM32F4) || defined(STM32F2) || defined(STM32F7) || defined(STM32G4) || defined(STM32H7) || defined(STM32WB)
599#define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW
600#define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM
601#define GPIO_SPEED_FAST GPIO_SPEED_FREQ_HIGH
602#define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH
603#endif /* STM32L0 || STM32L4 || STM32F4 || STM32F2 || STM32F7 || STM32G4 || STM32H7 || STM32WB*/
604
605#if defined(STM32L1)
606#define GPIO_SPEED_VERY_LOW GPIO_SPEED_FREQ_LOW
607#define GPIO_SPEED_LOW GPIO_SPEED_FREQ_MEDIUM
608#define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_HIGH
609#define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_VERY_HIGH
610#endif /* STM32L1 */
611
612#if defined(STM32F0) || defined(STM32F3) || defined(STM32F1)
613#define GPIO_SPEED_LOW GPIO_SPEED_FREQ_LOW
614#define GPIO_SPEED_MEDIUM GPIO_SPEED_FREQ_MEDIUM
615#define GPIO_SPEED_HIGH GPIO_SPEED_FREQ_HIGH
616#endif /* STM32F0 || STM32F3 || STM32F1 */
617
618#define GPIO_AF6_DFSDM GPIO_AF6_DFSDM1
626#define HRTIM_TIMDELAYEDPROTECTION_DISABLED HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DISABLED
627#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_EEV6
628#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_EEV6
629#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV6
630#define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV68 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV6
631#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT1_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT1_DEEV7
632#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDOUT2_DEEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDOUT2_DEEV7
633#define HRTIM_TIMDELAYEDPROTECTION_DELAYEDBOTH_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_DELAYEDBOTH_EEV7
634#define HRTIM_TIMDELAYEDPROTECTION_BALANCED_EEV79 HRTIM_TIMER_A_B_C_DELAYEDPROTECTION_BALANCED_EEV7
635
636#define __HAL_HRTIM_SetCounter __HAL_HRTIM_SETCOUNTER
637#define __HAL_HRTIM_GetCounter __HAL_HRTIM_GETCOUNTER
638#define __HAL_HRTIM_SetPeriod __HAL_HRTIM_SETPERIOD
639#define __HAL_HRTIM_GetPeriod __HAL_HRTIM_GETPERIOD
640#define __HAL_HRTIM_SetClockPrescaler __HAL_HRTIM_SETCLOCKPRESCALER
641#define __HAL_HRTIM_GetClockPrescaler __HAL_HRTIM_GETCLOCKPRESCALER
642#define __HAL_HRTIM_SetCompare __HAL_HRTIM_SETCOMPARE
643#define __HAL_HRTIM_GetCompare __HAL_HRTIM_GETCOMPARE
644
645#if defined(STM32G4)
646#define HAL_HRTIM_ExternalEventCounterConfig HAL_HRTIM_ExtEventCounterConfig
647#define HAL_HRTIM_ExternalEventCounterEnable HAL_HRTIM_ExtEventCounterEnable
648#define HAL_HRTIM_ExternalEventCounterDisable HAL_HRTIM_ExtEventCounterDisable
649#define HAL_HRTIM_ExternalEventCounterReset HAL_HRTIM_ExtEventCounterReset
650#define HRTIM_TIMEEVENT_A HRTIM_EVENTCOUNTER_A
651#define HRTIM_TIMEEVENT_B HRTIM_EVENTCOUNTER_B
652#define HRTIM_TIMEEVENTRESETMODE_UNCONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_UNCONDITIONAL
653#define HRTIM_TIMEEVENTRESETMODE_CONDITIONAL HRTIM_EVENTCOUNTER_RSTMODE_CONDITIONAL
654#endif /* STM32G4 */
655
656#if defined(STM32H7)
657#define HRTIM_OUTPUTSET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1
658#define HRTIM_OUTPUTSET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2
659#define HRTIM_OUTPUTSET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3
660#define HRTIM_OUTPUTSET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4
661#define HRTIM_OUTPUTSET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5
662#define HRTIM_OUTPUTSET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6
663#define HRTIM_OUTPUTSET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
664#define HRTIM_OUTPUTSET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
665#define HRTIM_OUTPUTSET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
666#define HRTIM_OUTPUTSET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
667#define HRTIM_OUTPUTSET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
668#define HRTIM_OUTPUTSET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3
669#define HRTIM_OUTPUTSET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4
670#define HRTIM_OUTPUTSET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5
671#define HRTIM_OUTPUTSET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
672#define HRTIM_OUTPUTSET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7
673#define HRTIM_OUTPUTSET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
674#define HRTIM_OUTPUTSET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
675#define HRTIM_OUTPUTSET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
676#define HRTIM_OUTPUTSET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
677#define HRTIM_OUTPUTSET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
678#define HRTIM_OUTPUTSET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4
679#define HRTIM_OUTPUTSET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
680#define HRTIM_OUTPUTSET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
681#define HRTIM_OUTPUTSET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
682#define HRTIM_OUTPUTSET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
683#define HRTIM_OUTPUTSET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9
684#define HRTIM_OUTPUTSET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
685#define HRTIM_OUTPUTSET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2
686#define HRTIM_OUTPUTSET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
687#define HRTIM_OUTPUTSET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4
688#define HRTIM_OUTPUTSET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
689#define HRTIM_OUTPUTSET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6
690#define HRTIM_OUTPUTSET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7
691#define HRTIM_OUTPUTSET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8
692#define HRTIM_OUTPUTSET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
693#define HRTIM_OUTPUTSET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1
694#define HRTIM_OUTPUTSET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2
695#define HRTIM_OUTPUTSET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
696#define HRTIM_OUTPUTSET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
697#define HRTIM_OUTPUTSET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
698#define HRTIM_OUTPUTSET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6
699#define HRTIM_OUTPUTSET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7
700#define HRTIM_OUTPUTSET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8
701#define HRTIM_OUTPUTSET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
702#define HRTIM_OUTPUTSET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1
703#define HRTIM_OUTPUTSET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2
704#define HRTIM_OUTPUTSET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
705#define HRTIM_OUTPUTSET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
706#define HRTIM_OUTPUTSET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
707#define HRTIM_OUTPUTSET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6
708#define HRTIM_OUTPUTSET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7
709#define HRTIM_OUTPUTSET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
710#define HRTIM_OUTPUTSET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9
711
712#define HRTIM_OUTPUTRESET_TIMAEV1_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_1
713#define HRTIM_OUTPUTRESET_TIMAEV2_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_2
714#define HRTIM_OUTPUTRESET_TIMAEV3_TIMCCMP2 HRTIM_OUTPUTSET_TIMEV_3
715#define HRTIM_OUTPUTRESET_TIMAEV4_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_4
716#define HRTIM_OUTPUTRESET_TIMAEV5_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_5
717#define HRTIM_OUTPUTRESET_TIMAEV6_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_6
718#define HRTIM_OUTPUTRESET_TIMAEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
719#define HRTIM_OUTPUTRESET_TIMAEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
720#define HRTIM_OUTPUTRESET_TIMAEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
721#define HRTIM_OUTPUTRESET_TIMBEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
722#define HRTIM_OUTPUTRESET_TIMBEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
723#define HRTIM_OUTPUTRESET_TIMBEV3_TIMCCMP3 HRTIM_OUTPUTSET_TIMEV_3
724#define HRTIM_OUTPUTRESET_TIMBEV4_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_4
725#define HRTIM_OUTPUTRESET_TIMBEV5_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_5
726#define HRTIM_OUTPUTRESET_TIMBEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
727#define HRTIM_OUTPUTRESET_TIMBEV7_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_7
728#define HRTIM_OUTPUTRESET_TIMBEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
729#define HRTIM_OUTPUTRESET_TIMBEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
730#define HRTIM_OUTPUTRESET_TIMCEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
731#define HRTIM_OUTPUTRESET_TIMCEV2_TIMACMP2 HRTIM_OUTPUTSET_TIMEV_2
732#define HRTIM_OUTPUTRESET_TIMCEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
733#define HRTIM_OUTPUTRESET_TIMCEV4_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_4
734#define HRTIM_OUTPUTRESET_TIMCEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
735#define HRTIM_OUTPUTRESET_TIMCEV6_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_6
736#define HRTIM_OUTPUTRESET_TIMCEV7_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_7
737#define HRTIM_OUTPUTRESET_TIMCEV8_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_8
738#define HRTIM_OUTPUTRESET_TIMCEV9_TIMFCMP2 HRTIM_OUTPUTSET_TIMEV_9
739#define HRTIM_OUTPUTRESET_TIMDEV1_TIMACMP1 HRTIM_OUTPUTSET_TIMEV_1
740#define HRTIM_OUTPUTRESET_TIMDEV2_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_2
741#define HRTIM_OUTPUTRESET_TIMDEV3_TIMBCMP2 HRTIM_OUTPUTSET_TIMEV_3
742#define HRTIM_OUTPUTRESET_TIMDEV4_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_4
743#define HRTIM_OUTPUTRESET_TIMDEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
744#define HRTIM_OUTPUTRESET_TIMDEV6_TIMECMP1 HRTIM_OUTPUTSET_TIMEV_6
745#define HRTIM_OUTPUTRESET_TIMDEV7_TIMECMP4 HRTIM_OUTPUTSET_TIMEV_7
746#define HRTIM_OUTPUTRESET_TIMDEV8_TIMFCMP1 HRTIM_OUTPUTSET_TIMEV_8
747#define HRTIM_OUTPUTRESET_TIMDEV9_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_9
748#define HRTIM_OUTPUTRESET_TIMEEV1_TIMACMP4 HRTIM_OUTPUTSET_TIMEV_1
749#define HRTIM_OUTPUTRESET_TIMEEV2_TIMBCMP3 HRTIM_OUTPUTSET_TIMEV_2
750#define HRTIM_OUTPUTRESET_TIMEEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
751#define HRTIM_OUTPUTRESET_TIMEEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
752#define HRTIM_OUTPUTRESET_TIMEEV5_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_5
753#define HRTIM_OUTPUTRESET_TIMEEV6_TIMDCMP1 HRTIM_OUTPUTSET_TIMEV_6
754#define HRTIM_OUTPUTRESET_TIMEEV7_TIMDCMP2 HRTIM_OUTPUTSET_TIMEV_7
755#define HRTIM_OUTPUTRESET_TIMEEV8_TIMFCMP3 HRTIM_OUTPUTSET_TIMEV_8
756#define HRTIM_OUTPUTRESET_TIMEEV9_TIMFCMP4 HRTIM_OUTPUTSET_TIMEV_9
757#define HRTIM_OUTPUTRESET_TIMFEV1_TIMACMP3 HRTIM_OUTPUTSET_TIMEV_1
758#define HRTIM_OUTPUTRESET_TIMFEV2_TIMBCMP1 HRTIM_OUTPUTSET_TIMEV_2
759#define HRTIM_OUTPUTRESET_TIMFEV3_TIMBCMP4 HRTIM_OUTPUTSET_TIMEV_3
760#define HRTIM_OUTPUTRESET_TIMFEV4_TIMCCMP1 HRTIM_OUTPUTSET_TIMEV_4
761#define HRTIM_OUTPUTRESET_TIMFEV5_TIMCCMP4 HRTIM_OUTPUTSET_TIMEV_5
762#define HRTIM_OUTPUTRESET_TIMFEV6_TIMDCMP3 HRTIM_OUTPUTSET_TIMEV_6
763#define HRTIM_OUTPUTRESET_TIMFEV7_TIMDCMP4 HRTIM_OUTPUTSET_TIMEV_7
764#define HRTIM_OUTPUTRESET_TIMFEV8_TIMECMP2 HRTIM_OUTPUTSET_TIMEV_8
765#define HRTIM_OUTPUTRESET_TIMFEV9_TIMECMP3 HRTIM_OUTPUTSET_TIMEV_9
766#endif /* STM32H7 */
767
768#if defined(STM32F3)
771#define HRTIM_EVENTSRC_1 (0x00000000U)
772#define HRTIM_EVENTSRC_2 (HRTIM_EECR1_EE1SRC_0)
773#define HRTIM_EVENTSRC_3 (HRTIM_EECR1_EE1SRC_1)
774#define HRTIM_EVENTSRC_4 (HRTIM_EECR1_EE1SRC_1 | HRTIM_EECR1_EE1SRC_0)
775
778#define HRTIM_CALIBRATIONRATE_7300 0x00000000U
779#define HRTIM_CALIBRATIONRATE_910 (HRTIM_DLLCR_CALRTE_0)
780#define HRTIM_CALIBRATIONRATE_114 (HRTIM_DLLCR_CALRTE_1)
781#define HRTIM_CALIBRATIONRATE_14 (HRTIM_DLLCR_CALRTE_1 | HRTIM_DLLCR_CALRTE_0)
782
783#endif /* STM32F3 */
791#define I2C_DUALADDRESS_DISABLED I2C_DUALADDRESS_DISABLE
792#define I2C_DUALADDRESS_ENABLED I2C_DUALADDRESS_ENABLE
793#define I2C_GENERALCALL_DISABLED I2C_GENERALCALL_DISABLE
794#define I2C_GENERALCALL_ENABLED I2C_GENERALCALL_ENABLE
795#define I2C_NOSTRETCH_DISABLED I2C_NOSTRETCH_DISABLE
796#define I2C_NOSTRETCH_ENABLED I2C_NOSTRETCH_ENABLE
797#define I2C_ANALOGFILTER_ENABLED I2C_ANALOGFILTER_ENABLE
798#define I2C_ANALOGFILTER_DISABLED I2C_ANALOGFILTER_DISABLE
799#if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) || defined(STM32G0) || defined(STM32L4) || defined(STM32L1) || defined(STM32F7)
800#define HAL_I2C_STATE_MEM_BUSY_TX HAL_I2C_STATE_BUSY_TX
801#define HAL_I2C_STATE_MEM_BUSY_RX HAL_I2C_STATE_BUSY_RX
802#define HAL_I2C_STATE_MASTER_BUSY_TX HAL_I2C_STATE_BUSY_TX
803#define HAL_I2C_STATE_MASTER_BUSY_RX HAL_I2C_STATE_BUSY_RX
804#define HAL_I2C_STATE_SLAVE_BUSY_TX HAL_I2C_STATE_BUSY_TX
805#define HAL_I2C_STATE_SLAVE_BUSY_RX HAL_I2C_STATE_BUSY_RX
806#endif
814#define IRDA_ONE_BIT_SAMPLE_DISABLED IRDA_ONE_BIT_SAMPLE_DISABLE
815#define IRDA_ONE_BIT_SAMPLE_ENABLED IRDA_ONE_BIT_SAMPLE_ENABLE
816
824#define KR_KEY_RELOAD IWDG_KEY_RELOAD
825#define KR_KEY_ENABLE IWDG_KEY_ENABLE
826#define KR_KEY_EWA IWDG_KEY_WRITE_ACCESS_ENABLE
827#define KR_KEY_DWA IWDG_KEY_WRITE_ACCESS_DISABLE
836#define LPTIM_CLOCKSAMPLETIME_DIRECTTRANSISTION LPTIM_CLOCKSAMPLETIME_DIRECTTRANSITION
837#define LPTIM_CLOCKSAMPLETIME_2TRANSISTIONS LPTIM_CLOCKSAMPLETIME_2TRANSITIONS
838#define LPTIM_CLOCKSAMPLETIME_4TRANSISTIONS LPTIM_CLOCKSAMPLETIME_4TRANSITIONS
839#define LPTIM_CLOCKSAMPLETIME_8TRANSISTIONS LPTIM_CLOCKSAMPLETIME_8TRANSITIONS
840
841#define LPTIM_CLOCKPOLARITY_RISINGEDGE LPTIM_CLOCKPOLARITY_RISING
842#define LPTIM_CLOCKPOLARITY_FALLINGEDGE LPTIM_CLOCKPOLARITY_FALLING
843#define LPTIM_CLOCKPOLARITY_BOTHEDGES LPTIM_CLOCKPOLARITY_RISING_FALLING
844
845#define LPTIM_TRIGSAMPLETIME_DIRECTTRANSISTION LPTIM_TRIGSAMPLETIME_DIRECTTRANSITION
846#define LPTIM_TRIGSAMPLETIME_2TRANSISTIONS LPTIM_TRIGSAMPLETIME_2TRANSITIONS
847#define LPTIM_TRIGSAMPLETIME_4TRANSISTIONS LPTIM_TRIGSAMPLETIME_4TRANSITIONS
848#define LPTIM_TRIGSAMPLETIME_8TRANSISTIONS LPTIM_TRIGSAMPLETIME_8TRANSITIONS
849
850/* The following 3 definition have also been present in a temporary version of lptim.h */
851/* They need to be renamed also to the right name, just in case */
852#define LPTIM_TRIGSAMPLETIME_2TRANSITION LPTIM_TRIGSAMPLETIME_2TRANSITIONS
853#define LPTIM_TRIGSAMPLETIME_4TRANSITION LPTIM_TRIGSAMPLETIME_4TRANSITIONS
854#define LPTIM_TRIGSAMPLETIME_8TRANSITION LPTIM_TRIGSAMPLETIME_8TRANSITIONS
855
863#define HAL_NAND_Read_Page HAL_NAND_Read_Page_8b
864#define HAL_NAND_Write_Page HAL_NAND_Write_Page_8b
865#define HAL_NAND_Read_SpareArea HAL_NAND_Read_SpareArea_8b
866#define HAL_NAND_Write_SpareArea HAL_NAND_Write_SpareArea_8b
867
868#define NAND_AddressTypedef NAND_AddressTypeDef
869
870#define __ARRAY_ADDRESS ARRAY_ADDRESS
871#define __ADDR_1st_CYCLE ADDR_1ST_CYCLE
872#define __ADDR_2nd_CYCLE ADDR_2ND_CYCLE
873#define __ADDR_3rd_CYCLE ADDR_3RD_CYCLE
874#define __ADDR_4th_CYCLE ADDR_4TH_CYCLE
882#define NOR_StatusTypedef HAL_NOR_StatusTypeDef
883#define NOR_SUCCESS HAL_NOR_STATUS_SUCCESS
884#define NOR_ONGOING HAL_NOR_STATUS_ONGOING
885#define NOR_ERROR HAL_NOR_STATUS_ERROR
886#define NOR_TIMEOUT HAL_NOR_STATUS_TIMEOUT
887
888#define __NOR_WRITE NOR_WRITE
889#define __NOR_ADDR_SHIFT NOR_ADDR_SHIFT
898#define OPAMP_NONINVERTINGINPUT_VP0 OPAMP_NONINVERTINGINPUT_IO0
899#define OPAMP_NONINVERTINGINPUT_VP1 OPAMP_NONINVERTINGINPUT_IO1
900#define OPAMP_NONINVERTINGINPUT_VP2 OPAMP_NONINVERTINGINPUT_IO2
901#define OPAMP_NONINVERTINGINPUT_VP3 OPAMP_NONINVERTINGINPUT_IO3
902
903#define OPAMP_SEC_NONINVERTINGINPUT_VP0 OPAMP_SEC_NONINVERTINGINPUT_IO0
904#define OPAMP_SEC_NONINVERTINGINPUT_VP1 OPAMP_SEC_NONINVERTINGINPUT_IO1
905#define OPAMP_SEC_NONINVERTINGINPUT_VP2 OPAMP_SEC_NONINVERTINGINPUT_IO2
906#define OPAMP_SEC_NONINVERTINGINPUT_VP3 OPAMP_SEC_NONINVERTINGINPUT_IO3
907
908#define OPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0
909#define OPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1
910
911#define IOPAMP_INVERTINGINPUT_VM0 OPAMP_INVERTINGINPUT_IO0
912#define IOPAMP_INVERTINGINPUT_VM1 OPAMP_INVERTINGINPUT_IO1
913
914#define OPAMP_SEC_INVERTINGINPUT_VM0 OPAMP_SEC_INVERTINGINPUT_IO0
915#define OPAMP_SEC_INVERTINGINPUT_VM1 OPAMP_SEC_INVERTINGINPUT_IO1
916
917#define OPAMP_INVERTINGINPUT_VINM OPAMP_SEC_INVERTINGINPUT_IO1
918
919#define OPAMP_PGACONNECT_NO OPAMP_PGA_CONNECT_INVERTINGINPUT_NO
920#define OPAMP_PGACONNECT_VM0 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0
921#define OPAMP_PGACONNECT_VM1 OPAMP_PGA_CONNECT_INVERTINGINPUT_IO1
922
923#if defined(STM32L1) || defined(STM32L4) || defined(STM32L5) || defined(STM32H7) || defined(STM32G4)
924#define HAL_OPAMP_MSP_INIT_CB_ID HAL_OPAMP_MSPINIT_CB_ID
925#define HAL_OPAMP_MSP_DEINIT_CB_ID HAL_OPAMP_MSPDEINIT_CB_ID
926#endif
927
928#if defined(STM32L4) || defined(STM32L5)
929#define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALPOWER
930#elif defined(STM32G4)
931#define OPAMP_POWERMODE_NORMAL OPAMP_POWERMODE_NORMALSPEED
932#endif
933
941#define I2S_STANDARD_PHILLIPS I2S_STANDARD_PHILIPS
942
943#if defined(STM32H7)
944#define I2S_IT_TXE I2S_IT_TXP
945#define I2S_IT_RXNE I2S_IT_RXP
946
947#define I2S_FLAG_TXE I2S_FLAG_TXP
948#define I2S_FLAG_RXNE I2S_FLAG_RXP
949#endif
950
951#if defined(STM32F7)
952#define I2S_CLOCK_SYSCLK I2S_CLOCK_PLL
953#endif
962/* Compact Flash-ATA registers description */
963#define CF_DATA ATA_DATA
964#define CF_SECTOR_COUNT ATA_SECTOR_COUNT
965#define CF_SECTOR_NUMBER ATA_SECTOR_NUMBER
966#define CF_CYLINDER_LOW ATA_CYLINDER_LOW
967#define CF_CYLINDER_HIGH ATA_CYLINDER_HIGH
968#define CF_CARD_HEAD ATA_CARD_HEAD
969#define CF_STATUS_CMD ATA_STATUS_CMD
970#define CF_STATUS_CMD_ALTERNATE ATA_STATUS_CMD_ALTERNATE
971#define CF_COMMON_DATA_AREA ATA_COMMON_DATA_AREA
972
973/* Compact Flash-ATA commands */
974#define CF_READ_SECTOR_CMD ATA_READ_SECTOR_CMD
975#define CF_WRITE_SECTOR_CMD ATA_WRITE_SECTOR_CMD
976#define CF_ERASE_SECTOR_CMD ATA_ERASE_SECTOR_CMD
977#define CF_IDENTIFY_CMD ATA_IDENTIFY_CMD
978
979#define PCCARD_StatusTypedef HAL_PCCARD_StatusTypeDef
980#define PCCARD_SUCCESS HAL_PCCARD_STATUS_SUCCESS
981#define PCCARD_ONGOING HAL_PCCARD_STATUS_ONGOING
982#define PCCARD_ERROR HAL_PCCARD_STATUS_ERROR
983#define PCCARD_TIMEOUT HAL_PCCARD_STATUS_TIMEOUT
992#define FORMAT_BIN RTC_FORMAT_BIN
993#define FORMAT_BCD RTC_FORMAT_BCD
994
995#define RTC_ALARMSUBSECONDMASK_None RTC_ALARMSUBSECONDMASK_NONE
996#define RTC_TAMPERERASEBACKUP_DISABLED RTC_TAMPER_ERASE_BACKUP_DISABLE
997#define RTC_TAMPERMASK_FLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE
998#define RTC_TAMPERMASK_FLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE
999
1000#define RTC_MASKTAMPERFLAG_DISABLED RTC_TAMPERMASK_FLAG_DISABLE
1001#define RTC_MASKTAMPERFLAG_ENABLED RTC_TAMPERMASK_FLAG_ENABLE
1002#define RTC_TAMPERERASEBACKUP_ENABLED RTC_TAMPER_ERASE_BACKUP_ENABLE
1003#define RTC_TAMPER1_2_INTERRUPT RTC_ALL_TAMPER_INTERRUPT
1004#define RTC_TAMPER1_2_3_INTERRUPT RTC_ALL_TAMPER_INTERRUPT
1005
1006#define RTC_TIMESTAMPPIN_PC13 RTC_TIMESTAMPPIN_DEFAULT
1007#define RTC_TIMESTAMPPIN_PA0 RTC_TIMESTAMPPIN_POS1
1008#define RTC_TIMESTAMPPIN_PI8 RTC_TIMESTAMPPIN_POS1
1009#define RTC_TIMESTAMPPIN_PC1 RTC_TIMESTAMPPIN_POS2
1010
1011#define RTC_OUTPUT_REMAP_PC13 RTC_OUTPUT_REMAP_NONE
1012#define RTC_OUTPUT_REMAP_PB14 RTC_OUTPUT_REMAP_POS1
1013#define RTC_OUTPUT_REMAP_PB2 RTC_OUTPUT_REMAP_POS1
1014
1015#define RTC_TAMPERPIN_PC13 RTC_TAMPERPIN_DEFAULT
1016#define RTC_TAMPERPIN_PA0 RTC_TAMPERPIN_POS1
1017#define RTC_TAMPERPIN_PI8 RTC_TAMPERPIN_POS1
1018
1019#if defined(STM32H7)
1020#define RTC_TAMPCR_TAMPXE RTC_TAMPER_X
1021#define RTC_TAMPCR_TAMPXIE RTC_TAMPER_X_INTERRUPT
1022
1023#define RTC_TAMPER1_INTERRUPT RTC_IT_TAMP1
1024#define RTC_TAMPER2_INTERRUPT RTC_IT_TAMP2
1025#define RTC_TAMPER3_INTERRUPT RTC_IT_TAMP3
1026#define RTC_ALL_TAMPER_INTERRUPT RTC_IT_TAMPALL
1027#endif /* STM32H7 */
1028
1037#define SMARTCARD_NACK_ENABLED SMARTCARD_NACK_ENABLE
1038#define SMARTCARD_NACK_DISABLED SMARTCARD_NACK_DISABLE
1039
1040#define SMARTCARD_ONEBIT_SAMPLING_DISABLED SMARTCARD_ONE_BIT_SAMPLE_DISABLE
1041#define SMARTCARD_ONEBIT_SAMPLING_ENABLED SMARTCARD_ONE_BIT_SAMPLE_ENABLE
1042#define SMARTCARD_ONEBIT_SAMPLING_DISABLE SMARTCARD_ONE_BIT_SAMPLE_DISABLE
1043#define SMARTCARD_ONEBIT_SAMPLING_ENABLE SMARTCARD_ONE_BIT_SAMPLE_ENABLE
1044
1045#define SMARTCARD_TIMEOUT_DISABLED SMARTCARD_TIMEOUT_DISABLE
1046#define SMARTCARD_TIMEOUT_ENABLED SMARTCARD_TIMEOUT_ENABLE
1047
1048#define SMARTCARD_LASTBIT_DISABLED SMARTCARD_LASTBIT_DISABLE
1049#define SMARTCARD_LASTBIT_ENABLED SMARTCARD_LASTBIT_ENABLE
1058#define SMBUS_DUALADDRESS_DISABLED SMBUS_DUALADDRESS_DISABLE
1059#define SMBUS_DUALADDRESS_ENABLED SMBUS_DUALADDRESS_ENABLE
1060#define SMBUS_GENERALCALL_DISABLED SMBUS_GENERALCALL_DISABLE
1061#define SMBUS_GENERALCALL_ENABLED SMBUS_GENERALCALL_ENABLE
1062#define SMBUS_NOSTRETCH_DISABLED SMBUS_NOSTRETCH_DISABLE
1063#define SMBUS_NOSTRETCH_ENABLED SMBUS_NOSTRETCH_ENABLE
1064#define SMBUS_ANALOGFILTER_ENABLED SMBUS_ANALOGFILTER_ENABLE
1065#define SMBUS_ANALOGFILTER_DISABLED SMBUS_ANALOGFILTER_DISABLE
1066#define SMBUS_PEC_DISABLED SMBUS_PEC_DISABLE
1067#define SMBUS_PEC_ENABLED SMBUS_PEC_ENABLE
1068#define HAL_SMBUS_STATE_SLAVE_LISTEN HAL_SMBUS_STATE_LISTEN
1076#define SPI_TIMODE_DISABLED SPI_TIMODE_DISABLE
1077#define SPI_TIMODE_ENABLED SPI_TIMODE_ENABLE
1078
1079#define SPI_CRCCALCULATION_DISABLED SPI_CRCCALCULATION_DISABLE
1080#define SPI_CRCCALCULATION_ENABLED SPI_CRCCALCULATION_ENABLE
1081
1082#define SPI_NSS_PULSE_DISABLED SPI_NSS_PULSE_DISABLE
1083#define SPI_NSS_PULSE_ENABLED SPI_NSS_PULSE_ENABLE
1084
1085#if defined(STM32H7)
1086
1087#define SPI_FLAG_TXE SPI_FLAG_TXP
1088#define SPI_FLAG_RXNE SPI_FLAG_RXP
1089
1090#define SPI_IT_TXE SPI_IT_TXP
1091#define SPI_IT_RXNE SPI_IT_RXP
1092
1093#define SPI_FRLVL_EMPTY SPI_RX_FIFO_0PACKET
1094#define SPI_FRLVL_QUARTER_FULL SPI_RX_FIFO_1PACKET
1095#define SPI_FRLVL_HALF_FULL SPI_RX_FIFO_2PACKET
1096#define SPI_FRLVL_FULL SPI_RX_FIFO_3PACKET
1097
1098#endif /* STM32H7 */
1099
1107#define CCER_CCxE_MASK TIM_CCER_CCxE_MASK
1108#define CCER_CCxNE_MASK TIM_CCER_CCxNE_MASK
1109
1110#define TIM_DMABase_CR1 TIM_DMABASE_CR1
1111#define TIM_DMABase_CR2 TIM_DMABASE_CR2
1112#define TIM_DMABase_SMCR TIM_DMABASE_SMCR
1113#define TIM_DMABase_DIER TIM_DMABASE_DIER
1114#define TIM_DMABase_SR TIM_DMABASE_SR
1115#define TIM_DMABase_EGR TIM_DMABASE_EGR
1116#define TIM_DMABase_CCMR1 TIM_DMABASE_CCMR1
1117#define TIM_DMABase_CCMR2 TIM_DMABASE_CCMR2
1118#define TIM_DMABase_CCER TIM_DMABASE_CCER
1119#define TIM_DMABase_CNT TIM_DMABASE_CNT
1120#define TIM_DMABase_PSC TIM_DMABASE_PSC
1121#define TIM_DMABase_ARR TIM_DMABASE_ARR
1122#define TIM_DMABase_RCR TIM_DMABASE_RCR
1123#define TIM_DMABase_CCR1 TIM_DMABASE_CCR1
1124#define TIM_DMABase_CCR2 TIM_DMABASE_CCR2
1125#define TIM_DMABase_CCR3 TIM_DMABASE_CCR3
1126#define TIM_DMABase_CCR4 TIM_DMABASE_CCR4
1127#define TIM_DMABase_BDTR TIM_DMABASE_BDTR
1128#define TIM_DMABase_DCR TIM_DMABASE_DCR
1129#define TIM_DMABase_DMAR TIM_DMABASE_DMAR
1130#define TIM_DMABase_OR1 TIM_DMABASE_OR1
1131#define TIM_DMABase_CCMR3 TIM_DMABASE_CCMR3
1132#define TIM_DMABase_CCR5 TIM_DMABASE_CCR5
1133#define TIM_DMABase_CCR6 TIM_DMABASE_CCR6
1134#define TIM_DMABase_OR2 TIM_DMABASE_OR2
1135#define TIM_DMABase_OR3 TIM_DMABASE_OR3
1136#define TIM_DMABase_OR TIM_DMABASE_OR
1137
1138#define TIM_EventSource_Update TIM_EVENTSOURCE_UPDATE
1139#define TIM_EventSource_CC1 TIM_EVENTSOURCE_CC1
1140#define TIM_EventSource_CC2 TIM_EVENTSOURCE_CC2
1141#define TIM_EventSource_CC3 TIM_EVENTSOURCE_CC3
1142#define TIM_EventSource_CC4 TIM_EVENTSOURCE_CC4
1143#define TIM_EventSource_COM TIM_EVENTSOURCE_COM
1144#define TIM_EventSource_Trigger TIM_EVENTSOURCE_TRIGGER
1145#define TIM_EventSource_Break TIM_EVENTSOURCE_BREAK
1146#define TIM_EventSource_Break2 TIM_EVENTSOURCE_BREAK2
1147
1148#define TIM_DMABurstLength_1Transfer TIM_DMABURSTLENGTH_1TRANSFER
1149#define TIM_DMABurstLength_2Transfers TIM_DMABURSTLENGTH_2TRANSFERS
1150#define TIM_DMABurstLength_3Transfers TIM_DMABURSTLENGTH_3TRANSFERS
1151#define TIM_DMABurstLength_4Transfers TIM_DMABURSTLENGTH_4TRANSFERS
1152#define TIM_DMABurstLength_5Transfers TIM_DMABURSTLENGTH_5TRANSFERS
1153#define TIM_DMABurstLength_6Transfers TIM_DMABURSTLENGTH_6TRANSFERS
1154#define TIM_DMABurstLength_7Transfers TIM_DMABURSTLENGTH_7TRANSFERS
1155#define TIM_DMABurstLength_8Transfers TIM_DMABURSTLENGTH_8TRANSFERS
1156#define TIM_DMABurstLength_9Transfers TIM_DMABURSTLENGTH_9TRANSFERS
1157#define TIM_DMABurstLength_10Transfers TIM_DMABURSTLENGTH_10TRANSFERS
1158#define TIM_DMABurstLength_11Transfers TIM_DMABURSTLENGTH_11TRANSFERS
1159#define TIM_DMABurstLength_12Transfers TIM_DMABURSTLENGTH_12TRANSFERS
1160#define TIM_DMABurstLength_13Transfers TIM_DMABURSTLENGTH_13TRANSFERS
1161#define TIM_DMABurstLength_14Transfers TIM_DMABURSTLENGTH_14TRANSFERS
1162#define TIM_DMABurstLength_15Transfers TIM_DMABURSTLENGTH_15TRANSFERS
1163#define TIM_DMABurstLength_16Transfers TIM_DMABURSTLENGTH_16TRANSFERS
1164#define TIM_DMABurstLength_17Transfers TIM_DMABURSTLENGTH_17TRANSFERS
1165#define TIM_DMABurstLength_18Transfers TIM_DMABURSTLENGTH_18TRANSFERS
1166
1167#if defined(STM32L0)
1168#define TIM22_TI1_GPIO1 TIM22_TI1_GPIO
1169#define TIM22_TI1_GPIO2 TIM22_TI1_GPIO
1170#endif
1171
1172#if defined(STM32F3)
1173#define IS_TIM_HALL_INTERFACE_INSTANCE IS_TIM_HALL_SENSOR_INTERFACE_INSTANCE
1174#endif
1175
1176#if defined(STM32H7)
1177#define TIM_TIM1_ETR_COMP1_OUT TIM_TIM1_ETR_COMP1
1178#define TIM_TIM1_ETR_COMP2_OUT TIM_TIM1_ETR_COMP2
1179#define TIM_TIM8_ETR_COMP1_OUT TIM_TIM8_ETR_COMP1
1180#define TIM_TIM8_ETR_COMP2_OUT TIM_TIM8_ETR_COMP2
1181#define TIM_TIM2_ETR_COMP1_OUT TIM_TIM2_ETR_COMP1
1182#define TIM_TIM2_ETR_COMP2_OUT TIM_TIM2_ETR_COMP2
1183#define TIM_TIM3_ETR_COMP1_OUT TIM_TIM3_ETR_COMP1
1184#define TIM_TIM1_TI1_COMP1_OUT TIM_TIM1_TI1_COMP1
1185#define TIM_TIM8_TI1_COMP2_OUT TIM_TIM8_TI1_COMP2
1186#define TIM_TIM2_TI4_COMP1_OUT TIM_TIM2_TI4_COMP1
1187#define TIM_TIM2_TI4_COMP2_OUT TIM_TIM2_TI4_COMP2
1188#define TIM_TIM2_TI4_COMP1COMP2_OUT TIM_TIM2_TI4_COMP1_COMP2
1189#define TIM_TIM3_TI1_COMP1_OUT TIM_TIM3_TI1_COMP1
1190#define TIM_TIM3_TI1_COMP2_OUT TIM_TIM3_TI1_COMP2
1191#define TIM_TIM3_TI1_COMP1COMP2_OUT TIM_TIM3_TI1_COMP1_COMP2
1192#endif
1193
1201#define TSC_SYNC_POL_FALL TSC_SYNC_POLARITY_FALLING
1202#define TSC_SYNC_POL_RISE_HIGH TSC_SYNC_POLARITY_RISING
1210#define UART_ONEBIT_SAMPLING_DISABLED UART_ONE_BIT_SAMPLE_DISABLE
1211#define UART_ONEBIT_SAMPLING_ENABLED UART_ONE_BIT_SAMPLE_ENABLE
1212#define UART_ONE_BIT_SAMPLE_DISABLED UART_ONE_BIT_SAMPLE_DISABLE
1213#define UART_ONE_BIT_SAMPLE_ENABLED UART_ONE_BIT_SAMPLE_ENABLE
1214
1215#define __HAL_UART_ONEBIT_ENABLE __HAL_UART_ONE_BIT_SAMPLE_ENABLE
1216#define __HAL_UART_ONEBIT_DISABLE __HAL_UART_ONE_BIT_SAMPLE_DISABLE
1217
1218#define __DIV_SAMPLING16 UART_DIV_SAMPLING16
1219#define __DIVMANT_SAMPLING16 UART_DIVMANT_SAMPLING16
1220#define __DIVFRAQ_SAMPLING16 UART_DIVFRAQ_SAMPLING16
1221#define __UART_BRR_SAMPLING16 UART_BRR_SAMPLING16
1222
1223#define __DIV_SAMPLING8 UART_DIV_SAMPLING8
1224#define __DIVMANT_SAMPLING8 UART_DIVMANT_SAMPLING8
1225#define __DIVFRAQ_SAMPLING8 UART_DIVFRAQ_SAMPLING8
1226#define __UART_BRR_SAMPLING8 UART_BRR_SAMPLING8
1227
1228#define __DIV_LPUART UART_DIV_LPUART
1229
1230#define UART_WAKEUPMETHODE_IDLELINE UART_WAKEUPMETHOD_IDLELINE
1231#define UART_WAKEUPMETHODE_ADDRESSMARK UART_WAKEUPMETHOD_ADDRESSMARK
1232
1242#define USART_CLOCK_DISABLED USART_CLOCK_DISABLE
1243#define USART_CLOCK_ENABLED USART_CLOCK_ENABLE
1244
1245#define USARTNACK_ENABLED USART_NACK_ENABLE
1246#define USARTNACK_DISABLED USART_NACK_DISABLE
1254#define CFR_BASE WWDG_CFR_BASE
1255
1263#define CAN_FilterFIFO0 CAN_FILTER_FIFO0
1264#define CAN_FilterFIFO1 CAN_FILTER_FIFO1
1265#define CAN_IT_RQCP0 CAN_IT_TME
1266#define CAN_IT_RQCP1 CAN_IT_TME
1267#define CAN_IT_RQCP2 CAN_IT_TME
1268#define INAK_TIMEOUT CAN_TIMEOUT_VALUE
1269#define SLAK_TIMEOUT CAN_TIMEOUT_VALUE
1270#define CAN_TXSTATUS_FAILED ((uint8_t)0x00U)
1271#define CAN_TXSTATUS_OK ((uint8_t)0x01U)
1272#define CAN_TXSTATUS_PENDING ((uint8_t)0x02U)
1273
1282#define VLAN_TAG ETH_VLAN_TAG
1283#define MIN_ETH_PAYLOAD ETH_MIN_ETH_PAYLOAD
1284#define MAX_ETH_PAYLOAD ETH_MAX_ETH_PAYLOAD
1285#define JUMBO_FRAME_PAYLOAD ETH_JUMBO_FRAME_PAYLOAD
1286#define MACMIIAR_CR_MASK ETH_MACMIIAR_CR_MASK
1287#define MACCR_CLEAR_MASK ETH_MACCR_CLEAR_MASK
1288#define MACFCR_CLEAR_MASK ETH_MACFCR_CLEAR_MASK
1289#define DMAOMR_CLEAR_MASK ETH_DMAOMR_CLEAR_MASK
1290
1291#define ETH_MMCCR 0x00000100U
1292#define ETH_MMCRIR 0x00000104U
1293#define ETH_MMCTIR 0x00000108U
1294#define ETH_MMCRIMR 0x0000010CU
1295#define ETH_MMCTIMR 0x00000110U
1296#define ETH_MMCTGFSCCR 0x0000014CU
1297#define ETH_MMCTGFMSCCR 0x00000150U
1298#define ETH_MMCTGFCR 0x00000168U
1299#define ETH_MMCRFCECR 0x00000194U
1300#define ETH_MMCRFAECR 0x00000198U
1301#define ETH_MMCRGUFCR 0x000001C4U
1302
1303#define ETH_MAC_TXFIFO_FULL 0x02000000U /* Tx FIFO full */
1304#define ETH_MAC_TXFIFONOT_EMPTY 0x01000000U /* Tx FIFO not empty */
1305#define ETH_MAC_TXFIFO_WRITE_ACTIVE 0x00400000U /* Tx FIFO write active */
1306#define ETH_MAC_TXFIFO_IDLE 0x00000000U /* Tx FIFO read status: Idle */
1307#define ETH_MAC_TXFIFO_READ 0x00100000U /* Tx FIFO read status: Read (transferring data to the MAC transmitter) */
1308#define ETH_MAC_TXFIFO_WAITING 0x00200000U /* Tx FIFO read status: Waiting for TxStatus from MAC transmitter */
1309#define ETH_MAC_TXFIFO_WRITING 0x00300000U /* Tx FIFO read status: Writing the received TxStatus or flushing the TxFIFO */
1310#define ETH_MAC_TRANSMISSION_PAUSE 0x00080000U /* MAC transmitter in pause */
1311#define ETH_MAC_TRANSMITFRAMECONTROLLER_IDLE 0x00000000U /* MAC transmit frame controller: Idle */
1312#define ETH_MAC_TRANSMITFRAMECONTROLLER_WAITING 0x00020000U /* MAC transmit frame controller: Waiting for Status of previous frame or IFG/backoff period to be over */
1313#define ETH_MAC_TRANSMITFRAMECONTROLLER_GENRATING_PCF 0x00040000U /* MAC transmit frame controller: Generating and transmitting a Pause control frame (in full duplex mode) */
1314#define ETH_MAC_TRANSMITFRAMECONTROLLER_TRANSFERRING 0x00060000U /* MAC transmit frame controller: Transferring input frame for transmission */
1315#define ETH_MAC_MII_TRANSMIT_ACTIVE 0x00010000U /* MAC MII transmit engine active */
1316#define ETH_MAC_RXFIFO_EMPTY 0x00000000U /* Rx FIFO fill level: empty */
1317#define ETH_MAC_RXFIFO_BELOW_THRESHOLD 0x00000100U /* Rx FIFO fill level: fill-level below flow-control de-activate threshold */
1318#define ETH_MAC_RXFIFO_ABOVE_THRESHOLD 0x00000200U /* Rx FIFO fill level: fill-level above flow-control activate threshold */
1319#define ETH_MAC_RXFIFO_FULL 0x00000300U /* Rx FIFO fill level: full */
1320#if defined(STM32F1)
1321#else
1322#define ETH_MAC_READCONTROLLER_IDLE 0x00000000U /* Rx FIFO read controller IDLE state */
1323#define ETH_MAC_READCONTROLLER_READING_DATA 0x00000020U /* Rx FIFO read controller Reading frame data */
1324#define ETH_MAC_READCONTROLLER_READING_STATUS 0x00000040U /* Rx FIFO read controller Reading frame status (or time-stamp) */
1325#endif
1326#define ETH_MAC_READCONTROLLER_FLUSHING 0x00000060U /* Rx FIFO read controller Flushing the frame data and status */
1327#define ETH_MAC_RXFIFO_WRITE_ACTIVE 0x00000010U /* Rx FIFO write controller active */
1328#define ETH_MAC_SMALL_FIFO_NOTACTIVE 0x00000000U /* MAC small FIFO read / write controllers not active */
1329#define ETH_MAC_SMALL_FIFO_READ_ACTIVE 0x00000002U /* MAC small FIFO read controller active */
1330#define ETH_MAC_SMALL_FIFO_WRITE_ACTIVE 0x00000004U /* MAC small FIFO write controller active */
1331#define ETH_MAC_SMALL_FIFO_RW_ACTIVE 0x00000006U /* MAC small FIFO read / write controllers active */
1332#define ETH_MAC_MII_RECEIVE_PROTOCOL_ACTIVE 0x00000001U /* MAC MII receive protocol engine active */
1333
1341#define HAL_DCMI_ERROR_OVF HAL_DCMI_ERROR_OVR
1342#define DCMI_IT_OVF DCMI_IT_OVR
1343#define DCMI_FLAG_OVFRI DCMI_FLAG_OVRRI
1344#define DCMI_FLAG_OVFMI DCMI_FLAG_OVRMI
1345
1346#define HAL_DCMI_ConfigCROP HAL_DCMI_ConfigCrop
1347#define HAL_DCMI_EnableCROP HAL_DCMI_EnableCrop
1348#define HAL_DCMI_DisableCROP HAL_DCMI_DisableCrop
1349
1354#if defined(STM32L4) || defined(STM32F7) || defined(STM32F427xx) || defined(STM32F437xx) \
1355 || defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F469xx) || defined(STM32F479xx) \
1356 || defined(STM32H7)
1360#define DMA2D_ARGB8888 DMA2D_OUTPUT_ARGB8888
1361#define DMA2D_RGB888 DMA2D_OUTPUT_RGB888
1362#define DMA2D_RGB565 DMA2D_OUTPUT_RGB565
1363#define DMA2D_ARGB1555 DMA2D_OUTPUT_ARGB1555
1364#define DMA2D_ARGB4444 DMA2D_OUTPUT_ARGB4444
1365
1366#define CM_ARGB8888 DMA2D_INPUT_ARGB8888
1367#define CM_RGB888 DMA2D_INPUT_RGB888
1368#define CM_RGB565 DMA2D_INPUT_RGB565
1369#define CM_ARGB1555 DMA2D_INPUT_ARGB1555
1370#define CM_ARGB4444 DMA2D_INPUT_ARGB4444
1371#define CM_L8 DMA2D_INPUT_L8
1372#define CM_AL44 DMA2D_INPUT_AL44
1373#define CM_AL88 DMA2D_INPUT_AL88
1374#define CM_L4 DMA2D_INPUT_L4
1375#define CM_A8 DMA2D_INPUT_A8
1376#define CM_A4 DMA2D_INPUT_A4
1380#endif /* STM32L4 || STM32F7 || STM32F4 || STM32H7 */
1381
1390/* Exported functions --------------------------------------------------------*/
1391
1395#define HAL_CRYP_ComputationCpltCallback HAL_CRYPEx_ComputationCpltCallback
1403#define HAL_HASH_STATETypeDef HAL_HASH_StateTypeDef
1404#define HAL_HASHPhaseTypeDef HAL_HASH_PhaseTypeDef
1405#define HAL_HMAC_MD5_Finish HAL_HASH_MD5_Finish
1406#define HAL_HMAC_SHA1_Finish HAL_HASH_SHA1_Finish
1407#define HAL_HMAC_SHA224_Finish HAL_HASH_SHA224_Finish
1408#define HAL_HMAC_SHA256_Finish HAL_HASH_SHA256_Finish
1409
1410/*HASH Algorithm Selection*/
1411
1412#define HASH_AlgoSelection_SHA1 HASH_ALGOSELECTION_SHA1
1413#define HASH_AlgoSelection_SHA224 HASH_ALGOSELECTION_SHA224
1414#define HASH_AlgoSelection_SHA256 HASH_ALGOSELECTION_SHA256
1415#define HASH_AlgoSelection_MD5 HASH_ALGOSELECTION_MD5
1416
1417#define HASH_AlgoMode_HASH HASH_ALGOMODE_HASH
1418#define HASH_AlgoMode_HMAC HASH_ALGOMODE_HMAC
1419
1420#define HASH_HMACKeyType_ShortKey HASH_HMAC_KEYTYPE_SHORTKEY
1421#define HASH_HMACKeyType_LongKey HASH_HMAC_KEYTYPE_LONGKEY
1422
1423#if defined(STM32L4) || defined(STM32L5) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
1424
1425#define HAL_HASH_MD5_Accumulate HAL_HASH_MD5_Accmlt
1426#define HAL_HASH_MD5_Accumulate_End HAL_HASH_MD5_Accmlt_End
1427#define HAL_HASH_MD5_Accumulate_IT HAL_HASH_MD5_Accmlt_IT
1428#define HAL_HASH_MD5_Accumulate_End_IT HAL_HASH_MD5_Accmlt_End_IT
1429
1430#define HAL_HASH_SHA1_Accumulate HAL_HASH_SHA1_Accmlt
1431#define HAL_HASH_SHA1_Accumulate_End HAL_HASH_SHA1_Accmlt_End
1432#define HAL_HASH_SHA1_Accumulate_IT HAL_HASH_SHA1_Accmlt_IT
1433#define HAL_HASH_SHA1_Accumulate_End_IT HAL_HASH_SHA1_Accmlt_End_IT
1434
1435#define HAL_HASHEx_SHA224_Accumulate HAL_HASHEx_SHA224_Accmlt
1436#define HAL_HASHEx_SHA224_Accumulate_End HAL_HASHEx_SHA224_Accmlt_End
1437#define HAL_HASHEx_SHA224_Accumulate_IT HAL_HASHEx_SHA224_Accmlt_IT
1438#define HAL_HASHEx_SHA224_Accumulate_End_IT HAL_HASHEx_SHA224_Accmlt_End_IT
1439
1440#define HAL_HASHEx_SHA256_Accumulate HAL_HASHEx_SHA256_Accmlt
1441#define HAL_HASHEx_SHA256_Accumulate_End HAL_HASHEx_SHA256_Accmlt_End
1442#define HAL_HASHEx_SHA256_Accumulate_IT HAL_HASHEx_SHA256_Accmlt_IT
1443#define HAL_HASHEx_SHA256_Accumulate_End_IT HAL_HASHEx_SHA256_Accmlt_End_IT
1444
1445#endif /* STM32L4 || STM32L5 || STM32F2 || STM32F4 || STM32F7 || STM32H7 */
1453#define HAL_EnableDBGSleepMode HAL_DBGMCU_EnableDBGSleepMode
1454#define HAL_DisableDBGSleepMode HAL_DBGMCU_DisableDBGSleepMode
1455#define HAL_EnableDBGStopMode HAL_DBGMCU_EnableDBGStopMode
1456#define HAL_DisableDBGStopMode HAL_DBGMCU_DisableDBGStopMode
1457#define HAL_EnableDBGStandbyMode HAL_DBGMCU_EnableDBGStandbyMode
1458#define HAL_DisableDBGStandbyMode HAL_DBGMCU_DisableDBGStandbyMode
1459#define HAL_DBG_LowPowerConfig(Periph, cmd) (((cmd\
1460 )==ENABLE)? HAL_DBGMCU_DBG_EnableLowPowerConfig(Periph) : HAL_DBGMCU_DBG_DisableLowPowerConfig(Periph))
1461#define HAL_VREFINT_OutputSelect HAL_SYSCFG_VREFINT_OutputSelect
1462#define HAL_Lock_Cmd(cmd) (((cmd)==ENABLE) ? HAL_SYSCFG_Enable_Lock_VREFINT() : HAL_SYSCFG_Disable_Lock_VREFINT())
1463#if defined(STM32L0)
1464#else
1465#define HAL_VREFINT_Cmd(cmd) (((cmd)==ENABLE)? HAL_SYSCFG_EnableVREFINT() : HAL_SYSCFG_DisableVREFINT())
1466#endif
1467#define HAL_ADC_EnableBuffer_Cmd(cmd) (((cmd)==ENABLE) ? HAL_ADCEx_EnableVREFINT() : HAL_ADCEx_DisableVREFINT())
1468#define HAL_ADC_EnableBufferSensor_Cmd(cmd) (((cmd\
1469 )==ENABLE) ? HAL_ADCEx_EnableVREFINTTempSensor() : HAL_ADCEx_DisableVREFINTTempSensor())
1470#if defined(STM32H7A3xx) || defined(STM32H7B3xx) || defined(STM32H7B0xx) || defined(STM32H7A3xxQ) || defined(STM32H7B3xxQ) || defined(STM32H7B0xxQ)
1471#define HAL_EnableSRDomainDBGStopMode HAL_EnableDomain3DBGStopMode
1472#define HAL_DisableSRDomainDBGStopMode HAL_DisableDomain3DBGStopMode
1473#define HAL_EnableSRDomainDBGStandbyMode HAL_EnableDomain3DBGStandbyMode
1474#define HAL_DisableSRDomainDBGStandbyMode HAL_DisableDomain3DBGStandbyMode
1475#endif /* STM32H7A3xx || STM32H7B3xx || STM32H7B0xx || STM32H7A3xxQ || STM32H7B3xxQ || STM32H7B0xxQ */
1476
1484#define FLASH_HalfPageProgram HAL_FLASHEx_HalfPageProgram
1485#define FLASH_EnableRunPowerDown HAL_FLASHEx_EnableRunPowerDown
1486#define FLASH_DisableRunPowerDown HAL_FLASHEx_DisableRunPowerDown
1487#define HAL_DATA_EEPROMEx_Unlock HAL_FLASHEx_DATAEEPROM_Unlock
1488#define HAL_DATA_EEPROMEx_Lock HAL_FLASHEx_DATAEEPROM_Lock
1489#define HAL_DATA_EEPROMEx_Erase HAL_FLASHEx_DATAEEPROM_Erase
1490#define HAL_DATA_EEPROMEx_Program HAL_FLASHEx_DATAEEPROM_Program
1491
1499#define HAL_I2CEx_AnalogFilter_Config HAL_I2CEx_ConfigAnalogFilter
1500#define HAL_I2CEx_DigitalFilter_Config HAL_I2CEx_ConfigDigitalFilter
1501#define HAL_FMPI2CEx_AnalogFilter_Config HAL_FMPI2CEx_ConfigAnalogFilter
1502#define HAL_FMPI2CEx_DigitalFilter_Config HAL_FMPI2CEx_ConfigDigitalFilter
1503
1504#define HAL_I2CFastModePlusConfig(SYSCFG_I2CFastModePlus, cmd) (((cmd\
1505 )==ENABLE)? HAL_I2CEx_EnableFastModePlus(SYSCFG_I2CFastModePlus): HAL_I2CEx_DisableFastModePlus(SYSCFG_I2CFastModePlus))
1506
1507#if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) || defined(STM32L5) || defined(STM32G4) || defined(STM32L1)
1508#define HAL_I2C_Master_Sequential_Transmit_IT HAL_I2C_Master_Seq_Transmit_IT
1509#define HAL_I2C_Master_Sequential_Receive_IT HAL_I2C_Master_Seq_Receive_IT
1510#define HAL_I2C_Slave_Sequential_Transmit_IT HAL_I2C_Slave_Seq_Transmit_IT
1511#define HAL_I2C_Slave_Sequential_Receive_IT HAL_I2C_Slave_Seq_Receive_IT
1512#endif /* STM32H7 || STM32WB || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 || STM32L4 || STM32L5 || STM32G4 || STM32L1 */
1513#if defined(STM32H7) || defined(STM32WB) || defined(STM32G0) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4) || defined(STM32L5) || defined(STM32G4)|| defined(STM32L1)
1514#define HAL_I2C_Master_Sequential_Transmit_DMA HAL_I2C_Master_Seq_Transmit_DMA
1515#define HAL_I2C_Master_Sequential_Receive_DMA HAL_I2C_Master_Seq_Receive_DMA
1516#define HAL_I2C_Slave_Sequential_Transmit_DMA HAL_I2C_Slave_Seq_Transmit_DMA
1517#define HAL_I2C_Slave_Sequential_Receive_DMA HAL_I2C_Slave_Seq_Receive_DMA
1518#endif /* STM32H7 || STM32WB || STM32G0 || STM32F4 || STM32F7 || STM32L0 || STM32L4 || STM32L5 || STM32G4 || STM32L1 */
1519
1520#if defined(STM32F4)
1521#define HAL_FMPI2C_Master_Sequential_Transmit_IT HAL_FMPI2C_Master_Seq_Transmit_IT
1522#define HAL_FMPI2C_Master_Sequential_Receive_IT HAL_FMPI2C_Master_Seq_Receive_IT
1523#define HAL_FMPI2C_Slave_Sequential_Transmit_IT HAL_FMPI2C_Slave_Seq_Transmit_IT
1524#define HAL_FMPI2C_Slave_Sequential_Receive_IT HAL_FMPI2C_Slave_Seq_Receive_IT
1525#define HAL_FMPI2C_Master_Sequential_Transmit_DMA HAL_FMPI2C_Master_Seq_Transmit_DMA
1526#define HAL_FMPI2C_Master_Sequential_Receive_DMA HAL_FMPI2C_Master_Seq_Receive_DMA
1527#define HAL_FMPI2C_Slave_Sequential_Transmit_DMA HAL_FMPI2C_Slave_Seq_Transmit_DMA
1528#define HAL_FMPI2C_Slave_Sequential_Receive_DMA HAL_FMPI2C_Slave_Seq_Receive_DMA
1529#endif /* STM32F4 */
1538#if defined(STM32G0)
1539#define HAL_PWR_ConfigPVD HAL_PWREx_ConfigPVD
1540#define HAL_PWR_EnablePVD HAL_PWREx_EnablePVD
1541#define HAL_PWR_DisablePVD HAL_PWREx_DisablePVD
1542#define HAL_PWR_PVD_IRQHandler HAL_PWREx_PVD_IRQHandler
1543#endif
1544#define HAL_PWR_PVDConfig HAL_PWR_ConfigPVD
1545#define HAL_PWR_DisableBkUpReg HAL_PWREx_DisableBkUpReg
1546#define HAL_PWR_DisableFlashPowerDown HAL_PWREx_DisableFlashPowerDown
1547#define HAL_PWR_DisableVddio2Monitor HAL_PWREx_DisableVddio2Monitor
1548#define HAL_PWR_EnableBkUpReg HAL_PWREx_EnableBkUpReg
1549#define HAL_PWR_EnableFlashPowerDown HAL_PWREx_EnableFlashPowerDown
1550#define HAL_PWR_EnableVddio2Monitor HAL_PWREx_EnableVddio2Monitor
1551#define HAL_PWR_PVD_PVM_IRQHandler HAL_PWREx_PVD_PVM_IRQHandler
1552#define HAL_PWR_PVDLevelConfig HAL_PWR_ConfigPVD
1553#define HAL_PWR_Vddio2Monitor_IRQHandler HAL_PWREx_Vddio2Monitor_IRQHandler
1554#define HAL_PWR_Vddio2MonitorCallback HAL_PWREx_Vddio2MonitorCallback
1555#define HAL_PWREx_ActivateOverDrive HAL_PWREx_EnableOverDrive
1556#define HAL_PWREx_DeactivateOverDrive HAL_PWREx_DisableOverDrive
1557#define HAL_PWREx_DisableSDADCAnalog HAL_PWREx_DisableSDADC
1558#define HAL_PWREx_EnableSDADCAnalog HAL_PWREx_EnableSDADC
1559#define HAL_PWREx_PVMConfig HAL_PWREx_ConfigPVM
1560
1561#define PWR_MODE_NORMAL PWR_PVD_MODE_NORMAL
1562#define PWR_MODE_IT_RISING PWR_PVD_MODE_IT_RISING
1563#define PWR_MODE_IT_FALLING PWR_PVD_MODE_IT_FALLING
1564#define PWR_MODE_IT_RISING_FALLING PWR_PVD_MODE_IT_RISING_FALLING
1565#define PWR_MODE_EVENT_RISING PWR_PVD_MODE_EVENT_RISING
1566#define PWR_MODE_EVENT_FALLING PWR_PVD_MODE_EVENT_FALLING
1567#define PWR_MODE_EVENT_RISING_FALLING PWR_PVD_MODE_EVENT_RISING_FALLING
1568
1569#define CR_OFFSET_BB PWR_CR_OFFSET_BB
1570#define CSR_OFFSET_BB PWR_CSR_OFFSET_BB
1571#define PMODE_BIT_NUMBER VOS_BIT_NUMBER
1572#define CR_PMODE_BB CR_VOS_BB
1573
1574#define DBP_BitNumber DBP_BIT_NUMBER
1575#define PVDE_BitNumber PVDE_BIT_NUMBER
1576#define PMODE_BitNumber PMODE_BIT_NUMBER
1577#define EWUP_BitNumber EWUP_BIT_NUMBER
1578#define FPDS_BitNumber FPDS_BIT_NUMBER
1579#define ODEN_BitNumber ODEN_BIT_NUMBER
1580#define ODSWEN_BitNumber ODSWEN_BIT_NUMBER
1581#define MRLVDS_BitNumber MRLVDS_BIT_NUMBER
1582#define LPLVDS_BitNumber LPLVDS_BIT_NUMBER
1583#define BRE_BitNumber BRE_BIT_NUMBER
1584
1585#define PWR_MODE_EVT PWR_PVD_MODE_NORMAL
1586
1594#define HAL_SMBUS_Slave_Listen_IT HAL_SMBUS_EnableListen_IT
1595#define HAL_SMBUS_SlaveAddrCallback HAL_SMBUS_AddrCallback
1596#define HAL_SMBUS_SlaveListenCpltCallback HAL_SMBUS_ListenCpltCallback
1604#define HAL_SPI_FlushRxFifo HAL_SPIEx_FlushRxFifo
1612#define HAL_TIM_DMADelayPulseCplt TIM_DMADelayPulseCplt
1613#define HAL_TIM_DMAError TIM_DMAError
1614#define HAL_TIM_DMACaptureCplt TIM_DMACaptureCplt
1615#define HAL_TIMEx_DMACommutationCplt TIMEx_DMACommutationCplt
1616#if defined(STM32H7) || defined(STM32G0) || defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32L0) || defined(STM32L4)
1617#define HAL_TIM_SlaveConfigSynchronization HAL_TIM_SlaveConfigSynchro
1618#define HAL_TIM_SlaveConfigSynchronization_IT HAL_TIM_SlaveConfigSynchro_IT
1619#define HAL_TIMEx_CommutationCallback HAL_TIMEx_CommutCallback
1620#define HAL_TIMEx_ConfigCommutationEvent HAL_TIMEx_ConfigCommutEvent
1621#define HAL_TIMEx_ConfigCommutationEvent_IT HAL_TIMEx_ConfigCommutEvent_IT
1622#define HAL_TIMEx_ConfigCommutationEvent_DMA HAL_TIMEx_ConfigCommutEvent_DMA
1623#endif /* STM32H7 || STM32G0 || STM32F0 || STM32F1 || STM32F2 || STM32F3 || STM32F4 || STM32F7 || STM32L0 */
1631#define HAL_UART_WakeupCallback HAL_UARTEx_WakeupCallback
1639#define HAL_LTDC_LineEvenCallback HAL_LTDC_LineEventCallback
1640#define HAL_LTDC_Relaod HAL_LTDC_Reload
1641#define HAL_LTDC_StructInitFromVideoConfig HAL_LTDCEx_StructInitFromVideoConfig
1642#define HAL_LTDC_StructInitFromAdaptedCommandConfig HAL_LTDCEx_StructInitFromAdaptedCommandConfig
1656/* Exported macros ------------------------------------------------------------*/
1657
1661#define AES_IT_CC CRYP_IT_CC
1662#define AES_IT_ERR CRYP_IT_ERR
1663#define AES_FLAG_CCF CRYP_FLAG_CCF
1671#define __HAL_GET_BOOT_MODE __HAL_SYSCFG_GET_BOOT_MODE
1672#define __HAL_REMAPMEMORY_FLASH __HAL_SYSCFG_REMAPMEMORY_FLASH
1673#define __HAL_REMAPMEMORY_SYSTEMFLASH __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH
1674#define __HAL_REMAPMEMORY_SRAM __HAL_SYSCFG_REMAPMEMORY_SRAM
1675#define __HAL_REMAPMEMORY_FMC __HAL_SYSCFG_REMAPMEMORY_FMC
1676#define __HAL_REMAPMEMORY_FMC_SDRAM __HAL_SYSCFG_REMAPMEMORY_FMC_SDRAM
1677#define __HAL_REMAPMEMORY_FSMC __HAL_SYSCFG_REMAPMEMORY_FSMC
1678#define __HAL_REMAPMEMORY_QUADSPI __HAL_SYSCFG_REMAPMEMORY_QUADSPI
1679#define __HAL_FMC_BANK __HAL_SYSCFG_FMC_BANK
1680#define __HAL_GET_FLAG __HAL_SYSCFG_GET_FLAG
1681#define __HAL_CLEAR_FLAG __HAL_SYSCFG_CLEAR_FLAG
1682#define __HAL_VREFINT_OUT_ENABLE __HAL_SYSCFG_VREFINT_OUT_ENABLE
1683#define __HAL_VREFINT_OUT_DISABLE __HAL_SYSCFG_VREFINT_OUT_DISABLE
1684#define __HAL_SYSCFG_SRAM2_WRP_ENABLE __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE
1685
1686#define SYSCFG_FLAG_VREF_READY SYSCFG_FLAG_VREFINT_READY
1687#define SYSCFG_FLAG_RC48 RCC_FLAG_HSI48
1688#define IS_SYSCFG_FASTMODEPLUS_CONFIG IS_I2C_FASTMODEPLUS
1689#define UFB_MODE_BitNumber UFB_MODE_BIT_NUMBER
1690#define CMP_PD_BitNumber CMP_PD_BIT_NUMBER
1691
1700#define __ADC_ENABLE __HAL_ADC_ENABLE
1701#define __ADC_DISABLE __HAL_ADC_DISABLE
1702#define __HAL_ADC_ENABLING_CONDITIONS ADC_ENABLING_CONDITIONS
1703#define __HAL_ADC_DISABLING_CONDITIONS ADC_DISABLING_CONDITIONS
1704#define __HAL_ADC_IS_ENABLED ADC_IS_ENABLE
1705#define __ADC_IS_ENABLED ADC_IS_ENABLE
1706#define __HAL_ADC_IS_SOFTWARE_START_REGULAR ADC_IS_SOFTWARE_START_REGULAR
1707#define __HAL_ADC_IS_SOFTWARE_START_INJECTED ADC_IS_SOFTWARE_START_INJECTED
1708#define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED ADC_IS_CONVERSION_ONGOING_REGULAR_INJECTED
1709#define __HAL_ADC_IS_CONVERSION_ONGOING_REGULAR ADC_IS_CONVERSION_ONGOING_REGULAR
1710#define __HAL_ADC_IS_CONVERSION_ONGOING_INJECTED ADC_IS_CONVERSION_ONGOING_INJECTED
1711#define __HAL_ADC_IS_CONVERSION_ONGOING ADC_IS_CONVERSION_ONGOING
1712#define __HAL_ADC_CLEAR_ERRORCODE ADC_CLEAR_ERRORCODE
1713
1714#define __HAL_ADC_GET_RESOLUTION ADC_GET_RESOLUTION
1715#define __HAL_ADC_JSQR_RK ADC_JSQR_RK
1716#define __HAL_ADC_CFGR_AWD1CH ADC_CFGR_AWD1CH_SHIFT
1717#define __HAL_ADC_CFGR_AWD23CR ADC_CFGR_AWD23CR
1718#define __HAL_ADC_CFGR_INJECT_AUTO_CONVERSION ADC_CFGR_INJECT_AUTO_CONVERSION
1719#define __HAL_ADC_CFGR_INJECT_CONTEXT_QUEUE ADC_CFGR_INJECT_CONTEXT_QUEUE
1720#define __HAL_ADC_CFGR_INJECT_DISCCONTINUOUS ADC_CFGR_INJECT_DISCCONTINUOUS
1721#define __HAL_ADC_CFGR_REG_DISCCONTINUOUS ADC_CFGR_REG_DISCCONTINUOUS
1722#define __HAL_ADC_CFGR_DISCONTINUOUS_NUM ADC_CFGR_DISCONTINUOUS_NUM
1723#define __HAL_ADC_CFGR_AUTOWAIT ADC_CFGR_AUTOWAIT
1724#define __HAL_ADC_CFGR_CONTINUOUS ADC_CFGR_CONTINUOUS
1725#define __HAL_ADC_CFGR_OVERRUN ADC_CFGR_OVERRUN
1726#define __HAL_ADC_CFGR_DMACONTREQ ADC_CFGR_DMACONTREQ
1727#define __HAL_ADC_CFGR_EXTSEL ADC_CFGR_EXTSEL_SET
1728#define __HAL_ADC_JSQR_JEXTSEL ADC_JSQR_JEXTSEL_SET
1729#define __HAL_ADC_OFR_CHANNEL ADC_OFR_CHANNEL
1730#define __HAL_ADC_DIFSEL_CHANNEL ADC_DIFSEL_CHANNEL
1731#define __HAL_ADC_CALFACT_DIFF_SET ADC_CALFACT_DIFF_SET
1732#define __HAL_ADC_CALFACT_DIFF_GET ADC_CALFACT_DIFF_GET
1733#define __HAL_ADC_TRX_HIGHTHRESHOLD ADC_TRX_HIGHTHRESHOLD
1734
1735#define __HAL_ADC_OFFSET_SHIFT_RESOLUTION ADC_OFFSET_SHIFT_RESOLUTION
1736#define __HAL_ADC_AWD1THRESHOLD_SHIFT_RESOLUTION ADC_AWD1THRESHOLD_SHIFT_RESOLUTION
1737#define __HAL_ADC_AWD23THRESHOLD_SHIFT_RESOLUTION ADC_AWD23THRESHOLD_SHIFT_RESOLUTION
1738#define __HAL_ADC_COMMON_REGISTER ADC_COMMON_REGISTER
1739#define __HAL_ADC_COMMON_CCR_MULTI ADC_COMMON_CCR_MULTI
1740#define __HAL_ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE
1741#define __ADC_MULTIMODE_IS_ENABLED ADC_MULTIMODE_IS_ENABLE
1742#define __HAL_ADC_NONMULTIMODE_OR_MULTIMODEMASTER ADC_NONMULTIMODE_OR_MULTIMODEMASTER
1743#define __HAL_ADC_COMMON_ADC_OTHER ADC_COMMON_ADC_OTHER
1744#define __HAL_ADC_MULTI_SLAVE ADC_MULTI_SLAVE
1745
1746#define __HAL_ADC_SQR1_L ADC_SQR1_L_SHIFT
1747#define __HAL_ADC_JSQR_JL ADC_JSQR_JL_SHIFT
1748#define __HAL_ADC_JSQR_RK_JL ADC_JSQR_RK_JL
1749#define __HAL_ADC_CR1_DISCONTINUOUS_NUM ADC_CR1_DISCONTINUOUS_NUM
1750#define __HAL_ADC_CR1_SCAN ADC_CR1_SCAN_SET
1751#define __HAL_ADC_CONVCYCLES_MAX_RANGE ADC_CONVCYCLES_MAX_RANGE
1752#define __HAL_ADC_CLOCK_PRESCALER_RANGE ADC_CLOCK_PRESCALER_RANGE
1753#define __HAL_ADC_GET_CLOCK_PRESCALER ADC_GET_CLOCK_PRESCALER
1754
1755#define __HAL_ADC_SQR1 ADC_SQR1
1756#define __HAL_ADC_SMPR1 ADC_SMPR1
1757#define __HAL_ADC_SMPR2 ADC_SMPR2
1758#define __HAL_ADC_SQR3_RK ADC_SQR3_RK
1759#define __HAL_ADC_SQR2_RK ADC_SQR2_RK
1760#define __HAL_ADC_SQR1_RK ADC_SQR1_RK
1761#define __HAL_ADC_CR2_CONTINUOUS ADC_CR2_CONTINUOUS
1762#define __HAL_ADC_CR1_DISCONTINUOUS ADC_CR1_DISCONTINUOUS
1763#define __HAL_ADC_CR1_SCANCONV ADC_CR1_SCANCONV
1764#define __HAL_ADC_CR2_EOCSelection ADC_CR2_EOCSelection
1765#define __HAL_ADC_CR2_DMAContReq ADC_CR2_DMAContReq
1766#define __HAL_ADC_JSQR ADC_JSQR
1767
1768#define __HAL_ADC_CHSELR_CHANNEL ADC_CHSELR_CHANNEL
1769#define __HAL_ADC_CFGR1_REG_DISCCONTINUOUS ADC_CFGR1_REG_DISCCONTINUOUS
1770#define __HAL_ADC_CFGR1_AUTOOFF ADC_CFGR1_AUTOOFF
1771#define __HAL_ADC_CFGR1_AUTOWAIT ADC_CFGR1_AUTOWAIT
1772#define __HAL_ADC_CFGR1_CONTINUOUS ADC_CFGR1_CONTINUOUS
1773#define __HAL_ADC_CFGR1_OVERRUN ADC_CFGR1_OVERRUN
1774#define __HAL_ADC_CFGR1_SCANDIR ADC_CFGR1_SCANDIR
1775#define __HAL_ADC_CFGR1_DMACONTREQ ADC_CFGR1_DMACONTREQ
1776
1784#define __HAL_DHR12R1_ALIGNEMENT DAC_DHR12R1_ALIGNMENT
1785#define __HAL_DHR12R2_ALIGNEMENT DAC_DHR12R2_ALIGNMENT
1786#define __HAL_DHR12RD_ALIGNEMENT DAC_DHR12RD_ALIGNMENT
1787#define IS_DAC_GENERATE_WAVE IS_DAC_WAVE
1788
1796#define __HAL_FREEZE_TIM1_DBGMCU __HAL_DBGMCU_FREEZE_TIM1
1797#define __HAL_UNFREEZE_TIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM1
1798#define __HAL_FREEZE_TIM2_DBGMCU __HAL_DBGMCU_FREEZE_TIM2
1799#define __HAL_UNFREEZE_TIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM2
1800#define __HAL_FREEZE_TIM3_DBGMCU __HAL_DBGMCU_FREEZE_TIM3
1801#define __HAL_UNFREEZE_TIM3_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM3
1802#define __HAL_FREEZE_TIM4_DBGMCU __HAL_DBGMCU_FREEZE_TIM4
1803#define __HAL_UNFREEZE_TIM4_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM4
1804#define __HAL_FREEZE_TIM5_DBGMCU __HAL_DBGMCU_FREEZE_TIM5
1805#define __HAL_UNFREEZE_TIM5_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM5
1806#define __HAL_FREEZE_TIM6_DBGMCU __HAL_DBGMCU_FREEZE_TIM6
1807#define __HAL_UNFREEZE_TIM6_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM6
1808#define __HAL_FREEZE_TIM7_DBGMCU __HAL_DBGMCU_FREEZE_TIM7
1809#define __HAL_UNFREEZE_TIM7_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM7
1810#define __HAL_FREEZE_TIM8_DBGMCU __HAL_DBGMCU_FREEZE_TIM8
1811#define __HAL_UNFREEZE_TIM8_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM8
1812
1813#define __HAL_FREEZE_TIM9_DBGMCU __HAL_DBGMCU_FREEZE_TIM9
1814#define __HAL_UNFREEZE_TIM9_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM9
1815#define __HAL_FREEZE_TIM10_DBGMCU __HAL_DBGMCU_FREEZE_TIM10
1816#define __HAL_UNFREEZE_TIM10_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM10
1817#define __HAL_FREEZE_TIM11_DBGMCU __HAL_DBGMCU_FREEZE_TIM11
1818#define __HAL_UNFREEZE_TIM11_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM11
1819#define __HAL_FREEZE_TIM12_DBGMCU __HAL_DBGMCU_FREEZE_TIM12
1820#define __HAL_UNFREEZE_TIM12_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM12
1821#define __HAL_FREEZE_TIM13_DBGMCU __HAL_DBGMCU_FREEZE_TIM13
1822#define __HAL_UNFREEZE_TIM13_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM13
1823#define __HAL_FREEZE_TIM14_DBGMCU __HAL_DBGMCU_FREEZE_TIM14
1824#define __HAL_UNFREEZE_TIM14_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM14
1825#define __HAL_FREEZE_CAN2_DBGMCU __HAL_DBGMCU_FREEZE_CAN2
1826#define __HAL_UNFREEZE_CAN2_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN2
1827
1828
1829#define __HAL_FREEZE_TIM15_DBGMCU __HAL_DBGMCU_FREEZE_TIM15
1830#define __HAL_UNFREEZE_TIM15_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM15
1831#define __HAL_FREEZE_TIM16_DBGMCU __HAL_DBGMCU_FREEZE_TIM16
1832#define __HAL_UNFREEZE_TIM16_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM16
1833#define __HAL_FREEZE_TIM17_DBGMCU __HAL_DBGMCU_FREEZE_TIM17
1834#define __HAL_UNFREEZE_TIM17_DBGMCU __HAL_DBGMCU_UNFREEZE_TIM17
1835#define __HAL_FREEZE_RTC_DBGMCU __HAL_DBGMCU_FREEZE_RTC
1836#define __HAL_UNFREEZE_RTC_DBGMCU __HAL_DBGMCU_UNFREEZE_RTC
1837#if defined(STM32H7)
1838#define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG1
1839#define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UnFreeze_WWDG1
1840#define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG1
1841#define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UnFreeze_IWDG1
1842#else
1843#define __HAL_FREEZE_WWDG_DBGMCU __HAL_DBGMCU_FREEZE_WWDG
1844#define __HAL_UNFREEZE_WWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_WWDG
1845#define __HAL_FREEZE_IWDG_DBGMCU __HAL_DBGMCU_FREEZE_IWDG
1846#define __HAL_UNFREEZE_IWDG_DBGMCU __HAL_DBGMCU_UNFREEZE_IWDG
1847#endif /* STM32H7 */
1848#define __HAL_FREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT
1849#define __HAL_UNFREEZE_I2C1_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT
1850#define __HAL_FREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C2_TIMEOUT
1851#define __HAL_UNFREEZE_I2C2_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C2_TIMEOUT
1852#define __HAL_FREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_FREEZE_I2C3_TIMEOUT
1853#define __HAL_UNFREEZE_I2C3_TIMEOUT_DBGMCU __HAL_DBGMCU_UNFREEZE_I2C3_TIMEOUT
1854#define __HAL_FREEZE_CAN1_DBGMCU __HAL_DBGMCU_FREEZE_CAN1
1855#define __HAL_UNFREEZE_CAN1_DBGMCU __HAL_DBGMCU_UNFREEZE_CAN1
1856#define __HAL_FREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM1
1857#define __HAL_UNFREEZE_LPTIM1_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM1
1858#define __HAL_FREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_FREEZE_LPTIM2
1859#define __HAL_UNFREEZE_LPTIM2_DBGMCU __HAL_DBGMCU_UNFREEZE_LPTIM2
1860
1868#if defined(STM32F3)
1869#define COMP_START __HAL_COMP_ENABLE
1870#define COMP_STOP __HAL_COMP_DISABLE
1871#define COMP_LOCK __HAL_COMP_LOCK
1872
1873#if defined(STM32F301x8) || defined(STM32F302x8) || defined(STM32F318xx) || defined(STM32F303x8) || defined(STM32F334x8) || defined(STM32F328xx)
1874#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \
1875 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \
1876 __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE())
1877#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \
1878 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \
1879 __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE())
1880#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \
1881 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \
1882 __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE())
1883#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \
1884 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \
1885 __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE())
1886#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \
1887 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \
1888 __HAL_COMP_COMP6_EXTI_ENABLE_IT())
1889#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \
1890 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \
1891 __HAL_COMP_COMP6_EXTI_DISABLE_IT())
1892#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \
1893 ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \
1894 __HAL_COMP_COMP6_EXTI_GET_FLAG())
1895#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \
1896 ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \
1897 __HAL_COMP_COMP6_EXTI_CLEAR_FLAG())
1898# endif
1899# if defined(STM32F302xE) || defined(STM32F302xC)
1900#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
1901 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \
1902 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \
1903 __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE())
1904#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
1905 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \
1906 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \
1907 __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE())
1908#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
1909 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \
1910 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \
1911 __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE())
1912#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
1913 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \
1914 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \
1915 __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE())
1916#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
1917 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \
1918 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \
1919 __HAL_COMP_COMP6_EXTI_ENABLE_IT())
1920#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
1921 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \
1922 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \
1923 __HAL_COMP_COMP6_EXTI_DISABLE_IT())
1924#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
1925 ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \
1926 ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \
1927 __HAL_COMP_COMP6_EXTI_GET_FLAG())
1928#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
1929 ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \
1930 ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \
1931 __HAL_COMP_COMP6_EXTI_CLEAR_FLAG())
1932# endif
1933# if defined(STM32F303xE) || defined(STM32F398xx) || defined(STM32F303xC) || defined(STM32F358xx)
1934#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
1935 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE() : \
1936 ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_RISING_EDGE() : \
1937 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_RISING_EDGE() : \
1938 ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_RISING_EDGE() : \
1939 ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_RISING_EDGE() : \
1940 __HAL_COMP_COMP7_EXTI_ENABLE_RISING_EDGE())
1941#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
1942 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE() : \
1943 ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_RISING_EDGE() : \
1944 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_RISING_EDGE() : \
1945 ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_RISING_EDGE() : \
1946 ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_RISING_EDGE() : \
1947 __HAL_COMP_COMP7_EXTI_DISABLE_RISING_EDGE())
1948#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
1949 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE() : \
1950 ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_FALLING_EDGE() : \
1951 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_FALLING_EDGE() : \
1952 ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_FALLING_EDGE() : \
1953 ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_FALLING_EDGE() : \
1954 __HAL_COMP_COMP7_EXTI_ENABLE_FALLING_EDGE())
1955#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
1956 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE() : \
1957 ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_FALLING_EDGE() : \
1958 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_FALLING_EDGE() : \
1959 ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_FALLING_EDGE() : \
1960 ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_FALLING_EDGE() : \
1961 __HAL_COMP_COMP7_EXTI_DISABLE_FALLING_EDGE())
1962#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
1963 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_ENABLE_IT() : \
1964 ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_ENABLE_IT() : \
1965 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_ENABLE_IT() : \
1966 ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_ENABLE_IT() : \
1967 ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_ENABLE_IT() : \
1968 __HAL_COMP_COMP7_EXTI_ENABLE_IT())
1969#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
1970 ((__EXTILINE__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_DISABLE_IT() : \
1971 ((__EXTILINE__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_DISABLE_IT() : \
1972 ((__EXTILINE__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_DISABLE_IT() : \
1973 ((__EXTILINE__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_DISABLE_IT() : \
1974 ((__EXTILINE__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_DISABLE_IT() : \
1975 __HAL_COMP_COMP7_EXTI_DISABLE_IT())
1976#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
1977 ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_GET_FLAG() : \
1978 ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_GET_FLAG() : \
1979 ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_GET_FLAG() : \
1980 ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_GET_FLAG() : \
1981 ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_GET_FLAG() : \
1982 __HAL_COMP_COMP7_EXTI_GET_FLAG())
1983#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
1984 ((__FLAG__) == COMP_EXTI_LINE_COMP2) ? __HAL_COMP_COMP2_EXTI_CLEAR_FLAG() : \
1985 ((__FLAG__) == COMP_EXTI_LINE_COMP3) ? __HAL_COMP_COMP3_EXTI_CLEAR_FLAG() : \
1986 ((__FLAG__) == COMP_EXTI_LINE_COMP4) ? __HAL_COMP_COMP4_EXTI_CLEAR_FLAG() : \
1987 ((__FLAG__) == COMP_EXTI_LINE_COMP5) ? __HAL_COMP_COMP5_EXTI_CLEAR_FLAG() : \
1988 ((__FLAG__) == COMP_EXTI_LINE_COMP6) ? __HAL_COMP_COMP6_EXTI_CLEAR_FLAG() : \
1989 __HAL_COMP_COMP7_EXTI_CLEAR_FLAG())
1990# endif
1991# if defined(STM32F373xC) ||defined(STM32F378xx)
1992#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
1993 __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE())
1994#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
1995 __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE())
1996#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
1997 __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE())
1998#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
1999 __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE())
2000#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
2001 __HAL_COMP_COMP2_EXTI_ENABLE_IT())
2002#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
2003 __HAL_COMP_COMP2_EXTI_DISABLE_IT())
2004#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
2005 __HAL_COMP_COMP2_EXTI_GET_FLAG())
2006#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
2007 __HAL_COMP_COMP2_EXTI_CLEAR_FLAG())
2008# endif
2009#else
2010#define __HAL_COMP_EXTI_RISING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_RISING_EDGE() : \
2011 __HAL_COMP_COMP2_EXTI_ENABLE_RISING_EDGE())
2012#define __HAL_COMP_EXTI_RISING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_RISING_EDGE() : \
2013 __HAL_COMP_COMP2_EXTI_DISABLE_RISING_EDGE())
2014#define __HAL_COMP_EXTI_FALLING_IT_ENABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_FALLING_EDGE() : \
2015 __HAL_COMP_COMP2_EXTI_ENABLE_FALLING_EDGE())
2016#define __HAL_COMP_EXTI_FALLING_IT_DISABLE(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_FALLING_EDGE() : \
2017 __HAL_COMP_COMP2_EXTI_DISABLE_FALLING_EDGE())
2018#define __HAL_COMP_EXTI_ENABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_ENABLE_IT() : \
2019 __HAL_COMP_COMP2_EXTI_ENABLE_IT())
2020#define __HAL_COMP_EXTI_DISABLE_IT(__EXTILINE__) (((__EXTILINE__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_DISABLE_IT() : \
2021 __HAL_COMP_COMP2_EXTI_DISABLE_IT())
2022#define __HAL_COMP_EXTI_GET_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_GET_FLAG() : \
2023 __HAL_COMP_COMP2_EXTI_GET_FLAG())
2024#define __HAL_COMP_EXTI_CLEAR_FLAG(__FLAG__) (((__FLAG__) == COMP_EXTI_LINE_COMP1) ? __HAL_COMP_COMP1_EXTI_CLEAR_FLAG() : \
2025 __HAL_COMP_COMP2_EXTI_CLEAR_FLAG())
2026#endif
2027
2028#define __HAL_COMP_GET_EXTI_LINE COMP_GET_EXTI_LINE
2029
2030#if defined(STM32L0) || defined(STM32L4)
2031/* Note: On these STM32 families, the only argument of this macro */
2032/* is COMP_FLAG_LOCK. */
2033/* This macro is replaced by __HAL_COMP_IS_LOCKED with only HAL handle */
2034/* argument. */
2035#define __HAL_COMP_GET_FLAG(__HANDLE__, __FLAG__) (__HAL_COMP_IS_LOCKED(__HANDLE__))
2036#endif
2041#if defined(STM32L0) || defined(STM32L4)
2045#define HAL_COMP_Start_IT HAL_COMP_Start /* Function considered as legacy as EXTI event or IT configuration is done into HAL_COMP_Init() */
2046#define HAL_COMP_Stop_IT HAL_COMP_Stop /* Function considered as legacy as EXTI event or IT configuration is done into HAL_COMP_Init() */
2050#endif
2051
2056#define IS_DAC_WAVE(WAVE) (((WAVE) == DAC_WAVE_NONE) || \
2057 ((WAVE) == DAC_WAVE_NOISE)|| \
2058 ((WAVE) == DAC_WAVE_TRIANGLE))
2059
2068#define IS_WRPAREA IS_OB_WRPAREA
2069#define IS_TYPEPROGRAM IS_FLASH_TYPEPROGRAM
2070#define IS_TYPEPROGRAMFLASH IS_FLASH_TYPEPROGRAM
2071#define IS_TYPEERASE IS_FLASH_TYPEERASE
2072#define IS_NBSECTORS IS_FLASH_NBSECTORS
2073#define IS_OB_WDG_SOURCE IS_OB_IWDG_SOURCE
2074
2083#define __HAL_I2C_RESET_CR2 I2C_RESET_CR2
2084#define __HAL_I2C_GENERATE_START I2C_GENERATE_START
2085#if defined(STM32F1)
2086#define __HAL_I2C_FREQ_RANGE I2C_FREQRANGE
2087#else
2088#define __HAL_I2C_FREQ_RANGE I2C_FREQ_RANGE
2089#endif /* STM32F1 */
2090#define __HAL_I2C_RISE_TIME I2C_RISE_TIME
2091#define __HAL_I2C_SPEED_STANDARD I2C_SPEED_STANDARD
2092#define __HAL_I2C_SPEED_FAST I2C_SPEED_FAST
2093#define __HAL_I2C_SPEED I2C_SPEED
2094#define __HAL_I2C_7BIT_ADD_WRITE I2C_7BIT_ADD_WRITE
2095#define __HAL_I2C_7BIT_ADD_READ I2C_7BIT_ADD_READ
2096#define __HAL_I2C_10BIT_ADDRESS I2C_10BIT_ADDRESS
2097#define __HAL_I2C_10BIT_HEADER_WRITE I2C_10BIT_HEADER_WRITE
2098#define __HAL_I2C_10BIT_HEADER_READ I2C_10BIT_HEADER_READ
2099#define __HAL_I2C_MEM_ADD_MSB I2C_MEM_ADD_MSB
2100#define __HAL_I2C_MEM_ADD_LSB I2C_MEM_ADD_LSB
2101#define __HAL_I2C_FREQRANGE I2C_FREQRANGE
2110#define IS_I2S_INSTANCE IS_I2S_ALL_INSTANCE
2111#define IS_I2S_INSTANCE_EXT IS_I2S_ALL_INSTANCE_EXT
2112
2113#if defined(STM32H7)
2114#define __HAL_I2S_CLEAR_FREFLAG __HAL_I2S_CLEAR_TIFREFLAG
2115#endif
2116
2125#define __IRDA_DISABLE __HAL_IRDA_DISABLE
2126#define __IRDA_ENABLE __HAL_IRDA_ENABLE
2127
2128#define __HAL_IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE
2129#define __HAL_IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION
2130#define __IRDA_GETCLOCKSOURCE IRDA_GETCLOCKSOURCE
2131#define __IRDA_MASK_COMPUTATION IRDA_MASK_COMPUTATION
2132
2133#define IS_IRDA_ONEBIT_SAMPLE IS_IRDA_ONE_BIT_SAMPLE
2134
2135
2144#define __HAL_IWDG_ENABLE_WRITE_ACCESS IWDG_ENABLE_WRITE_ACCESS
2145#define __HAL_IWDG_DISABLE_WRITE_ACCESS IWDG_DISABLE_WRITE_ACCESS
2155#define __HAL_LPTIM_ENABLE_INTERRUPT __HAL_LPTIM_ENABLE_IT
2156#define __HAL_LPTIM_DISABLE_INTERRUPT __HAL_LPTIM_DISABLE_IT
2157#define __HAL_LPTIM_GET_ITSTATUS __HAL_LPTIM_GET_IT_SOURCE
2158
2167#define __OPAMP_CSR_OPAXPD OPAMP_CSR_OPAXPD
2168#define __OPAMP_CSR_S3SELX OPAMP_CSR_S3SELX
2169#define __OPAMP_CSR_S4SELX OPAMP_CSR_S4SELX
2170#define __OPAMP_CSR_S5SELX OPAMP_CSR_S5SELX
2171#define __OPAMP_CSR_S6SELX OPAMP_CSR_S6SELX
2172#define __OPAMP_CSR_OPAXCAL_L OPAMP_CSR_OPAXCAL_L
2173#define __OPAMP_CSR_OPAXCAL_H OPAMP_CSR_OPAXCAL_H
2174#define __OPAMP_CSR_OPAXLPM OPAMP_CSR_OPAXLPM
2175#define __OPAMP_CSR_ALL_SWITCHES OPAMP_CSR_ALL_SWITCHES
2176#define __OPAMP_CSR_ANAWSELX OPAMP_CSR_ANAWSELX
2177#define __OPAMP_CSR_OPAXCALOUT OPAMP_CSR_OPAXCALOUT
2178#define __OPAMP_OFFSET_TRIM_BITSPOSITION OPAMP_OFFSET_TRIM_BITSPOSITION
2179#define __OPAMP_OFFSET_TRIM_SET OPAMP_OFFSET_TRIM_SET
2180
2189#define __HAL_PVD_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT
2190#define __HAL_PVD_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT
2191#define __HAL_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE
2192#define __HAL_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE
2193#define __HAL_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE
2194#define __HAL_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE
2195#define __HAL_PVM_EVENT_DISABLE __HAL_PWR_PVM_EVENT_DISABLE
2196#define __HAL_PVM_EVENT_ENABLE __HAL_PWR_PVM_EVENT_ENABLE
2197#define __HAL_PVM_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_DISABLE
2198#define __HAL_PVM_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_FALLINGTRIGGER_ENABLE
2199#define __HAL_PVM_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_DISABLE
2200#define __HAL_PVM_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVM_EXTI_RISINGTRIGGER_ENABLE
2201#define __HAL_PWR_INTERNALWAKEUP_DISABLE HAL_PWREx_DisableInternalWakeUpLine
2202#define __HAL_PWR_INTERNALWAKEUP_ENABLE HAL_PWREx_EnableInternalWakeUpLine
2203#define __HAL_PWR_PULL_UP_DOWN_CONFIG_DISABLE HAL_PWREx_DisablePullUpPullDownConfig
2204#define __HAL_PWR_PULL_UP_DOWN_CONFIG_ENABLE HAL_PWREx_EnablePullUpPullDownConfig
2205#define __HAL_PWR_PVD_EXTI_CLEAR_EGDE_TRIGGER() do { __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE(); } while(0)
2206#define __HAL_PWR_PVD_EXTI_EVENT_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_EVENT
2207#define __HAL_PWR_PVD_EXTI_EVENT_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_EVENT
2208#define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE
2209#define __HAL_PWR_PVD_EXTI_FALLINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE
2210#define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_DISABLE __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE
2211#define __HAL_PWR_PVD_EXTI_RISINGTRIGGER_ENABLE __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE
2212#define __HAL_PWR_PVD_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE
2213#define __HAL_PWR_PVD_EXTI_SET_RISING_EDGE_TRIGGER __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE
2214#define __HAL_PWR_PVM_DISABLE() do { HAL_PWREx_DisablePVM1();HAL_PWREx_DisablePVM2();HAL_PWREx_DisablePVM3();HAL_PWREx_DisablePVM4(); } while(0)
2215#define __HAL_PWR_PVM_ENABLE() do { HAL_PWREx_EnablePVM1();HAL_PWREx_EnablePVM2();HAL_PWREx_EnablePVM3();HAL_PWREx_EnablePVM4(); } while(0)
2216#define __HAL_PWR_SRAM2CONTENT_PRESERVE_DISABLE HAL_PWREx_DisableSRAM2ContentRetention
2217#define __HAL_PWR_SRAM2CONTENT_PRESERVE_ENABLE HAL_PWREx_EnableSRAM2ContentRetention
2218#define __HAL_PWR_VDDIO2_DISABLE HAL_PWREx_DisableVddIO2
2219#define __HAL_PWR_VDDIO2_ENABLE HAL_PWREx_EnableVddIO2
2220#define __HAL_PWR_VDDIO2_EXTI_CLEAR_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_DISABLE_FALLING_EDGE
2221#define __HAL_PWR_VDDIO2_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_PWR_VDDIO2_EXTI_ENABLE_FALLING_EDGE
2222#define __HAL_PWR_VDDUSB_DISABLE HAL_PWREx_DisableVddUSB
2223#define __HAL_PWR_VDDUSB_ENABLE HAL_PWREx_EnableVddUSB
2224
2225#if defined (STM32F4)
2226#define __HAL_PVD_EXTI_ENABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_ENABLE_IT()
2227#define __HAL_PVD_EXTI_DISABLE_IT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_DISABLE_IT()
2228#define __HAL_PVD_EXTI_GET_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GET_FLAG()
2229#define __HAL_PVD_EXTI_CLEAR_FLAG(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_CLEAR_FLAG()
2230#define __HAL_PVD_EXTI_GENERATE_SWIT(PWR_EXTI_LINE_PVD) __HAL_PWR_PVD_EXTI_GENERATE_SWIT()
2231#else
2232#define __HAL_PVD_EXTI_CLEAR_FLAG __HAL_PWR_PVD_EXTI_CLEAR_FLAG
2233#define __HAL_PVD_EXTI_DISABLE_IT __HAL_PWR_PVD_EXTI_DISABLE_IT
2234#define __HAL_PVD_EXTI_ENABLE_IT __HAL_PWR_PVD_EXTI_ENABLE_IT
2235#define __HAL_PVD_EXTI_GENERATE_SWIT __HAL_PWR_PVD_EXTI_GENERATE_SWIT
2236#define __HAL_PVD_EXTI_GET_FLAG __HAL_PWR_PVD_EXTI_GET_FLAG
2237#endif /* STM32F4 */
2247#define RCC_StopWakeUpClock_MSI RCC_STOP_WAKEUPCLOCK_MSI
2248#define RCC_StopWakeUpClock_HSI RCC_STOP_WAKEUPCLOCK_HSI
2249
2250#define HAL_RCC_CCSCallback HAL_RCC_CSSCallback
2251#define HAL_RC48_EnableBuffer_Cmd(cmd) (((cmd\
2252 )==ENABLE) ? HAL_RCCEx_EnableHSI48_VREFINT() : HAL_RCCEx_DisableHSI48_VREFINT())
2253
2254#define __ADC_CLK_DISABLE __HAL_RCC_ADC_CLK_DISABLE
2255#define __ADC_CLK_ENABLE __HAL_RCC_ADC_CLK_ENABLE
2256#define __ADC_CLK_SLEEP_DISABLE __HAL_RCC_ADC_CLK_SLEEP_DISABLE
2257#define __ADC_CLK_SLEEP_ENABLE __HAL_RCC_ADC_CLK_SLEEP_ENABLE
2258#define __ADC_FORCE_RESET __HAL_RCC_ADC_FORCE_RESET
2259#define __ADC_RELEASE_RESET __HAL_RCC_ADC_RELEASE_RESET
2260#define __ADC1_CLK_DISABLE __HAL_RCC_ADC1_CLK_DISABLE
2261#define __ADC1_CLK_ENABLE __HAL_RCC_ADC1_CLK_ENABLE
2262#define __ADC1_FORCE_RESET __HAL_RCC_ADC1_FORCE_RESET
2263#define __ADC1_RELEASE_RESET __HAL_RCC_ADC1_RELEASE_RESET
2264#define __ADC1_CLK_SLEEP_ENABLE __HAL_RCC_ADC1_CLK_SLEEP_ENABLE
2265#define __ADC1_CLK_SLEEP_DISABLE __HAL_RCC_ADC1_CLK_SLEEP_DISABLE
2266#define __ADC2_CLK_DISABLE __HAL_RCC_ADC2_CLK_DISABLE
2267#define __ADC2_CLK_ENABLE __HAL_RCC_ADC2_CLK_ENABLE
2268#define __ADC2_FORCE_RESET __HAL_RCC_ADC2_FORCE_RESET
2269#define __ADC2_RELEASE_RESET __HAL_RCC_ADC2_RELEASE_RESET
2270#define __ADC3_CLK_DISABLE __HAL_RCC_ADC3_CLK_DISABLE
2271#define __ADC3_CLK_ENABLE __HAL_RCC_ADC3_CLK_ENABLE
2272#define __ADC3_FORCE_RESET __HAL_RCC_ADC3_FORCE_RESET
2273#define __ADC3_RELEASE_RESET __HAL_RCC_ADC3_RELEASE_RESET
2274#define __AES_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE
2275#define __AES_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE
2276#define __AES_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE
2277#define __AES_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE
2278#define __AES_FORCE_RESET __HAL_RCC_AES_FORCE_RESET
2279#define __AES_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET
2280#define __CRYP_CLK_SLEEP_ENABLE __HAL_RCC_CRYP_CLK_SLEEP_ENABLE
2281#define __CRYP_CLK_SLEEP_DISABLE __HAL_RCC_CRYP_CLK_SLEEP_DISABLE
2282#define __CRYP_CLK_ENABLE __HAL_RCC_CRYP_CLK_ENABLE
2283#define __CRYP_CLK_DISABLE __HAL_RCC_CRYP_CLK_DISABLE
2284#define __CRYP_FORCE_RESET __HAL_RCC_CRYP_FORCE_RESET
2285#define __CRYP_RELEASE_RESET __HAL_RCC_CRYP_RELEASE_RESET
2286#define __AFIO_CLK_DISABLE __HAL_RCC_AFIO_CLK_DISABLE
2287#define __AFIO_CLK_ENABLE __HAL_RCC_AFIO_CLK_ENABLE
2288#define __AFIO_FORCE_RESET __HAL_RCC_AFIO_FORCE_RESET
2289#define __AFIO_RELEASE_RESET __HAL_RCC_AFIO_RELEASE_RESET
2290#define __AHB_FORCE_RESET __HAL_RCC_AHB_FORCE_RESET
2291#define __AHB_RELEASE_RESET __HAL_RCC_AHB_RELEASE_RESET
2292#define __AHB1_FORCE_RESET __HAL_RCC_AHB1_FORCE_RESET
2293#define __AHB1_RELEASE_RESET __HAL_RCC_AHB1_RELEASE_RESET
2294#define __AHB2_FORCE_RESET __HAL_RCC_AHB2_FORCE_RESET
2295#define __AHB2_RELEASE_RESET __HAL_RCC_AHB2_RELEASE_RESET
2296#define __AHB3_FORCE_RESET __HAL_RCC_AHB3_FORCE_RESET
2297#define __AHB3_RELEASE_RESET __HAL_RCC_AHB3_RELEASE_RESET
2298#define __APB1_FORCE_RESET __HAL_RCC_APB1_FORCE_RESET
2299#define __APB1_RELEASE_RESET __HAL_RCC_APB1_RELEASE_RESET
2300#define __APB2_FORCE_RESET __HAL_RCC_APB2_FORCE_RESET
2301#define __APB2_RELEASE_RESET __HAL_RCC_APB2_RELEASE_RESET
2302#define __BKP_CLK_DISABLE __HAL_RCC_BKP_CLK_DISABLE
2303#define __BKP_CLK_ENABLE __HAL_RCC_BKP_CLK_ENABLE
2304#define __BKP_FORCE_RESET __HAL_RCC_BKP_FORCE_RESET
2305#define __BKP_RELEASE_RESET __HAL_RCC_BKP_RELEASE_RESET
2306#define __CAN1_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE
2307#define __CAN1_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE
2308#define __CAN1_CLK_SLEEP_DISABLE __HAL_RCC_CAN1_CLK_SLEEP_DISABLE
2309#define __CAN1_CLK_SLEEP_ENABLE __HAL_RCC_CAN1_CLK_SLEEP_ENABLE
2310#define __CAN1_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET
2311#define __CAN1_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET
2312#define __CAN_CLK_DISABLE __HAL_RCC_CAN1_CLK_DISABLE
2313#define __CAN_CLK_ENABLE __HAL_RCC_CAN1_CLK_ENABLE
2314#define __CAN_FORCE_RESET __HAL_RCC_CAN1_FORCE_RESET
2315#define __CAN_RELEASE_RESET __HAL_RCC_CAN1_RELEASE_RESET
2316#define __CAN2_CLK_DISABLE __HAL_RCC_CAN2_CLK_DISABLE
2317#define __CAN2_CLK_ENABLE __HAL_RCC_CAN2_CLK_ENABLE
2318#define __CAN2_FORCE_RESET __HAL_RCC_CAN2_FORCE_RESET
2319#define __CAN2_RELEASE_RESET __HAL_RCC_CAN2_RELEASE_RESET
2320#define __CEC_CLK_DISABLE __HAL_RCC_CEC_CLK_DISABLE
2321#define __CEC_CLK_ENABLE __HAL_RCC_CEC_CLK_ENABLE
2322#define __COMP_CLK_DISABLE __HAL_RCC_COMP_CLK_DISABLE
2323#define __COMP_CLK_ENABLE __HAL_RCC_COMP_CLK_ENABLE
2324#define __COMP_FORCE_RESET __HAL_RCC_COMP_FORCE_RESET
2325#define __COMP_RELEASE_RESET __HAL_RCC_COMP_RELEASE_RESET
2326#define __COMP_CLK_SLEEP_ENABLE __HAL_RCC_COMP_CLK_SLEEP_ENABLE
2327#define __COMP_CLK_SLEEP_DISABLE __HAL_RCC_COMP_CLK_SLEEP_DISABLE
2328#define __CEC_FORCE_RESET __HAL_RCC_CEC_FORCE_RESET
2329#define __CEC_RELEASE_RESET __HAL_RCC_CEC_RELEASE_RESET
2330#define __CRC_CLK_DISABLE __HAL_RCC_CRC_CLK_DISABLE
2331#define __CRC_CLK_ENABLE __HAL_RCC_CRC_CLK_ENABLE
2332#define __CRC_CLK_SLEEP_DISABLE __HAL_RCC_CRC_CLK_SLEEP_DISABLE
2333#define __CRC_CLK_SLEEP_ENABLE __HAL_RCC_CRC_CLK_SLEEP_ENABLE
2334#define __CRC_FORCE_RESET __HAL_RCC_CRC_FORCE_RESET
2335#define __CRC_RELEASE_RESET __HAL_RCC_CRC_RELEASE_RESET
2336#define __DAC_CLK_DISABLE __HAL_RCC_DAC_CLK_DISABLE
2337#define __DAC_CLK_ENABLE __HAL_RCC_DAC_CLK_ENABLE
2338#define __DAC_FORCE_RESET __HAL_RCC_DAC_FORCE_RESET
2339#define __DAC_RELEASE_RESET __HAL_RCC_DAC_RELEASE_RESET
2340#define __DAC1_CLK_DISABLE __HAL_RCC_DAC1_CLK_DISABLE
2341#define __DAC1_CLK_ENABLE __HAL_RCC_DAC1_CLK_ENABLE
2342#define __DAC1_CLK_SLEEP_DISABLE __HAL_RCC_DAC1_CLK_SLEEP_DISABLE
2343#define __DAC1_CLK_SLEEP_ENABLE __HAL_RCC_DAC1_CLK_SLEEP_ENABLE
2344#define __DAC1_FORCE_RESET __HAL_RCC_DAC1_FORCE_RESET
2345#define __DAC1_RELEASE_RESET __HAL_RCC_DAC1_RELEASE_RESET
2346#define __DBGMCU_CLK_ENABLE __HAL_RCC_DBGMCU_CLK_ENABLE
2347#define __DBGMCU_CLK_DISABLE __HAL_RCC_DBGMCU_CLK_DISABLE
2348#define __DBGMCU_FORCE_RESET __HAL_RCC_DBGMCU_FORCE_RESET
2349#define __DBGMCU_RELEASE_RESET __HAL_RCC_DBGMCU_RELEASE_RESET
2350#define __DFSDM_CLK_DISABLE __HAL_RCC_DFSDM_CLK_DISABLE
2351#define __DFSDM_CLK_ENABLE __HAL_RCC_DFSDM_CLK_ENABLE
2352#define __DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE
2353#define __DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE
2354#define __DFSDM_FORCE_RESET __HAL_RCC_DFSDM_FORCE_RESET
2355#define __DFSDM_RELEASE_RESET __HAL_RCC_DFSDM_RELEASE_RESET
2356#define __DMA1_CLK_DISABLE __HAL_RCC_DMA1_CLK_DISABLE
2357#define __DMA1_CLK_ENABLE __HAL_RCC_DMA1_CLK_ENABLE
2358#define __DMA1_CLK_SLEEP_DISABLE __HAL_RCC_DMA1_CLK_SLEEP_DISABLE
2359#define __DMA1_CLK_SLEEP_ENABLE __HAL_RCC_DMA1_CLK_SLEEP_ENABLE
2360#define __DMA1_FORCE_RESET __HAL_RCC_DMA1_FORCE_RESET
2361#define __DMA1_RELEASE_RESET __HAL_RCC_DMA1_RELEASE_RESET
2362#define __DMA2_CLK_DISABLE __HAL_RCC_DMA2_CLK_DISABLE
2363#define __DMA2_CLK_ENABLE __HAL_RCC_DMA2_CLK_ENABLE
2364#define __DMA2_CLK_SLEEP_DISABLE __HAL_RCC_DMA2_CLK_SLEEP_DISABLE
2365#define __DMA2_CLK_SLEEP_ENABLE __HAL_RCC_DMA2_CLK_SLEEP_ENABLE
2366#define __DMA2_FORCE_RESET __HAL_RCC_DMA2_FORCE_RESET
2367#define __DMA2_RELEASE_RESET __HAL_RCC_DMA2_RELEASE_RESET
2368#define __ETHMAC_CLK_DISABLE __HAL_RCC_ETHMAC_CLK_DISABLE
2369#define __ETHMAC_CLK_ENABLE __HAL_RCC_ETHMAC_CLK_ENABLE
2370#define __ETHMAC_FORCE_RESET __HAL_RCC_ETHMAC_FORCE_RESET
2371#define __ETHMAC_RELEASE_RESET __HAL_RCC_ETHMAC_RELEASE_RESET
2372#define __ETHMACRX_CLK_DISABLE __HAL_RCC_ETHMACRX_CLK_DISABLE
2373#define __ETHMACRX_CLK_ENABLE __HAL_RCC_ETHMACRX_CLK_ENABLE
2374#define __ETHMACTX_CLK_DISABLE __HAL_RCC_ETHMACTX_CLK_DISABLE
2375#define __ETHMACTX_CLK_ENABLE __HAL_RCC_ETHMACTX_CLK_ENABLE
2376#define __FIREWALL_CLK_DISABLE __HAL_RCC_FIREWALL_CLK_DISABLE
2377#define __FIREWALL_CLK_ENABLE __HAL_RCC_FIREWALL_CLK_ENABLE
2378#define __FLASH_CLK_DISABLE __HAL_RCC_FLASH_CLK_DISABLE
2379#define __FLASH_CLK_ENABLE __HAL_RCC_FLASH_CLK_ENABLE
2380#define __FLASH_CLK_SLEEP_DISABLE __HAL_RCC_FLASH_CLK_SLEEP_DISABLE
2381#define __FLASH_CLK_SLEEP_ENABLE __HAL_RCC_FLASH_CLK_SLEEP_ENABLE
2382#define __FLASH_FORCE_RESET __HAL_RCC_FLASH_FORCE_RESET
2383#define __FLASH_RELEASE_RESET __HAL_RCC_FLASH_RELEASE_RESET
2384#define __FLITF_CLK_DISABLE __HAL_RCC_FLITF_CLK_DISABLE
2385#define __FLITF_CLK_ENABLE __HAL_RCC_FLITF_CLK_ENABLE
2386#define __FLITF_FORCE_RESET __HAL_RCC_FLITF_FORCE_RESET
2387#define __FLITF_RELEASE_RESET __HAL_RCC_FLITF_RELEASE_RESET
2388#define __FLITF_CLK_SLEEP_ENABLE __HAL_RCC_FLITF_CLK_SLEEP_ENABLE
2389#define __FLITF_CLK_SLEEP_DISABLE __HAL_RCC_FLITF_CLK_SLEEP_DISABLE
2390#define __FMC_CLK_DISABLE __HAL_RCC_FMC_CLK_DISABLE
2391#define __FMC_CLK_ENABLE __HAL_RCC_FMC_CLK_ENABLE
2392#define __FMC_CLK_SLEEP_DISABLE __HAL_RCC_FMC_CLK_SLEEP_DISABLE
2393#define __FMC_CLK_SLEEP_ENABLE __HAL_RCC_FMC_CLK_SLEEP_ENABLE
2394#define __FMC_FORCE_RESET __HAL_RCC_FMC_FORCE_RESET
2395#define __FMC_RELEASE_RESET __HAL_RCC_FMC_RELEASE_RESET
2396#define __FSMC_CLK_DISABLE __HAL_RCC_FSMC_CLK_DISABLE
2397#define __FSMC_CLK_ENABLE __HAL_RCC_FSMC_CLK_ENABLE
2398#define __GPIOA_CLK_DISABLE __HAL_RCC_GPIOA_CLK_DISABLE
2399#define __GPIOA_CLK_ENABLE __HAL_RCC_GPIOA_CLK_ENABLE
2400#define __GPIOA_CLK_SLEEP_DISABLE __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE
2401#define __GPIOA_CLK_SLEEP_ENABLE __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE
2402#define __GPIOA_FORCE_RESET __HAL_RCC_GPIOA_FORCE_RESET
2403#define __GPIOA_RELEASE_RESET __HAL_RCC_GPIOA_RELEASE_RESET
2404#define __GPIOB_CLK_DISABLE __HAL_RCC_GPIOB_CLK_DISABLE
2405#define __GPIOB_CLK_ENABLE __HAL_RCC_GPIOB_CLK_ENABLE
2406#define __GPIOB_CLK_SLEEP_DISABLE __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE
2407#define __GPIOB_CLK_SLEEP_ENABLE __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE
2408#define __GPIOB_FORCE_RESET __HAL_RCC_GPIOB_FORCE_RESET
2409#define __GPIOB_RELEASE_RESET __HAL_RCC_GPIOB_RELEASE_RESET
2410#define __GPIOC_CLK_DISABLE __HAL_RCC_GPIOC_CLK_DISABLE
2411#define __GPIOC_CLK_ENABLE __HAL_RCC_GPIOC_CLK_ENABLE
2412#define __GPIOC_CLK_SLEEP_DISABLE __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE
2413#define __GPIOC_CLK_SLEEP_ENABLE __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE
2414#define __GPIOC_FORCE_RESET __HAL_RCC_GPIOC_FORCE_RESET
2415#define __GPIOC_RELEASE_RESET __HAL_RCC_GPIOC_RELEASE_RESET
2416#define __GPIOD_CLK_DISABLE __HAL_RCC_GPIOD_CLK_DISABLE
2417#define __GPIOD_CLK_ENABLE __HAL_RCC_GPIOD_CLK_ENABLE
2418#define __GPIOD_CLK_SLEEP_DISABLE __HAL_RCC_GPIOD_CLK_SLEEP_DISABLE
2419#define __GPIOD_CLK_SLEEP_ENABLE __HAL_RCC_GPIOD_CLK_SLEEP_ENABLE
2420#define __GPIOD_FORCE_RESET __HAL_RCC_GPIOD_FORCE_RESET
2421#define __GPIOD_RELEASE_RESET __HAL_RCC_GPIOD_RELEASE_RESET
2422#define __GPIOE_CLK_DISABLE __HAL_RCC_GPIOE_CLK_DISABLE
2423#define __GPIOE_CLK_ENABLE __HAL_RCC_GPIOE_CLK_ENABLE
2424#define __GPIOE_CLK_SLEEP_DISABLE __HAL_RCC_GPIOE_CLK_SLEEP_DISABLE
2425#define __GPIOE_CLK_SLEEP_ENABLE __HAL_RCC_GPIOE_CLK_SLEEP_ENABLE
2426#define __GPIOE_FORCE_RESET __HAL_RCC_GPIOE_FORCE_RESET
2427#define __GPIOE_RELEASE_RESET __HAL_RCC_GPIOE_RELEASE_RESET
2428#define __GPIOF_CLK_DISABLE __HAL_RCC_GPIOF_CLK_DISABLE
2429#define __GPIOF_CLK_ENABLE __HAL_RCC_GPIOF_CLK_ENABLE
2430#define __GPIOF_CLK_SLEEP_DISABLE __HAL_RCC_GPIOF_CLK_SLEEP_DISABLE
2431#define __GPIOF_CLK_SLEEP_ENABLE __HAL_RCC_GPIOF_CLK_SLEEP_ENABLE
2432#define __GPIOF_FORCE_RESET __HAL_RCC_GPIOF_FORCE_RESET
2433#define __GPIOF_RELEASE_RESET __HAL_RCC_GPIOF_RELEASE_RESET
2434#define __GPIOG_CLK_DISABLE __HAL_RCC_GPIOG_CLK_DISABLE
2435#define __GPIOG_CLK_ENABLE __HAL_RCC_GPIOG_CLK_ENABLE
2436#define __GPIOG_CLK_SLEEP_DISABLE __HAL_RCC_GPIOG_CLK_SLEEP_DISABLE
2437#define __GPIOG_CLK_SLEEP_ENABLE __HAL_RCC_GPIOG_CLK_SLEEP_ENABLE
2438#define __GPIOG_FORCE_RESET __HAL_RCC_GPIOG_FORCE_RESET
2439#define __GPIOG_RELEASE_RESET __HAL_RCC_GPIOG_RELEASE_RESET
2440#define __GPIOH_CLK_DISABLE __HAL_RCC_GPIOH_CLK_DISABLE
2441#define __GPIOH_CLK_ENABLE __HAL_RCC_GPIOH_CLK_ENABLE
2442#define __GPIOH_CLK_SLEEP_DISABLE __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE
2443#define __GPIOH_CLK_SLEEP_ENABLE __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE
2444#define __GPIOH_FORCE_RESET __HAL_RCC_GPIOH_FORCE_RESET
2445#define __GPIOH_RELEASE_RESET __HAL_RCC_GPIOH_RELEASE_RESET
2446#define __I2C1_CLK_DISABLE __HAL_RCC_I2C1_CLK_DISABLE
2447#define __I2C1_CLK_ENABLE __HAL_RCC_I2C1_CLK_ENABLE
2448#define __I2C1_CLK_SLEEP_DISABLE __HAL_RCC_I2C1_CLK_SLEEP_DISABLE
2449#define __I2C1_CLK_SLEEP_ENABLE __HAL_RCC_I2C1_CLK_SLEEP_ENABLE
2450#define __I2C1_FORCE_RESET __HAL_RCC_I2C1_FORCE_RESET
2451#define __I2C1_RELEASE_RESET __HAL_RCC_I2C1_RELEASE_RESET
2452#define __I2C2_CLK_DISABLE __HAL_RCC_I2C2_CLK_DISABLE
2453#define __I2C2_CLK_ENABLE __HAL_RCC_I2C2_CLK_ENABLE
2454#define __I2C2_CLK_SLEEP_DISABLE __HAL_RCC_I2C2_CLK_SLEEP_DISABLE
2455#define __I2C2_CLK_SLEEP_ENABLE __HAL_RCC_I2C2_CLK_SLEEP_ENABLE
2456#define __I2C2_FORCE_RESET __HAL_RCC_I2C2_FORCE_RESET
2457#define __I2C2_RELEASE_RESET __HAL_RCC_I2C2_RELEASE_RESET
2458#define __I2C3_CLK_DISABLE __HAL_RCC_I2C3_CLK_DISABLE
2459#define __I2C3_CLK_ENABLE __HAL_RCC_I2C3_CLK_ENABLE
2460#define __I2C3_CLK_SLEEP_DISABLE __HAL_RCC_I2C3_CLK_SLEEP_DISABLE
2461#define __I2C3_CLK_SLEEP_ENABLE __HAL_RCC_I2C3_CLK_SLEEP_ENABLE
2462#define __I2C3_FORCE_RESET __HAL_RCC_I2C3_FORCE_RESET
2463#define __I2C3_RELEASE_RESET __HAL_RCC_I2C3_RELEASE_RESET
2464#define __LCD_CLK_DISABLE __HAL_RCC_LCD_CLK_DISABLE
2465#define __LCD_CLK_ENABLE __HAL_RCC_LCD_CLK_ENABLE
2466#define __LCD_CLK_SLEEP_DISABLE __HAL_RCC_LCD_CLK_SLEEP_DISABLE
2467#define __LCD_CLK_SLEEP_ENABLE __HAL_RCC_LCD_CLK_SLEEP_ENABLE
2468#define __LCD_FORCE_RESET __HAL_RCC_LCD_FORCE_RESET
2469#define __LCD_RELEASE_RESET __HAL_RCC_LCD_RELEASE_RESET
2470#define __LPTIM1_CLK_DISABLE __HAL_RCC_LPTIM1_CLK_DISABLE
2471#define __LPTIM1_CLK_ENABLE __HAL_RCC_LPTIM1_CLK_ENABLE
2472#define __LPTIM1_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM1_CLK_SLEEP_DISABLE
2473#define __LPTIM1_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM1_CLK_SLEEP_ENABLE
2474#define __LPTIM1_FORCE_RESET __HAL_RCC_LPTIM1_FORCE_RESET
2475#define __LPTIM1_RELEASE_RESET __HAL_RCC_LPTIM1_RELEASE_RESET
2476#define __LPTIM2_CLK_DISABLE __HAL_RCC_LPTIM2_CLK_DISABLE
2477#define __LPTIM2_CLK_ENABLE __HAL_RCC_LPTIM2_CLK_ENABLE
2478#define __LPTIM2_CLK_SLEEP_DISABLE __HAL_RCC_LPTIM2_CLK_SLEEP_DISABLE
2479#define __LPTIM2_CLK_SLEEP_ENABLE __HAL_RCC_LPTIM2_CLK_SLEEP_ENABLE
2480#define __LPTIM2_FORCE_RESET __HAL_RCC_LPTIM2_FORCE_RESET
2481#define __LPTIM2_RELEASE_RESET __HAL_RCC_LPTIM2_RELEASE_RESET
2482#define __LPUART1_CLK_DISABLE __HAL_RCC_LPUART1_CLK_DISABLE
2483#define __LPUART1_CLK_ENABLE __HAL_RCC_LPUART1_CLK_ENABLE
2484#define __LPUART1_CLK_SLEEP_DISABLE __HAL_RCC_LPUART1_CLK_SLEEP_DISABLE
2485#define __LPUART1_CLK_SLEEP_ENABLE __HAL_RCC_LPUART1_CLK_SLEEP_ENABLE
2486#define __LPUART1_FORCE_RESET __HAL_RCC_LPUART1_FORCE_RESET
2487#define __LPUART1_RELEASE_RESET __HAL_RCC_LPUART1_RELEASE_RESET
2488#define __OPAMP_CLK_DISABLE __HAL_RCC_OPAMP_CLK_DISABLE
2489#define __OPAMP_CLK_ENABLE __HAL_RCC_OPAMP_CLK_ENABLE
2490#define __OPAMP_CLK_SLEEP_DISABLE __HAL_RCC_OPAMP_CLK_SLEEP_DISABLE
2491#define __OPAMP_CLK_SLEEP_ENABLE __HAL_RCC_OPAMP_CLK_SLEEP_ENABLE
2492#define __OPAMP_FORCE_RESET __HAL_RCC_OPAMP_FORCE_RESET
2493#define __OPAMP_RELEASE_RESET __HAL_RCC_OPAMP_RELEASE_RESET
2494#define __OTGFS_CLK_DISABLE __HAL_RCC_OTGFS_CLK_DISABLE
2495#define __OTGFS_CLK_ENABLE __HAL_RCC_OTGFS_CLK_ENABLE
2496#define __OTGFS_CLK_SLEEP_DISABLE __HAL_RCC_OTGFS_CLK_SLEEP_DISABLE
2497#define __OTGFS_CLK_SLEEP_ENABLE __HAL_RCC_OTGFS_CLK_SLEEP_ENABLE
2498#define __OTGFS_FORCE_RESET __HAL_RCC_OTGFS_FORCE_RESET
2499#define __OTGFS_RELEASE_RESET __HAL_RCC_OTGFS_RELEASE_RESET
2500#define __PWR_CLK_DISABLE __HAL_RCC_PWR_CLK_DISABLE
2501#define __PWR_CLK_ENABLE __HAL_RCC_PWR_CLK_ENABLE
2502#define __PWR_CLK_SLEEP_DISABLE __HAL_RCC_PWR_CLK_SLEEP_DISABLE
2503#define __PWR_CLK_SLEEP_ENABLE __HAL_RCC_PWR_CLK_SLEEP_ENABLE
2504#define __PWR_FORCE_RESET __HAL_RCC_PWR_FORCE_RESET
2505#define __PWR_RELEASE_RESET __HAL_RCC_PWR_RELEASE_RESET
2506#define __QSPI_CLK_DISABLE __HAL_RCC_QSPI_CLK_DISABLE
2507#define __QSPI_CLK_ENABLE __HAL_RCC_QSPI_CLK_ENABLE
2508#define __QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QSPI_CLK_SLEEP_DISABLE
2509#define __QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QSPI_CLK_SLEEP_ENABLE
2510#define __QSPI_FORCE_RESET __HAL_RCC_QSPI_FORCE_RESET
2511#define __QSPI_RELEASE_RESET __HAL_RCC_QSPI_RELEASE_RESET
2512
2513#if defined(STM32WB)
2514#define __HAL_RCC_QSPI_CLK_DISABLE __HAL_RCC_QUADSPI_CLK_DISABLE
2515#define __HAL_RCC_QSPI_CLK_ENABLE __HAL_RCC_QUADSPI_CLK_ENABLE
2516#define __HAL_RCC_QSPI_CLK_SLEEP_DISABLE __HAL_RCC_QUADSPI_CLK_SLEEP_DISABLE
2517#define __HAL_RCC_QSPI_CLK_SLEEP_ENABLE __HAL_RCC_QUADSPI_CLK_SLEEP_ENABLE
2518#define __HAL_RCC_QSPI_FORCE_RESET __HAL_RCC_QUADSPI_FORCE_RESET
2519#define __HAL_RCC_QSPI_RELEASE_RESET __HAL_RCC_QUADSPI_RELEASE_RESET
2520#define __HAL_RCC_QSPI_IS_CLK_ENABLED __HAL_RCC_QUADSPI_IS_CLK_ENABLED
2521#define __HAL_RCC_QSPI_IS_CLK_DISABLED __HAL_RCC_QUADSPI_IS_CLK_DISABLED
2522#define __HAL_RCC_QSPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_ENABLED
2523#define __HAL_RCC_QSPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_QUADSPI_IS_CLK_SLEEP_DISABLED
2524#define QSPI_IRQHandler QUADSPI_IRQHandler
2525#endif /* __HAL_RCC_QUADSPI_CLK_ENABLE */
2526
2527#define __RNG_CLK_DISABLE __HAL_RCC_RNG_CLK_DISABLE
2528#define __RNG_CLK_ENABLE __HAL_RCC_RNG_CLK_ENABLE
2529#define __RNG_CLK_SLEEP_DISABLE __HAL_RCC_RNG_CLK_SLEEP_DISABLE
2530#define __RNG_CLK_SLEEP_ENABLE __HAL_RCC_RNG_CLK_SLEEP_ENABLE
2531#define __RNG_FORCE_RESET __HAL_RCC_RNG_FORCE_RESET
2532#define __RNG_RELEASE_RESET __HAL_RCC_RNG_RELEASE_RESET
2533#define __SAI1_CLK_DISABLE __HAL_RCC_SAI1_CLK_DISABLE
2534#define __SAI1_CLK_ENABLE __HAL_RCC_SAI1_CLK_ENABLE
2535#define __SAI1_CLK_SLEEP_DISABLE __HAL_RCC_SAI1_CLK_SLEEP_DISABLE
2536#define __SAI1_CLK_SLEEP_ENABLE __HAL_RCC_SAI1_CLK_SLEEP_ENABLE
2537#define __SAI1_FORCE_RESET __HAL_RCC_SAI1_FORCE_RESET
2538#define __SAI1_RELEASE_RESET __HAL_RCC_SAI1_RELEASE_RESET
2539#define __SAI2_CLK_DISABLE __HAL_RCC_SAI2_CLK_DISABLE
2540#define __SAI2_CLK_ENABLE __HAL_RCC_SAI2_CLK_ENABLE
2541#define __SAI2_CLK_SLEEP_DISABLE __HAL_RCC_SAI2_CLK_SLEEP_DISABLE
2542#define __SAI2_CLK_SLEEP_ENABLE __HAL_RCC_SAI2_CLK_SLEEP_ENABLE
2543#define __SAI2_FORCE_RESET __HAL_RCC_SAI2_FORCE_RESET
2544#define __SAI2_RELEASE_RESET __HAL_RCC_SAI2_RELEASE_RESET
2545#define __SDIO_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE
2546#define __SDIO_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE
2547#define __SDMMC_CLK_DISABLE __HAL_RCC_SDMMC_CLK_DISABLE
2548#define __SDMMC_CLK_ENABLE __HAL_RCC_SDMMC_CLK_ENABLE
2549#define __SDMMC_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC_CLK_SLEEP_DISABLE
2550#define __SDMMC_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC_CLK_SLEEP_ENABLE
2551#define __SDMMC_FORCE_RESET __HAL_RCC_SDMMC_FORCE_RESET
2552#define __SDMMC_RELEASE_RESET __HAL_RCC_SDMMC_RELEASE_RESET
2553#define __SPI1_CLK_DISABLE __HAL_RCC_SPI1_CLK_DISABLE
2554#define __SPI1_CLK_ENABLE __HAL_RCC_SPI1_CLK_ENABLE
2555#define __SPI1_CLK_SLEEP_DISABLE __HAL_RCC_SPI1_CLK_SLEEP_DISABLE
2556#define __SPI1_CLK_SLEEP_ENABLE __HAL_RCC_SPI1_CLK_SLEEP_ENABLE
2557#define __SPI1_FORCE_RESET __HAL_RCC_SPI1_FORCE_RESET
2558#define __SPI1_RELEASE_RESET __HAL_RCC_SPI1_RELEASE_RESET
2559#define __SPI2_CLK_DISABLE __HAL_RCC_SPI2_CLK_DISABLE
2560#define __SPI2_CLK_ENABLE __HAL_RCC_SPI2_CLK_ENABLE
2561#define __SPI2_CLK_SLEEP_DISABLE __HAL_RCC_SPI2_CLK_SLEEP_DISABLE
2562#define __SPI2_CLK_SLEEP_ENABLE __HAL_RCC_SPI2_CLK_SLEEP_ENABLE
2563#define __SPI2_FORCE_RESET __HAL_RCC_SPI2_FORCE_RESET
2564#define __SPI2_RELEASE_RESET __HAL_RCC_SPI2_RELEASE_RESET
2565#define __SPI3_CLK_DISABLE __HAL_RCC_SPI3_CLK_DISABLE
2566#define __SPI3_CLK_ENABLE __HAL_RCC_SPI3_CLK_ENABLE
2567#define __SPI3_CLK_SLEEP_DISABLE __HAL_RCC_SPI3_CLK_SLEEP_DISABLE
2568#define __SPI3_CLK_SLEEP_ENABLE __HAL_RCC_SPI3_CLK_SLEEP_ENABLE
2569#define __SPI3_FORCE_RESET __HAL_RCC_SPI3_FORCE_RESET
2570#define __SPI3_RELEASE_RESET __HAL_RCC_SPI3_RELEASE_RESET
2571#define __SRAM_CLK_DISABLE __HAL_RCC_SRAM_CLK_DISABLE
2572#define __SRAM_CLK_ENABLE __HAL_RCC_SRAM_CLK_ENABLE
2573#define __SRAM1_CLK_SLEEP_DISABLE __HAL_RCC_SRAM1_CLK_SLEEP_DISABLE
2574#define __SRAM1_CLK_SLEEP_ENABLE __HAL_RCC_SRAM1_CLK_SLEEP_ENABLE
2575#define __SRAM2_CLK_SLEEP_DISABLE __HAL_RCC_SRAM2_CLK_SLEEP_DISABLE
2576#define __SRAM2_CLK_SLEEP_ENABLE __HAL_RCC_SRAM2_CLK_SLEEP_ENABLE
2577#define __SWPMI1_CLK_DISABLE __HAL_RCC_SWPMI1_CLK_DISABLE
2578#define __SWPMI1_CLK_ENABLE __HAL_RCC_SWPMI1_CLK_ENABLE
2579#define __SWPMI1_CLK_SLEEP_DISABLE __HAL_RCC_SWPMI1_CLK_SLEEP_DISABLE
2580#define __SWPMI1_CLK_SLEEP_ENABLE __HAL_RCC_SWPMI1_CLK_SLEEP_ENABLE
2581#define __SWPMI1_FORCE_RESET __HAL_RCC_SWPMI1_FORCE_RESET
2582#define __SWPMI1_RELEASE_RESET __HAL_RCC_SWPMI1_RELEASE_RESET
2583#define __SYSCFG_CLK_DISABLE __HAL_RCC_SYSCFG_CLK_DISABLE
2584#define __SYSCFG_CLK_ENABLE __HAL_RCC_SYSCFG_CLK_ENABLE
2585#define __SYSCFG_CLK_SLEEP_DISABLE __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE
2586#define __SYSCFG_CLK_SLEEP_ENABLE __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE
2587#define __SYSCFG_FORCE_RESET __HAL_RCC_SYSCFG_FORCE_RESET
2588#define __SYSCFG_RELEASE_RESET __HAL_RCC_SYSCFG_RELEASE_RESET
2589#define __TIM1_CLK_DISABLE __HAL_RCC_TIM1_CLK_DISABLE
2590#define __TIM1_CLK_ENABLE __HAL_RCC_TIM1_CLK_ENABLE
2591#define __TIM1_CLK_SLEEP_DISABLE __HAL_RCC_TIM1_CLK_SLEEP_DISABLE
2592#define __TIM1_CLK_SLEEP_ENABLE __HAL_RCC_TIM1_CLK_SLEEP_ENABLE
2593#define __TIM1_FORCE_RESET __HAL_RCC_TIM1_FORCE_RESET
2594#define __TIM1_RELEASE_RESET __HAL_RCC_TIM1_RELEASE_RESET
2595#define __TIM10_CLK_DISABLE __HAL_RCC_TIM10_CLK_DISABLE
2596#define __TIM10_CLK_ENABLE __HAL_RCC_TIM10_CLK_ENABLE
2597#define __TIM10_FORCE_RESET __HAL_RCC_TIM10_FORCE_RESET
2598#define __TIM10_RELEASE_RESET __HAL_RCC_TIM10_RELEASE_RESET
2599#define __TIM11_CLK_DISABLE __HAL_RCC_TIM11_CLK_DISABLE
2600#define __TIM11_CLK_ENABLE __HAL_RCC_TIM11_CLK_ENABLE
2601#define __TIM11_FORCE_RESET __HAL_RCC_TIM11_FORCE_RESET
2602#define __TIM11_RELEASE_RESET __HAL_RCC_TIM11_RELEASE_RESET
2603#define __TIM12_CLK_DISABLE __HAL_RCC_TIM12_CLK_DISABLE
2604#define __TIM12_CLK_ENABLE __HAL_RCC_TIM12_CLK_ENABLE
2605#define __TIM12_FORCE_RESET __HAL_RCC_TIM12_FORCE_RESET
2606#define __TIM12_RELEASE_RESET __HAL_RCC_TIM12_RELEASE_RESET
2607#define __TIM13_CLK_DISABLE __HAL_RCC_TIM13_CLK_DISABLE
2608#define __TIM13_CLK_ENABLE __HAL_RCC_TIM13_CLK_ENABLE
2609#define __TIM13_FORCE_RESET __HAL_RCC_TIM13_FORCE_RESET
2610#define __TIM13_RELEASE_RESET __HAL_RCC_TIM13_RELEASE_RESET
2611#define __TIM14_CLK_DISABLE __HAL_RCC_TIM14_CLK_DISABLE
2612#define __TIM14_CLK_ENABLE __HAL_RCC_TIM14_CLK_ENABLE
2613#define __TIM14_FORCE_RESET __HAL_RCC_TIM14_FORCE_RESET
2614#define __TIM14_RELEASE_RESET __HAL_RCC_TIM14_RELEASE_RESET
2615#define __TIM15_CLK_DISABLE __HAL_RCC_TIM15_CLK_DISABLE
2616#define __TIM15_CLK_ENABLE __HAL_RCC_TIM15_CLK_ENABLE
2617#define __TIM15_CLK_SLEEP_DISABLE __HAL_RCC_TIM15_CLK_SLEEP_DISABLE
2618#define __TIM15_CLK_SLEEP_ENABLE __HAL_RCC_TIM15_CLK_SLEEP_ENABLE
2619#define __TIM15_FORCE_RESET __HAL_RCC_TIM15_FORCE_RESET
2620#define __TIM15_RELEASE_RESET __HAL_RCC_TIM15_RELEASE_RESET
2621#define __TIM16_CLK_DISABLE __HAL_RCC_TIM16_CLK_DISABLE
2622#define __TIM16_CLK_ENABLE __HAL_RCC_TIM16_CLK_ENABLE
2623#define __TIM16_CLK_SLEEP_DISABLE __HAL_RCC_TIM16_CLK_SLEEP_DISABLE
2624#define __TIM16_CLK_SLEEP_ENABLE __HAL_RCC_TIM16_CLK_SLEEP_ENABLE
2625#define __TIM16_FORCE_RESET __HAL_RCC_TIM16_FORCE_RESET
2626#define __TIM16_RELEASE_RESET __HAL_RCC_TIM16_RELEASE_RESET
2627#define __TIM17_CLK_DISABLE __HAL_RCC_TIM17_CLK_DISABLE
2628#define __TIM17_CLK_ENABLE __HAL_RCC_TIM17_CLK_ENABLE
2629#define __TIM17_CLK_SLEEP_DISABLE __HAL_RCC_TIM17_CLK_SLEEP_DISABLE
2630#define __TIM17_CLK_SLEEP_ENABLE __HAL_RCC_TIM17_CLK_SLEEP_ENABLE
2631#define __TIM17_FORCE_RESET __HAL_RCC_TIM17_FORCE_RESET
2632#define __TIM17_RELEASE_RESET __HAL_RCC_TIM17_RELEASE_RESET
2633#define __TIM2_CLK_DISABLE __HAL_RCC_TIM2_CLK_DISABLE
2634#define __TIM2_CLK_ENABLE __HAL_RCC_TIM2_CLK_ENABLE
2635#define __TIM2_CLK_SLEEP_DISABLE __HAL_RCC_TIM2_CLK_SLEEP_DISABLE
2636#define __TIM2_CLK_SLEEP_ENABLE __HAL_RCC_TIM2_CLK_SLEEP_ENABLE
2637#define __TIM2_FORCE_RESET __HAL_RCC_TIM2_FORCE_RESET
2638#define __TIM2_RELEASE_RESET __HAL_RCC_TIM2_RELEASE_RESET
2639#define __TIM3_CLK_DISABLE __HAL_RCC_TIM3_CLK_DISABLE
2640#define __TIM3_CLK_ENABLE __HAL_RCC_TIM3_CLK_ENABLE
2641#define __TIM3_CLK_SLEEP_DISABLE __HAL_RCC_TIM3_CLK_SLEEP_DISABLE
2642#define __TIM3_CLK_SLEEP_ENABLE __HAL_RCC_TIM3_CLK_SLEEP_ENABLE
2643#define __TIM3_FORCE_RESET __HAL_RCC_TIM3_FORCE_RESET
2644#define __TIM3_RELEASE_RESET __HAL_RCC_TIM3_RELEASE_RESET
2645#define __TIM4_CLK_DISABLE __HAL_RCC_TIM4_CLK_DISABLE
2646#define __TIM4_CLK_ENABLE __HAL_RCC_TIM4_CLK_ENABLE
2647#define __TIM4_CLK_SLEEP_DISABLE __HAL_RCC_TIM4_CLK_SLEEP_DISABLE
2648#define __TIM4_CLK_SLEEP_ENABLE __HAL_RCC_TIM4_CLK_SLEEP_ENABLE
2649#define __TIM4_FORCE_RESET __HAL_RCC_TIM4_FORCE_RESET
2650#define __TIM4_RELEASE_RESET __HAL_RCC_TIM4_RELEASE_RESET
2651#define __TIM5_CLK_DISABLE __HAL_RCC_TIM5_CLK_DISABLE
2652#define __TIM5_CLK_ENABLE __HAL_RCC_TIM5_CLK_ENABLE
2653#define __TIM5_CLK_SLEEP_DISABLE __HAL_RCC_TIM5_CLK_SLEEP_DISABLE
2654#define __TIM5_CLK_SLEEP_ENABLE __HAL_RCC_TIM5_CLK_SLEEP_ENABLE
2655#define __TIM5_FORCE_RESET __HAL_RCC_TIM5_FORCE_RESET
2656#define __TIM5_RELEASE_RESET __HAL_RCC_TIM5_RELEASE_RESET
2657#define __TIM6_CLK_DISABLE __HAL_RCC_TIM6_CLK_DISABLE
2658#define __TIM6_CLK_ENABLE __HAL_RCC_TIM6_CLK_ENABLE
2659#define __TIM6_CLK_SLEEP_DISABLE __HAL_RCC_TIM6_CLK_SLEEP_DISABLE
2660#define __TIM6_CLK_SLEEP_ENABLE __HAL_RCC_TIM6_CLK_SLEEP_ENABLE
2661#define __TIM6_FORCE_RESET __HAL_RCC_TIM6_FORCE_RESET
2662#define __TIM6_RELEASE_RESET __HAL_RCC_TIM6_RELEASE_RESET
2663#define __TIM7_CLK_DISABLE __HAL_RCC_TIM7_CLK_DISABLE
2664#define __TIM7_CLK_ENABLE __HAL_RCC_TIM7_CLK_ENABLE
2665#define __TIM7_CLK_SLEEP_DISABLE __HAL_RCC_TIM7_CLK_SLEEP_DISABLE
2666#define __TIM7_CLK_SLEEP_ENABLE __HAL_RCC_TIM7_CLK_SLEEP_ENABLE
2667#define __TIM7_FORCE_RESET __HAL_RCC_TIM7_FORCE_RESET
2668#define __TIM7_RELEASE_RESET __HAL_RCC_TIM7_RELEASE_RESET
2669#define __TIM8_CLK_DISABLE __HAL_RCC_TIM8_CLK_DISABLE
2670#define __TIM8_CLK_ENABLE __HAL_RCC_TIM8_CLK_ENABLE
2671#define __TIM8_CLK_SLEEP_DISABLE __HAL_RCC_TIM8_CLK_SLEEP_DISABLE
2672#define __TIM8_CLK_SLEEP_ENABLE __HAL_RCC_TIM8_CLK_SLEEP_ENABLE
2673#define __TIM8_FORCE_RESET __HAL_RCC_TIM8_FORCE_RESET
2674#define __TIM8_RELEASE_RESET __HAL_RCC_TIM8_RELEASE_RESET
2675#define __TIM9_CLK_DISABLE __HAL_RCC_TIM9_CLK_DISABLE
2676#define __TIM9_CLK_ENABLE __HAL_RCC_TIM9_CLK_ENABLE
2677#define __TIM9_FORCE_RESET __HAL_RCC_TIM9_FORCE_RESET
2678#define __TIM9_RELEASE_RESET __HAL_RCC_TIM9_RELEASE_RESET
2679#define __TSC_CLK_DISABLE __HAL_RCC_TSC_CLK_DISABLE
2680#define __TSC_CLK_ENABLE __HAL_RCC_TSC_CLK_ENABLE
2681#define __TSC_CLK_SLEEP_DISABLE __HAL_RCC_TSC_CLK_SLEEP_DISABLE
2682#define __TSC_CLK_SLEEP_ENABLE __HAL_RCC_TSC_CLK_SLEEP_ENABLE
2683#define __TSC_FORCE_RESET __HAL_RCC_TSC_FORCE_RESET
2684#define __TSC_RELEASE_RESET __HAL_RCC_TSC_RELEASE_RESET
2685#define __UART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE
2686#define __UART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE
2687#define __UART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE
2688#define __UART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE
2689#define __UART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET
2690#define __UART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET
2691#define __UART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE
2692#define __UART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE
2693#define __UART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE
2694#define __UART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE
2695#define __UART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET
2696#define __UART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET
2697#define __USART1_CLK_DISABLE __HAL_RCC_USART1_CLK_DISABLE
2698#define __USART1_CLK_ENABLE __HAL_RCC_USART1_CLK_ENABLE
2699#define __USART1_CLK_SLEEP_DISABLE __HAL_RCC_USART1_CLK_SLEEP_DISABLE
2700#define __USART1_CLK_SLEEP_ENABLE __HAL_RCC_USART1_CLK_SLEEP_ENABLE
2701#define __USART1_FORCE_RESET __HAL_RCC_USART1_FORCE_RESET
2702#define __USART1_RELEASE_RESET __HAL_RCC_USART1_RELEASE_RESET
2703#define __USART2_CLK_DISABLE __HAL_RCC_USART2_CLK_DISABLE
2704#define __USART2_CLK_ENABLE __HAL_RCC_USART2_CLK_ENABLE
2705#define __USART2_CLK_SLEEP_DISABLE __HAL_RCC_USART2_CLK_SLEEP_DISABLE
2706#define __USART2_CLK_SLEEP_ENABLE __HAL_RCC_USART2_CLK_SLEEP_ENABLE
2707#define __USART2_FORCE_RESET __HAL_RCC_USART2_FORCE_RESET
2708#define __USART2_RELEASE_RESET __HAL_RCC_USART2_RELEASE_RESET
2709#define __USART3_CLK_DISABLE __HAL_RCC_USART3_CLK_DISABLE
2710#define __USART3_CLK_ENABLE __HAL_RCC_USART3_CLK_ENABLE
2711#define __USART3_CLK_SLEEP_DISABLE __HAL_RCC_USART3_CLK_SLEEP_DISABLE
2712#define __USART3_CLK_SLEEP_ENABLE __HAL_RCC_USART3_CLK_SLEEP_ENABLE
2713#define __USART3_FORCE_RESET __HAL_RCC_USART3_FORCE_RESET
2714#define __USART3_RELEASE_RESET __HAL_RCC_USART3_RELEASE_RESET
2715#define __USART4_CLK_DISABLE __HAL_RCC_UART4_CLK_DISABLE
2716#define __USART4_CLK_ENABLE __HAL_RCC_UART4_CLK_ENABLE
2717#define __USART4_CLK_SLEEP_ENABLE __HAL_RCC_UART4_CLK_SLEEP_ENABLE
2718#define __USART4_CLK_SLEEP_DISABLE __HAL_RCC_UART4_CLK_SLEEP_DISABLE
2719#define __USART4_FORCE_RESET __HAL_RCC_UART4_FORCE_RESET
2720#define __USART4_RELEASE_RESET __HAL_RCC_UART4_RELEASE_RESET
2721#define __USART5_CLK_DISABLE __HAL_RCC_UART5_CLK_DISABLE
2722#define __USART5_CLK_ENABLE __HAL_RCC_UART5_CLK_ENABLE
2723#define __USART5_CLK_SLEEP_ENABLE __HAL_RCC_UART5_CLK_SLEEP_ENABLE
2724#define __USART5_CLK_SLEEP_DISABLE __HAL_RCC_UART5_CLK_SLEEP_DISABLE
2725#define __USART5_FORCE_RESET __HAL_RCC_UART5_FORCE_RESET
2726#define __USART5_RELEASE_RESET __HAL_RCC_UART5_RELEASE_RESET
2727#define __USART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE
2728#define __USART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE
2729#define __USART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET
2730#define __USART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET
2731#define __USART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE
2732#define __USART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE
2733#define __USART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET
2734#define __USART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET
2735#define __USB_CLK_DISABLE __HAL_RCC_USB_CLK_DISABLE
2736#define __USB_CLK_ENABLE __HAL_RCC_USB_CLK_ENABLE
2737#define __USB_FORCE_RESET __HAL_RCC_USB_FORCE_RESET
2738#define __USB_CLK_SLEEP_ENABLE __HAL_RCC_USB_CLK_SLEEP_ENABLE
2739#define __USB_CLK_SLEEP_DISABLE __HAL_RCC_USB_CLK_SLEEP_DISABLE
2740#define __USB_OTG_FS_CLK_DISABLE __HAL_RCC_USB_OTG_FS_CLK_DISABLE
2741#define __USB_OTG_FS_CLK_ENABLE __HAL_RCC_USB_OTG_FS_CLK_ENABLE
2742#define __USB_RELEASE_RESET __HAL_RCC_USB_RELEASE_RESET
2743
2744#if defined(STM32H7)
2745#define __HAL_RCC_WWDG_CLK_DISABLE __HAL_RCC_WWDG1_CLK_DISABLE
2746#define __HAL_RCC_WWDG_CLK_ENABLE __HAL_RCC_WWDG1_CLK_ENABLE
2747#define __HAL_RCC_WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG1_CLK_SLEEP_DISABLE
2748#define __HAL_RCC_WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG1_CLK_SLEEP_ENABLE
2749
2750#define __HAL_RCC_WWDG_FORCE_RESET ((void)0U) /* Not available on the STM32H7*/
2751#define __HAL_RCC_WWDG_RELEASE_RESET ((void)0U) /* Not available on the STM32H7*/
2752
2753
2754#define __HAL_RCC_WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG1_IS_CLK_ENABLED
2755#define __HAL_RCC_WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG1_IS_CLK_DISABLED
2756#endif
2757
2758#define __WWDG_CLK_DISABLE __HAL_RCC_WWDG_CLK_DISABLE
2759#define __WWDG_CLK_ENABLE __HAL_RCC_WWDG_CLK_ENABLE
2760#define __WWDG_CLK_SLEEP_DISABLE __HAL_RCC_WWDG_CLK_SLEEP_DISABLE
2761#define __WWDG_CLK_SLEEP_ENABLE __HAL_RCC_WWDG_CLK_SLEEP_ENABLE
2762#define __WWDG_FORCE_RESET __HAL_RCC_WWDG_FORCE_RESET
2763#define __WWDG_RELEASE_RESET __HAL_RCC_WWDG_RELEASE_RESET
2764
2765#define __TIM21_CLK_ENABLE __HAL_RCC_TIM21_CLK_ENABLE
2766#define __TIM21_CLK_DISABLE __HAL_RCC_TIM21_CLK_DISABLE
2767#define __TIM21_FORCE_RESET __HAL_RCC_TIM21_FORCE_RESET
2768#define __TIM21_RELEASE_RESET __HAL_RCC_TIM21_RELEASE_RESET
2769#define __TIM21_CLK_SLEEP_ENABLE __HAL_RCC_TIM21_CLK_SLEEP_ENABLE
2770#define __TIM21_CLK_SLEEP_DISABLE __HAL_RCC_TIM21_CLK_SLEEP_DISABLE
2771#define __TIM22_CLK_ENABLE __HAL_RCC_TIM22_CLK_ENABLE
2772#define __TIM22_CLK_DISABLE __HAL_RCC_TIM22_CLK_DISABLE
2773#define __TIM22_FORCE_RESET __HAL_RCC_TIM22_FORCE_RESET
2774#define __TIM22_RELEASE_RESET __HAL_RCC_TIM22_RELEASE_RESET
2775#define __TIM22_CLK_SLEEP_ENABLE __HAL_RCC_TIM22_CLK_SLEEP_ENABLE
2776#define __TIM22_CLK_SLEEP_DISABLE __HAL_RCC_TIM22_CLK_SLEEP_DISABLE
2777#define __CRS_CLK_DISABLE __HAL_RCC_CRS_CLK_DISABLE
2778#define __CRS_CLK_ENABLE __HAL_RCC_CRS_CLK_ENABLE
2779#define __CRS_CLK_SLEEP_DISABLE __HAL_RCC_CRS_CLK_SLEEP_DISABLE
2780#define __CRS_CLK_SLEEP_ENABLE __HAL_RCC_CRS_CLK_SLEEP_ENABLE
2781#define __CRS_FORCE_RESET __HAL_RCC_CRS_FORCE_RESET
2782#define __CRS_RELEASE_RESET __HAL_RCC_CRS_RELEASE_RESET
2783#define __RCC_BACKUPRESET_FORCE __HAL_RCC_BACKUPRESET_FORCE
2784#define __RCC_BACKUPRESET_RELEASE __HAL_RCC_BACKUPRESET_RELEASE
2785
2786#define __USB_OTG_FS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET
2787#define __USB_OTG_FS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET
2788#define __USB_OTG_FS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE
2789#define __USB_OTG_FS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE
2790#define __USB_OTG_HS_CLK_DISABLE __HAL_RCC_USB_OTG_HS_CLK_DISABLE
2791#define __USB_OTG_HS_CLK_ENABLE __HAL_RCC_USB_OTG_HS_CLK_ENABLE
2792#define __USB_OTG_HS_ULPI_CLK_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE
2793#define __USB_OTG_HS_ULPI_CLK_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE
2794#define __TIM9_CLK_SLEEP_ENABLE __HAL_RCC_TIM9_CLK_SLEEP_ENABLE
2795#define __TIM9_CLK_SLEEP_DISABLE __HAL_RCC_TIM9_CLK_SLEEP_DISABLE
2796#define __TIM10_CLK_SLEEP_ENABLE __HAL_RCC_TIM10_CLK_SLEEP_ENABLE
2797#define __TIM10_CLK_SLEEP_DISABLE __HAL_RCC_TIM10_CLK_SLEEP_DISABLE
2798#define __TIM11_CLK_SLEEP_ENABLE __HAL_RCC_TIM11_CLK_SLEEP_ENABLE
2799#define __TIM11_CLK_SLEEP_DISABLE __HAL_RCC_TIM11_CLK_SLEEP_DISABLE
2800#define __ETHMACPTP_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_ENABLE
2801#define __ETHMACPTP_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACPTP_CLK_SLEEP_DISABLE
2802#define __ETHMACPTP_CLK_ENABLE __HAL_RCC_ETHMACPTP_CLK_ENABLE
2803#define __ETHMACPTP_CLK_DISABLE __HAL_RCC_ETHMACPTP_CLK_DISABLE
2804#define __HASH_CLK_ENABLE __HAL_RCC_HASH_CLK_ENABLE
2805#define __HASH_FORCE_RESET __HAL_RCC_HASH_FORCE_RESET
2806#define __HASH_RELEASE_RESET __HAL_RCC_HASH_RELEASE_RESET
2807#define __HASH_CLK_SLEEP_ENABLE __HAL_RCC_HASH_CLK_SLEEP_ENABLE
2808#define __HASH_CLK_SLEEP_DISABLE __HAL_RCC_HASH_CLK_SLEEP_DISABLE
2809#define __HASH_CLK_DISABLE __HAL_RCC_HASH_CLK_DISABLE
2810#define __SPI5_CLK_ENABLE __HAL_RCC_SPI5_CLK_ENABLE
2811#define __SPI5_CLK_DISABLE __HAL_RCC_SPI5_CLK_DISABLE
2812#define __SPI5_FORCE_RESET __HAL_RCC_SPI5_FORCE_RESET
2813#define __SPI5_RELEASE_RESET __HAL_RCC_SPI5_RELEASE_RESET
2814#define __SPI5_CLK_SLEEP_ENABLE __HAL_RCC_SPI5_CLK_SLEEP_ENABLE
2815#define __SPI5_CLK_SLEEP_DISABLE __HAL_RCC_SPI5_CLK_SLEEP_DISABLE
2816#define __SPI6_CLK_ENABLE __HAL_RCC_SPI6_CLK_ENABLE
2817#define __SPI6_CLK_DISABLE __HAL_RCC_SPI6_CLK_DISABLE
2818#define __SPI6_FORCE_RESET __HAL_RCC_SPI6_FORCE_RESET
2819#define __SPI6_RELEASE_RESET __HAL_RCC_SPI6_RELEASE_RESET
2820#define __SPI6_CLK_SLEEP_ENABLE __HAL_RCC_SPI6_CLK_SLEEP_ENABLE
2821#define __SPI6_CLK_SLEEP_DISABLE __HAL_RCC_SPI6_CLK_SLEEP_DISABLE
2822#define __LTDC_CLK_ENABLE __HAL_RCC_LTDC_CLK_ENABLE
2823#define __LTDC_CLK_DISABLE __HAL_RCC_LTDC_CLK_DISABLE
2824#define __LTDC_FORCE_RESET __HAL_RCC_LTDC_FORCE_RESET
2825#define __LTDC_RELEASE_RESET __HAL_RCC_LTDC_RELEASE_RESET
2826#define __LTDC_CLK_SLEEP_ENABLE __HAL_RCC_LTDC_CLK_SLEEP_ENABLE
2827#define __ETHMAC_CLK_SLEEP_ENABLE __HAL_RCC_ETHMAC_CLK_SLEEP_ENABLE
2828#define __ETHMAC_CLK_SLEEP_DISABLE __HAL_RCC_ETHMAC_CLK_SLEEP_DISABLE
2829#define __ETHMACTX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_ENABLE
2830#define __ETHMACTX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACTX_CLK_SLEEP_DISABLE
2831#define __ETHMACRX_CLK_SLEEP_ENABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_ENABLE
2832#define __ETHMACRX_CLK_SLEEP_DISABLE __HAL_RCC_ETHMACRX_CLK_SLEEP_DISABLE
2833#define __TIM12_CLK_SLEEP_ENABLE __HAL_RCC_TIM12_CLK_SLEEP_ENABLE
2834#define __TIM12_CLK_SLEEP_DISABLE __HAL_RCC_TIM12_CLK_SLEEP_DISABLE
2835#define __TIM13_CLK_SLEEP_ENABLE __HAL_RCC_TIM13_CLK_SLEEP_ENABLE
2836#define __TIM13_CLK_SLEEP_DISABLE __HAL_RCC_TIM13_CLK_SLEEP_DISABLE
2837#define __TIM14_CLK_SLEEP_ENABLE __HAL_RCC_TIM14_CLK_SLEEP_ENABLE
2838#define __TIM14_CLK_SLEEP_DISABLE __HAL_RCC_TIM14_CLK_SLEEP_DISABLE
2839#define __BKPSRAM_CLK_ENABLE __HAL_RCC_BKPSRAM_CLK_ENABLE
2840#define __BKPSRAM_CLK_DISABLE __HAL_RCC_BKPSRAM_CLK_DISABLE
2841#define __BKPSRAM_CLK_SLEEP_ENABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_ENABLE
2842#define __BKPSRAM_CLK_SLEEP_DISABLE __HAL_RCC_BKPSRAM_CLK_SLEEP_DISABLE
2843#define __CCMDATARAMEN_CLK_ENABLE __HAL_RCC_CCMDATARAMEN_CLK_ENABLE
2844#define __CCMDATARAMEN_CLK_DISABLE __HAL_RCC_CCMDATARAMEN_CLK_DISABLE
2845#define __USART6_CLK_ENABLE __HAL_RCC_USART6_CLK_ENABLE
2846#define __USART6_CLK_DISABLE __HAL_RCC_USART6_CLK_DISABLE
2847#define __USART6_FORCE_RESET __HAL_RCC_USART6_FORCE_RESET
2848#define __USART6_RELEASE_RESET __HAL_RCC_USART6_RELEASE_RESET
2849#define __USART6_CLK_SLEEP_ENABLE __HAL_RCC_USART6_CLK_SLEEP_ENABLE
2850#define __USART6_CLK_SLEEP_DISABLE __HAL_RCC_USART6_CLK_SLEEP_DISABLE
2851#define __SPI4_CLK_ENABLE __HAL_RCC_SPI4_CLK_ENABLE
2852#define __SPI4_CLK_DISABLE __HAL_RCC_SPI4_CLK_DISABLE
2853#define __SPI4_FORCE_RESET __HAL_RCC_SPI4_FORCE_RESET
2854#define __SPI4_RELEASE_RESET __HAL_RCC_SPI4_RELEASE_RESET
2855#define __SPI4_CLK_SLEEP_ENABLE __HAL_RCC_SPI4_CLK_SLEEP_ENABLE
2856#define __SPI4_CLK_SLEEP_DISABLE __HAL_RCC_SPI4_CLK_SLEEP_DISABLE
2857#define __GPIOI_CLK_ENABLE __HAL_RCC_GPIOI_CLK_ENABLE
2858#define __GPIOI_CLK_DISABLE __HAL_RCC_GPIOI_CLK_DISABLE
2859#define __GPIOI_FORCE_RESET __HAL_RCC_GPIOI_FORCE_RESET
2860#define __GPIOI_RELEASE_RESET __HAL_RCC_GPIOI_RELEASE_RESET
2861#define __GPIOI_CLK_SLEEP_ENABLE __HAL_RCC_GPIOI_CLK_SLEEP_ENABLE
2862#define __GPIOI_CLK_SLEEP_DISABLE __HAL_RCC_GPIOI_CLK_SLEEP_DISABLE
2863#define __GPIOJ_CLK_ENABLE __HAL_RCC_GPIOJ_CLK_ENABLE
2864#define __GPIOJ_CLK_DISABLE __HAL_RCC_GPIOJ_CLK_DISABLE
2865#define __GPIOJ_FORCE_RESET __HAL_RCC_GPIOJ_FORCE_RESET
2866#define __GPIOJ_RELEASE_RESET __HAL_RCC_GPIOJ_RELEASE_RESET
2867#define __GPIOJ_CLK_SLEEP_ENABLE __HAL_RCC_GPIOJ_CLK_SLEEP_ENABLE
2868#define __GPIOJ_CLK_SLEEP_DISABLE __HAL_RCC_GPIOJ_CLK_SLEEP_DISABLE
2869#define __GPIOK_CLK_ENABLE __HAL_RCC_GPIOK_CLK_ENABLE
2870#define __GPIOK_CLK_DISABLE __HAL_RCC_GPIOK_CLK_DISABLE
2871#define __GPIOK_RELEASE_RESET __HAL_RCC_GPIOK_RELEASE_RESET
2872#define __GPIOK_CLK_SLEEP_ENABLE __HAL_RCC_GPIOK_CLK_SLEEP_ENABLE
2873#define __GPIOK_CLK_SLEEP_DISABLE __HAL_RCC_GPIOK_CLK_SLEEP_DISABLE
2874#define __ETH_CLK_ENABLE __HAL_RCC_ETH_CLK_ENABLE
2875#define __ETH_CLK_DISABLE __HAL_RCC_ETH_CLK_DISABLE
2876#define __DCMI_CLK_ENABLE __HAL_RCC_DCMI_CLK_ENABLE
2877#define __DCMI_CLK_DISABLE __HAL_RCC_DCMI_CLK_DISABLE
2878#define __DCMI_FORCE_RESET __HAL_RCC_DCMI_FORCE_RESET
2879#define __DCMI_RELEASE_RESET __HAL_RCC_DCMI_RELEASE_RESET
2880#define __DCMI_CLK_SLEEP_ENABLE __HAL_RCC_DCMI_CLK_SLEEP_ENABLE
2881#define __DCMI_CLK_SLEEP_DISABLE __HAL_RCC_DCMI_CLK_SLEEP_DISABLE
2882#define __UART7_CLK_ENABLE __HAL_RCC_UART7_CLK_ENABLE
2883#define __UART7_CLK_DISABLE __HAL_RCC_UART7_CLK_DISABLE
2884#define __UART7_RELEASE_RESET __HAL_RCC_UART7_RELEASE_RESET
2885#define __UART7_FORCE_RESET __HAL_RCC_UART7_FORCE_RESET
2886#define __UART7_CLK_SLEEP_ENABLE __HAL_RCC_UART7_CLK_SLEEP_ENABLE
2887#define __UART7_CLK_SLEEP_DISABLE __HAL_RCC_UART7_CLK_SLEEP_DISABLE
2888#define __UART8_CLK_ENABLE __HAL_RCC_UART8_CLK_ENABLE
2889#define __UART8_CLK_DISABLE __HAL_RCC_UART8_CLK_DISABLE
2890#define __UART8_FORCE_RESET __HAL_RCC_UART8_FORCE_RESET
2891#define __UART8_RELEASE_RESET __HAL_RCC_UART8_RELEASE_RESET
2892#define __UART8_CLK_SLEEP_ENABLE __HAL_RCC_UART8_CLK_SLEEP_ENABLE
2893#define __UART8_CLK_SLEEP_DISABLE __HAL_RCC_UART8_CLK_SLEEP_DISABLE
2894#define __OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE
2895#define __OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE
2896#define __OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET
2897#define __OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET
2898#define __OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE
2899#define __OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE
2900#define __HAL_RCC_OTGHS_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE
2901#define __HAL_RCC_OTGHS_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE
2902#define __HAL_RCC_OTGHS_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_ENABLED
2903#define __HAL_RCC_OTGHS_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_IS_CLK_SLEEP_DISABLED
2904#define __HAL_RCC_OTGHS_FORCE_RESET __HAL_RCC_USB_OTG_HS_FORCE_RESET
2905#define __HAL_RCC_OTGHS_RELEASE_RESET __HAL_RCC_USB_OTG_HS_RELEASE_RESET
2906#define __HAL_RCC_OTGHSULPI_CLK_SLEEP_ENABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE
2907#define __HAL_RCC_OTGHSULPI_CLK_SLEEP_DISABLE __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE
2908#define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_ENABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_ENABLED
2909#define __HAL_RCC_OTGHSULPI_IS_CLK_SLEEP_DISABLED __HAL_RCC_USB_OTG_HS_ULPI_IS_CLK_SLEEP_DISABLED
2910#define __SRAM3_CLK_SLEEP_ENABLE __HAL_RCC_SRAM3_CLK_SLEEP_ENABLE
2911#define __CAN2_CLK_SLEEP_ENABLE __HAL_RCC_CAN2_CLK_SLEEP_ENABLE
2912#define __CAN2_CLK_SLEEP_DISABLE __HAL_RCC_CAN2_CLK_SLEEP_DISABLE
2913#define __DAC_CLK_SLEEP_ENABLE __HAL_RCC_DAC_CLK_SLEEP_ENABLE
2914#define __DAC_CLK_SLEEP_DISABLE __HAL_RCC_DAC_CLK_SLEEP_DISABLE
2915#define __ADC2_CLK_SLEEP_ENABLE __HAL_RCC_ADC2_CLK_SLEEP_ENABLE
2916#define __ADC2_CLK_SLEEP_DISABLE __HAL_RCC_ADC2_CLK_SLEEP_DISABLE
2917#define __ADC3_CLK_SLEEP_ENABLE __HAL_RCC_ADC3_CLK_SLEEP_ENABLE
2918#define __ADC3_CLK_SLEEP_DISABLE __HAL_RCC_ADC3_CLK_SLEEP_DISABLE
2919#define __FSMC_FORCE_RESET __HAL_RCC_FSMC_FORCE_RESET
2920#define __FSMC_RELEASE_RESET __HAL_RCC_FSMC_RELEASE_RESET
2921#define __FSMC_CLK_SLEEP_ENABLE __HAL_RCC_FSMC_CLK_SLEEP_ENABLE
2922#define __FSMC_CLK_SLEEP_DISABLE __HAL_RCC_FSMC_CLK_SLEEP_DISABLE
2923#define __SDIO_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET
2924#define __SDIO_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET
2925#define __SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE
2926#define __SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE
2927#define __DMA2D_CLK_ENABLE __HAL_RCC_DMA2D_CLK_ENABLE
2928#define __DMA2D_CLK_DISABLE __HAL_RCC_DMA2D_CLK_DISABLE
2929#define __DMA2D_FORCE_RESET __HAL_RCC_DMA2D_FORCE_RESET
2930#define __DMA2D_RELEASE_RESET __HAL_RCC_DMA2D_RELEASE_RESET
2931#define __DMA2D_CLK_SLEEP_ENABLE __HAL_RCC_DMA2D_CLK_SLEEP_ENABLE
2932#define __DMA2D_CLK_SLEEP_DISABLE __HAL_RCC_DMA2D_CLK_SLEEP_DISABLE
2933
2934/* alias define maintained for legacy */
2935#define __HAL_RCC_OTGFS_FORCE_RESET __HAL_RCC_USB_OTG_FS_FORCE_RESET
2936#define __HAL_RCC_OTGFS_RELEASE_RESET __HAL_RCC_USB_OTG_FS_RELEASE_RESET
2937
2938#define __ADC12_CLK_ENABLE __HAL_RCC_ADC12_CLK_ENABLE
2939#define __ADC12_CLK_DISABLE __HAL_RCC_ADC12_CLK_DISABLE
2940#define __ADC34_CLK_ENABLE __HAL_RCC_ADC34_CLK_ENABLE
2941#define __ADC34_CLK_DISABLE __HAL_RCC_ADC34_CLK_DISABLE
2942#define __DAC2_CLK_ENABLE __HAL_RCC_DAC2_CLK_ENABLE
2943#define __DAC2_CLK_DISABLE __HAL_RCC_DAC2_CLK_DISABLE
2944#define __TIM18_CLK_ENABLE __HAL_RCC_TIM18_CLK_ENABLE
2945#define __TIM18_CLK_DISABLE __HAL_RCC_TIM18_CLK_DISABLE
2946#define __TIM19_CLK_ENABLE __HAL_RCC_TIM19_CLK_ENABLE
2947#define __TIM19_CLK_DISABLE __HAL_RCC_TIM19_CLK_DISABLE
2948#define __TIM20_CLK_ENABLE __HAL_RCC_TIM20_CLK_ENABLE
2949#define __TIM20_CLK_DISABLE __HAL_RCC_TIM20_CLK_DISABLE
2950#define __HRTIM1_CLK_ENABLE __HAL_RCC_HRTIM1_CLK_ENABLE
2951#define __HRTIM1_CLK_DISABLE __HAL_RCC_HRTIM1_CLK_DISABLE
2952#define __SDADC1_CLK_ENABLE __HAL_RCC_SDADC1_CLK_ENABLE
2953#define __SDADC2_CLK_ENABLE __HAL_RCC_SDADC2_CLK_ENABLE
2954#define __SDADC3_CLK_ENABLE __HAL_RCC_SDADC3_CLK_ENABLE
2955#define __SDADC1_CLK_DISABLE __HAL_RCC_SDADC1_CLK_DISABLE
2956#define __SDADC2_CLK_DISABLE __HAL_RCC_SDADC2_CLK_DISABLE
2957#define __SDADC3_CLK_DISABLE __HAL_RCC_SDADC3_CLK_DISABLE
2958
2959#define __ADC12_FORCE_RESET __HAL_RCC_ADC12_FORCE_RESET
2960#define __ADC12_RELEASE_RESET __HAL_RCC_ADC12_RELEASE_RESET
2961#define __ADC34_FORCE_RESET __HAL_RCC_ADC34_FORCE_RESET
2962#define __ADC34_RELEASE_RESET __HAL_RCC_ADC34_RELEASE_RESET
2963#define __DAC2_FORCE_RESET __HAL_RCC_DAC2_FORCE_RESET
2964#define __DAC2_RELEASE_RESET __HAL_RCC_DAC2_RELEASE_RESET
2965#define __TIM18_FORCE_RESET __HAL_RCC_TIM18_FORCE_RESET
2966#define __TIM18_RELEASE_RESET __HAL_RCC_TIM18_RELEASE_RESET
2967#define __TIM19_FORCE_RESET __HAL_RCC_TIM19_FORCE_RESET
2968#define __TIM19_RELEASE_RESET __HAL_RCC_TIM19_RELEASE_RESET
2969#define __TIM20_FORCE_RESET __HAL_RCC_TIM20_FORCE_RESET
2970#define __TIM20_RELEASE_RESET __HAL_RCC_TIM20_RELEASE_RESET
2971#define __HRTIM1_FORCE_RESET __HAL_RCC_HRTIM1_FORCE_RESET
2972#define __HRTIM1_RELEASE_RESET __HAL_RCC_HRTIM1_RELEASE_RESET
2973#define __SDADC1_FORCE_RESET __HAL_RCC_SDADC1_FORCE_RESET
2974#define __SDADC2_FORCE_RESET __HAL_RCC_SDADC2_FORCE_RESET
2975#define __SDADC3_FORCE_RESET __HAL_RCC_SDADC3_FORCE_RESET
2976#define __SDADC1_RELEASE_RESET __HAL_RCC_SDADC1_RELEASE_RESET
2977#define __SDADC2_RELEASE_RESET __HAL_RCC_SDADC2_RELEASE_RESET
2978#define __SDADC3_RELEASE_RESET __HAL_RCC_SDADC3_RELEASE_RESET
2979
2980#define __ADC1_IS_CLK_ENABLED __HAL_RCC_ADC1_IS_CLK_ENABLED
2981#define __ADC1_IS_CLK_DISABLED __HAL_RCC_ADC1_IS_CLK_DISABLED
2982#define __ADC12_IS_CLK_ENABLED __HAL_RCC_ADC12_IS_CLK_ENABLED
2983#define __ADC12_IS_CLK_DISABLED __HAL_RCC_ADC12_IS_CLK_DISABLED
2984#define __ADC34_IS_CLK_ENABLED __HAL_RCC_ADC34_IS_CLK_ENABLED
2985#define __ADC34_IS_CLK_DISABLED __HAL_RCC_ADC34_IS_CLK_DISABLED
2986#define __CEC_IS_CLK_ENABLED __HAL_RCC_CEC_IS_CLK_ENABLED
2987#define __CEC_IS_CLK_DISABLED __HAL_RCC_CEC_IS_CLK_DISABLED
2988#define __CRC_IS_CLK_ENABLED __HAL_RCC_CRC_IS_CLK_ENABLED
2989#define __CRC_IS_CLK_DISABLED __HAL_RCC_CRC_IS_CLK_DISABLED
2990#define __DAC1_IS_CLK_ENABLED __HAL_RCC_DAC1_IS_CLK_ENABLED
2991#define __DAC1_IS_CLK_DISABLED __HAL_RCC_DAC1_IS_CLK_DISABLED
2992#define __DAC2_IS_CLK_ENABLED __HAL_RCC_DAC2_IS_CLK_ENABLED
2993#define __DAC2_IS_CLK_DISABLED __HAL_RCC_DAC2_IS_CLK_DISABLED
2994#define __DMA1_IS_CLK_ENABLED __HAL_RCC_DMA1_IS_CLK_ENABLED
2995#define __DMA1_IS_CLK_DISABLED __HAL_RCC_DMA1_IS_CLK_DISABLED
2996#define __DMA2_IS_CLK_ENABLED __HAL_RCC_DMA2_IS_CLK_ENABLED
2997#define __DMA2_IS_CLK_DISABLED __HAL_RCC_DMA2_IS_CLK_DISABLED
2998#define __FLITF_IS_CLK_ENABLED __HAL_RCC_FLITF_IS_CLK_ENABLED
2999#define __FLITF_IS_CLK_DISABLED __HAL_RCC_FLITF_IS_CLK_DISABLED
3000#define __FMC_IS_CLK_ENABLED __HAL_RCC_FMC_IS_CLK_ENABLED
3001#define __FMC_IS_CLK_DISABLED __HAL_RCC_FMC_IS_CLK_DISABLED
3002#define __GPIOA_IS_CLK_ENABLED __HAL_RCC_GPIOA_IS_CLK_ENABLED
3003#define __GPIOA_IS_CLK_DISABLED __HAL_RCC_GPIOA_IS_CLK_DISABLED
3004#define __GPIOB_IS_CLK_ENABLED __HAL_RCC_GPIOB_IS_CLK_ENABLED
3005#define __GPIOB_IS_CLK_DISABLED __HAL_RCC_GPIOB_IS_CLK_DISABLED
3006#define __GPIOC_IS_CLK_ENABLED __HAL_RCC_GPIOC_IS_CLK_ENABLED
3007#define __GPIOC_IS_CLK_DISABLED __HAL_RCC_GPIOC_IS_CLK_DISABLED
3008#define __GPIOD_IS_CLK_ENABLED __HAL_RCC_GPIOD_IS_CLK_ENABLED
3009#define __GPIOD_IS_CLK_DISABLED __HAL_RCC_GPIOD_IS_CLK_DISABLED
3010#define __GPIOE_IS_CLK_ENABLED __HAL_RCC_GPIOE_IS_CLK_ENABLED
3011#define __GPIOE_IS_CLK_DISABLED __HAL_RCC_GPIOE_IS_CLK_DISABLED
3012#define __GPIOF_IS_CLK_ENABLED __HAL_RCC_GPIOF_IS_CLK_ENABLED
3013#define __GPIOF_IS_CLK_DISABLED __HAL_RCC_GPIOF_IS_CLK_DISABLED
3014#define __GPIOG_IS_CLK_ENABLED __HAL_RCC_GPIOG_IS_CLK_ENABLED
3015#define __GPIOG_IS_CLK_DISABLED __HAL_RCC_GPIOG_IS_CLK_DISABLED
3016#define __GPIOH_IS_CLK_ENABLED __HAL_RCC_GPIOH_IS_CLK_ENABLED
3017#define __GPIOH_IS_CLK_DISABLED __HAL_RCC_GPIOH_IS_CLK_DISABLED
3018#define __HRTIM1_IS_CLK_ENABLED __HAL_RCC_HRTIM1_IS_CLK_ENABLED
3019#define __HRTIM1_IS_CLK_DISABLED __HAL_RCC_HRTIM1_IS_CLK_DISABLED
3020#define __I2C1_IS_CLK_ENABLED __HAL_RCC_I2C1_IS_CLK_ENABLED
3021#define __I2C1_IS_CLK_DISABLED __HAL_RCC_I2C1_IS_CLK_DISABLED
3022#define __I2C2_IS_CLK_ENABLED __HAL_RCC_I2C2_IS_CLK_ENABLED
3023#define __I2C2_IS_CLK_DISABLED __HAL_RCC_I2C2_IS_CLK_DISABLED
3024#define __I2C3_IS_CLK_ENABLED __HAL_RCC_I2C3_IS_CLK_ENABLED
3025#define __I2C3_IS_CLK_DISABLED __HAL_RCC_I2C3_IS_CLK_DISABLED
3026#define __PWR_IS_CLK_ENABLED __HAL_RCC_PWR_IS_CLK_ENABLED
3027#define __PWR_IS_CLK_DISABLED __HAL_RCC_PWR_IS_CLK_DISABLED
3028#define __SYSCFG_IS_CLK_ENABLED __HAL_RCC_SYSCFG_IS_CLK_ENABLED
3029#define __SYSCFG_IS_CLK_DISABLED __HAL_RCC_SYSCFG_IS_CLK_DISABLED
3030#define __SPI1_IS_CLK_ENABLED __HAL_RCC_SPI1_IS_CLK_ENABLED
3031#define __SPI1_IS_CLK_DISABLED __HAL_RCC_SPI1_IS_CLK_DISABLED
3032#define __SPI2_IS_CLK_ENABLED __HAL_RCC_SPI2_IS_CLK_ENABLED
3033#define __SPI2_IS_CLK_DISABLED __HAL_RCC_SPI2_IS_CLK_DISABLED
3034#define __SPI3_IS_CLK_ENABLED __HAL_RCC_SPI3_IS_CLK_ENABLED
3035#define __SPI3_IS_CLK_DISABLED __HAL_RCC_SPI3_IS_CLK_DISABLED
3036#define __SPI4_IS_CLK_ENABLED __HAL_RCC_SPI4_IS_CLK_ENABLED
3037#define __SPI4_IS_CLK_DISABLED __HAL_RCC_SPI4_IS_CLK_DISABLED
3038#define __SDADC1_IS_CLK_ENABLED __HAL_RCC_SDADC1_IS_CLK_ENABLED
3039#define __SDADC1_IS_CLK_DISABLED __HAL_RCC_SDADC1_IS_CLK_DISABLED
3040#define __SDADC2_IS_CLK_ENABLED __HAL_RCC_SDADC2_IS_CLK_ENABLED
3041#define __SDADC2_IS_CLK_DISABLED __HAL_RCC_SDADC2_IS_CLK_DISABLED
3042#define __SDADC3_IS_CLK_ENABLED __HAL_RCC_SDADC3_IS_CLK_ENABLED
3043#define __SDADC3_IS_CLK_DISABLED __HAL_RCC_SDADC3_IS_CLK_DISABLED
3044#define __SRAM_IS_CLK_ENABLED __HAL_RCC_SRAM_IS_CLK_ENABLED
3045#define __SRAM_IS_CLK_DISABLED __HAL_RCC_SRAM_IS_CLK_DISABLED
3046#define __TIM1_IS_CLK_ENABLED __HAL_RCC_TIM1_IS_CLK_ENABLED
3047#define __TIM1_IS_CLK_DISABLED __HAL_RCC_TIM1_IS_CLK_DISABLED
3048#define __TIM2_IS_CLK_ENABLED __HAL_RCC_TIM2_IS_CLK_ENABLED
3049#define __TIM2_IS_CLK_DISABLED __HAL_RCC_TIM2_IS_CLK_DISABLED
3050#define __TIM3_IS_CLK_ENABLED __HAL_RCC_TIM3_IS_CLK_ENABLED
3051#define __TIM3_IS_CLK_DISABLED __HAL_RCC_TIM3_IS_CLK_DISABLED
3052#define __TIM4_IS_CLK_ENABLED __HAL_RCC_TIM4_IS_CLK_ENABLED
3053#define __TIM4_IS_CLK_DISABLED __HAL_RCC_TIM4_IS_CLK_DISABLED
3054#define __TIM5_IS_CLK_ENABLED __HAL_RCC_TIM5_IS_CLK_ENABLED
3055#define __TIM5_IS_CLK_DISABLED __HAL_RCC_TIM5_IS_CLK_DISABLED
3056#define __TIM6_IS_CLK_ENABLED __HAL_RCC_TIM6_IS_CLK_ENABLED
3057#define __TIM6_IS_CLK_DISABLED __HAL_RCC_TIM6_IS_CLK_DISABLED
3058#define __TIM7_IS_CLK_ENABLED __HAL_RCC_TIM7_IS_CLK_ENABLED
3059#define __TIM7_IS_CLK_DISABLED __HAL_RCC_TIM7_IS_CLK_DISABLED
3060#define __TIM8_IS_CLK_ENABLED __HAL_RCC_TIM8_IS_CLK_ENABLED
3061#define __TIM8_IS_CLK_DISABLED __HAL_RCC_TIM8_IS_CLK_DISABLED
3062#define __TIM12_IS_CLK_ENABLED __HAL_RCC_TIM12_IS_CLK_ENABLED
3063#define __TIM12_IS_CLK_DISABLED __HAL_RCC_TIM12_IS_CLK_DISABLED
3064#define __TIM13_IS_CLK_ENABLED __HAL_RCC_TIM13_IS_CLK_ENABLED
3065#define __TIM13_IS_CLK_DISABLED __HAL_RCC_TIM13_IS_CLK_DISABLED
3066#define __TIM14_IS_CLK_ENABLED __HAL_RCC_TIM14_IS_CLK_ENABLED
3067#define __TIM14_IS_CLK_DISABLED __HAL_RCC_TIM14_IS_CLK_DISABLED
3068#define __TIM15_IS_CLK_ENABLED __HAL_RCC_TIM15_IS_CLK_ENABLED
3069#define __TIM15_IS_CLK_DISABLED __HAL_RCC_TIM15_IS_CLK_DISABLED
3070#define __TIM16_IS_CLK_ENABLED __HAL_RCC_TIM16_IS_CLK_ENABLED
3071#define __TIM16_IS_CLK_DISABLED __HAL_RCC_TIM16_IS_CLK_DISABLED
3072#define __TIM17_IS_CLK_ENABLED __HAL_RCC_TIM17_IS_CLK_ENABLED
3073#define __TIM17_IS_CLK_DISABLED __HAL_RCC_TIM17_IS_CLK_DISABLED
3074#define __TIM18_IS_CLK_ENABLED __HAL_RCC_TIM18_IS_CLK_ENABLED
3075#define __TIM18_IS_CLK_DISABLED __HAL_RCC_TIM18_IS_CLK_DISABLED
3076#define __TIM19_IS_CLK_ENABLED __HAL_RCC_TIM19_IS_CLK_ENABLED
3077#define __TIM19_IS_CLK_DISABLED __HAL_RCC_TIM19_IS_CLK_DISABLED
3078#define __TIM20_IS_CLK_ENABLED __HAL_RCC_TIM20_IS_CLK_ENABLED
3079#define __TIM20_IS_CLK_DISABLED __HAL_RCC_TIM20_IS_CLK_DISABLED
3080#define __TSC_IS_CLK_ENABLED __HAL_RCC_TSC_IS_CLK_ENABLED
3081#define __TSC_IS_CLK_DISABLED __HAL_RCC_TSC_IS_CLK_DISABLED
3082#define __UART4_IS_CLK_ENABLED __HAL_RCC_UART4_IS_CLK_ENABLED
3083#define __UART4_IS_CLK_DISABLED __HAL_RCC_UART4_IS_CLK_DISABLED
3084#define __UART5_IS_CLK_ENABLED __HAL_RCC_UART5_IS_CLK_ENABLED
3085#define __UART5_IS_CLK_DISABLED __HAL_RCC_UART5_IS_CLK_DISABLED
3086#define __USART1_IS_CLK_ENABLED __HAL_RCC_USART1_IS_CLK_ENABLED
3087#define __USART1_IS_CLK_DISABLED __HAL_RCC_USART1_IS_CLK_DISABLED
3088#define __USART2_IS_CLK_ENABLED __HAL_RCC_USART2_IS_CLK_ENABLED
3089#define __USART2_IS_CLK_DISABLED __HAL_RCC_USART2_IS_CLK_DISABLED
3090#define __USART3_IS_CLK_ENABLED __HAL_RCC_USART3_IS_CLK_ENABLED
3091#define __USART3_IS_CLK_DISABLED __HAL_RCC_USART3_IS_CLK_DISABLED
3092#define __USB_IS_CLK_ENABLED __HAL_RCC_USB_IS_CLK_ENABLED
3093#define __USB_IS_CLK_DISABLED __HAL_RCC_USB_IS_CLK_DISABLED
3094#define __WWDG_IS_CLK_ENABLED __HAL_RCC_WWDG_IS_CLK_ENABLED
3095#define __WWDG_IS_CLK_DISABLED __HAL_RCC_WWDG_IS_CLK_DISABLED
3096
3097#if defined(STM32L1)
3098#define __HAL_RCC_CRYP_CLK_DISABLE __HAL_RCC_AES_CLK_DISABLE
3099#define __HAL_RCC_CRYP_CLK_ENABLE __HAL_RCC_AES_CLK_ENABLE
3100#define __HAL_RCC_CRYP_CLK_SLEEP_DISABLE __HAL_RCC_AES_CLK_SLEEP_DISABLE
3101#define __HAL_RCC_CRYP_CLK_SLEEP_ENABLE __HAL_RCC_AES_CLK_SLEEP_ENABLE
3102#define __HAL_RCC_CRYP_FORCE_RESET __HAL_RCC_AES_FORCE_RESET
3103#define __HAL_RCC_CRYP_RELEASE_RESET __HAL_RCC_AES_RELEASE_RESET
3104#endif /* STM32L1 */
3105
3106#if defined(STM32F4)
3107#define __HAL_RCC_SDMMC1_FORCE_RESET __HAL_RCC_SDIO_FORCE_RESET
3108#define __HAL_RCC_SDMMC1_RELEASE_RESET __HAL_RCC_SDIO_RELEASE_RESET
3109#define __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE __HAL_RCC_SDIO_CLK_SLEEP_ENABLE
3110#define __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE __HAL_RCC_SDIO_CLK_SLEEP_DISABLE
3111#define __HAL_RCC_SDMMC1_CLK_ENABLE __HAL_RCC_SDIO_CLK_ENABLE
3112#define __HAL_RCC_SDMMC1_CLK_DISABLE __HAL_RCC_SDIO_CLK_DISABLE
3113#define __HAL_RCC_SDMMC1_IS_CLK_ENABLED __HAL_RCC_SDIO_IS_CLK_ENABLED
3114#define __HAL_RCC_SDMMC1_IS_CLK_DISABLED __HAL_RCC_SDIO_IS_CLK_DISABLED
3115#define Sdmmc1ClockSelection SdioClockSelection
3116#define RCC_PERIPHCLK_SDMMC1 RCC_PERIPHCLK_SDIO
3117#define RCC_SDMMC1CLKSOURCE_CLK48 RCC_SDIOCLKSOURCE_CK48
3118#define RCC_SDMMC1CLKSOURCE_SYSCLK RCC_SDIOCLKSOURCE_SYSCLK
3119#define __HAL_RCC_SDMMC1_CONFIG __HAL_RCC_SDIO_CONFIG
3120#define __HAL_RCC_GET_SDMMC1_SOURCE __HAL_RCC_GET_SDIO_SOURCE
3121#endif
3122
3123#if defined(STM32F7) || defined(STM32L4)
3124#define __HAL_RCC_SDIO_FORCE_RESET __HAL_RCC_SDMMC1_FORCE_RESET
3125#define __HAL_RCC_SDIO_RELEASE_RESET __HAL_RCC_SDMMC1_RELEASE_RESET
3126#define __HAL_RCC_SDIO_CLK_SLEEP_ENABLE __HAL_RCC_SDMMC1_CLK_SLEEP_ENABLE
3127#define __HAL_RCC_SDIO_CLK_SLEEP_DISABLE __HAL_RCC_SDMMC1_CLK_SLEEP_DISABLE
3128#define __HAL_RCC_SDIO_CLK_ENABLE __HAL_RCC_SDMMC1_CLK_ENABLE
3129#define __HAL_RCC_SDIO_CLK_DISABLE __HAL_RCC_SDMMC1_CLK_DISABLE
3130#define __HAL_RCC_SDIO_IS_CLK_ENABLED __HAL_RCC_SDMMC1_IS_CLK_ENABLED
3131#define __HAL_RCC_SDIO_IS_CLK_DISABLED __HAL_RCC_SDMMC1_IS_CLK_DISABLED
3132#define SdioClockSelection Sdmmc1ClockSelection
3133#define RCC_PERIPHCLK_SDIO RCC_PERIPHCLK_SDMMC1
3134#define __HAL_RCC_SDIO_CONFIG __HAL_RCC_SDMMC1_CONFIG
3135#define __HAL_RCC_GET_SDIO_SOURCE __HAL_RCC_GET_SDMMC1_SOURCE
3136#endif
3137
3138#if defined(STM32F7)
3139#define RCC_SDIOCLKSOURCE_CLK48 RCC_SDMMC1CLKSOURCE_CLK48
3140#define RCC_SDIOCLKSOURCE_SYSCLK RCC_SDMMC1CLKSOURCE_SYSCLK
3141#endif
3142
3143#if defined(STM32H7)
3144#define __HAL_RCC_USB_OTG_HS_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_ENABLE()
3145#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_ENABLE()
3146#define __HAL_RCC_USB_OTG_HS_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_DISABLE()
3147#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_DISABLE()
3148#define __HAL_RCC_USB_OTG_HS_FORCE_RESET() __HAL_RCC_USB1_OTG_HS_FORCE_RESET()
3149#define __HAL_RCC_USB_OTG_HS_RELEASE_RESET() __HAL_RCC_USB1_OTG_HS_RELEASE_RESET()
3150#define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_ENABLE()
3151#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_ENABLE()
3152#define __HAL_RCC_USB_OTG_HS_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_CLK_SLEEP_DISABLE()
3153#define __HAL_RCC_USB_OTG_HS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB1_OTG_HS_ULPI_CLK_SLEEP_DISABLE()
3154
3155#define __HAL_RCC_USB_OTG_FS_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_ENABLE()
3156#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_ENABLE()
3157#define __HAL_RCC_USB_OTG_FS_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_DISABLE()
3158#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_DISABLE()
3159#define __HAL_RCC_USB_OTG_FS_FORCE_RESET() __HAL_RCC_USB2_OTG_FS_FORCE_RESET()
3160#define __HAL_RCC_USB_OTG_FS_RELEASE_RESET() __HAL_RCC_USB2_OTG_FS_RELEASE_RESET()
3161#define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_ENABLE()
3162#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_ENABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_ENABLE()
3163#define __HAL_RCC_USB_OTG_FS_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_CLK_SLEEP_DISABLE()
3164#define __HAL_RCC_USB_OTG_FS_ULPI_CLK_SLEEP_DISABLE() __HAL_RCC_USB2_OTG_FS_ULPI_CLK_SLEEP_DISABLE()
3165#endif
3166
3167#define __HAL_RCC_I2SCLK __HAL_RCC_I2S_CONFIG
3168#define __HAL_RCC_I2SCLK_CONFIG __HAL_RCC_I2S_CONFIG
3169
3170#define __RCC_PLLSRC RCC_GET_PLL_OSCSOURCE
3171
3172#define IS_RCC_MSIRANGE IS_RCC_MSI_CLOCK_RANGE
3173#define IS_RCC_RTCCLK_SOURCE IS_RCC_RTCCLKSOURCE
3174#define IS_RCC_SYSCLK_DIV IS_RCC_HCLK
3175#define IS_RCC_HCLK_DIV IS_RCC_PCLK
3176#define IS_RCC_PERIPHCLK IS_RCC_PERIPHCLOCK
3177
3178#define RCC_IT_HSI14 RCC_IT_HSI14RDY
3179
3180#define RCC_IT_CSSLSE RCC_IT_LSECSS
3181#define RCC_IT_CSSHSE RCC_IT_CSS
3182
3183#define RCC_PLLMUL_3 RCC_PLL_MUL3
3184#define RCC_PLLMUL_4 RCC_PLL_MUL4
3185#define RCC_PLLMUL_6 RCC_PLL_MUL6
3186#define RCC_PLLMUL_8 RCC_PLL_MUL8
3187#define RCC_PLLMUL_12 RCC_PLL_MUL12
3188#define RCC_PLLMUL_16 RCC_PLL_MUL16
3189#define RCC_PLLMUL_24 RCC_PLL_MUL24
3190#define RCC_PLLMUL_32 RCC_PLL_MUL32
3191#define RCC_PLLMUL_48 RCC_PLL_MUL48
3192
3193#define RCC_PLLDIV_2 RCC_PLL_DIV2
3194#define RCC_PLLDIV_3 RCC_PLL_DIV3
3195#define RCC_PLLDIV_4 RCC_PLL_DIV4
3196
3197#define IS_RCC_MCOSOURCE IS_RCC_MCO1SOURCE
3198#define __HAL_RCC_MCO_CONFIG __HAL_RCC_MCO1_CONFIG
3199#define RCC_MCO_NODIV RCC_MCODIV_1
3200#define RCC_MCO_DIV1 RCC_MCODIV_1
3201#define RCC_MCO_DIV2 RCC_MCODIV_2
3202#define RCC_MCO_DIV4 RCC_MCODIV_4
3203#define RCC_MCO_DIV8 RCC_MCODIV_8
3204#define RCC_MCO_DIV16 RCC_MCODIV_16
3205#define RCC_MCO_DIV32 RCC_MCODIV_32
3206#define RCC_MCO_DIV64 RCC_MCODIV_64
3207#define RCC_MCO_DIV128 RCC_MCODIV_128
3208#define RCC_MCOSOURCE_NONE RCC_MCO1SOURCE_NOCLOCK
3209#define RCC_MCOSOURCE_LSI RCC_MCO1SOURCE_LSI
3210#define RCC_MCOSOURCE_LSE RCC_MCO1SOURCE_LSE
3211#define RCC_MCOSOURCE_SYSCLK RCC_MCO1SOURCE_SYSCLK
3212#define RCC_MCOSOURCE_HSI RCC_MCO1SOURCE_HSI
3213#define RCC_MCOSOURCE_HSI14 RCC_MCO1SOURCE_HSI14
3214#define RCC_MCOSOURCE_HSI48 RCC_MCO1SOURCE_HSI48
3215#define RCC_MCOSOURCE_HSE RCC_MCO1SOURCE_HSE
3216#define RCC_MCOSOURCE_PLLCLK_DIV1 RCC_MCO1SOURCE_PLLCLK
3217#define RCC_MCOSOURCE_PLLCLK_NODIV RCC_MCO1SOURCE_PLLCLK
3218#define RCC_MCOSOURCE_PLLCLK_DIV2 RCC_MCO1SOURCE_PLLCLK_DIV2
3219
3220#if defined(STM32L4) || defined(STM32WB) || defined(STM32G0) || defined(STM32G4) || defined(STM32L5) || defined(STM32WL)
3221#define RCC_RTCCLKSOURCE_NO_CLK RCC_RTCCLKSOURCE_NONE
3222#else
3223#define RCC_RTCCLKSOURCE_NONE RCC_RTCCLKSOURCE_NO_CLK
3224#endif
3225
3226#define RCC_USBCLK_PLLSAI1 RCC_USBCLKSOURCE_PLLSAI1
3227#define RCC_USBCLK_PLL RCC_USBCLKSOURCE_PLL
3228#define RCC_USBCLK_MSI RCC_USBCLKSOURCE_MSI
3229#define RCC_USBCLKSOURCE_PLLCLK RCC_USBCLKSOURCE_PLL
3230#define RCC_USBPLLCLK_DIV1 RCC_USBCLKSOURCE_PLL
3231#define RCC_USBPLLCLK_DIV1_5 RCC_USBCLKSOURCE_PLL_DIV1_5
3232#define RCC_USBPLLCLK_DIV2 RCC_USBCLKSOURCE_PLL_DIV2
3233#define RCC_USBPLLCLK_DIV3 RCC_USBCLKSOURCE_PLL_DIV3
3234
3235#define HSION_BitNumber RCC_HSION_BIT_NUMBER
3236#define HSION_BITNUMBER RCC_HSION_BIT_NUMBER
3237#define HSEON_BitNumber RCC_HSEON_BIT_NUMBER
3238#define HSEON_BITNUMBER RCC_HSEON_BIT_NUMBER
3239#define MSION_BITNUMBER RCC_MSION_BIT_NUMBER
3240#define CSSON_BitNumber RCC_CSSON_BIT_NUMBER
3241#define CSSON_BITNUMBER RCC_CSSON_BIT_NUMBER
3242#define PLLON_BitNumber RCC_PLLON_BIT_NUMBER
3243#define PLLON_BITNUMBER RCC_PLLON_BIT_NUMBER
3244#define PLLI2SON_BitNumber RCC_PLLI2SON_BIT_NUMBER
3245#define I2SSRC_BitNumber RCC_I2SSRC_BIT_NUMBER
3246#define RTCEN_BitNumber RCC_RTCEN_BIT_NUMBER
3247#define RTCEN_BITNUMBER RCC_RTCEN_BIT_NUMBER
3248#define BDRST_BitNumber RCC_BDRST_BIT_NUMBER
3249#define BDRST_BITNUMBER RCC_BDRST_BIT_NUMBER
3250#define RTCRST_BITNUMBER RCC_RTCRST_BIT_NUMBER
3251#define LSION_BitNumber RCC_LSION_BIT_NUMBER
3252#define LSION_BITNUMBER RCC_LSION_BIT_NUMBER
3253#define LSEON_BitNumber RCC_LSEON_BIT_NUMBER
3254#define LSEON_BITNUMBER RCC_LSEON_BIT_NUMBER
3255#define LSEBYP_BITNUMBER RCC_LSEBYP_BIT_NUMBER
3256#define PLLSAION_BitNumber RCC_PLLSAION_BIT_NUMBER
3257#define TIMPRE_BitNumber RCC_TIMPRE_BIT_NUMBER
3258#define RMVF_BitNumber RCC_RMVF_BIT_NUMBER
3259#define RMVF_BITNUMBER RCC_RMVF_BIT_NUMBER
3260#define RCC_CR2_HSI14TRIM_BitNumber RCC_HSI14TRIM_BIT_NUMBER
3261#define CR_BYTE2_ADDRESS RCC_CR_BYTE2_ADDRESS
3262#define CIR_BYTE1_ADDRESS RCC_CIR_BYTE1_ADDRESS
3263#define CIR_BYTE2_ADDRESS RCC_CIR_BYTE2_ADDRESS
3264#define BDCR_BYTE0_ADDRESS RCC_BDCR_BYTE0_ADDRESS
3265#define DBP_TIMEOUT_VALUE RCC_DBP_TIMEOUT_VALUE
3266#define LSE_TIMEOUT_VALUE RCC_LSE_TIMEOUT_VALUE
3267
3268#define CR_HSION_BB RCC_CR_HSION_BB
3269#define CR_CSSON_BB RCC_CR_CSSON_BB
3270#define CR_PLLON_BB RCC_CR_PLLON_BB
3271#define CR_PLLI2SON_BB RCC_CR_PLLI2SON_BB
3272#define CR_MSION_BB RCC_CR_MSION_BB
3273#define CSR_LSION_BB RCC_CSR_LSION_BB
3274#define CSR_LSEON_BB RCC_CSR_LSEON_BB
3275#define CSR_LSEBYP_BB RCC_CSR_LSEBYP_BB
3276#define CSR_RTCEN_BB RCC_CSR_RTCEN_BB
3277#define CSR_RTCRST_BB RCC_CSR_RTCRST_BB
3278#define CFGR_I2SSRC_BB RCC_CFGR_I2SSRC_BB
3279#define BDCR_RTCEN_BB RCC_BDCR_RTCEN_BB
3280#define BDCR_BDRST_BB RCC_BDCR_BDRST_BB
3281#define CR_HSEON_BB RCC_CR_HSEON_BB
3282#define CSR_RMVF_BB RCC_CSR_RMVF_BB
3283#define CR_PLLSAION_BB RCC_CR_PLLSAION_BB
3284#define DCKCFGR_TIMPRE_BB RCC_DCKCFGR_TIMPRE_BB
3285
3286#define __HAL_RCC_CRS_ENABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE
3287#define __HAL_RCC_CRS_DISABLE_FREQ_ERROR_COUNTER __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE
3288#define __HAL_RCC_CRS_ENABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE
3289#define __HAL_RCC_CRS_DISABLE_AUTOMATIC_CALIB __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE
3290#define __HAL_RCC_CRS_CALCULATE_RELOADVALUE __HAL_RCC_CRS_RELOADVALUE_CALCULATE
3291
3292#define __HAL_RCC_GET_IT_SOURCE __HAL_RCC_GET_IT
3293
3294#define RCC_CRS_SYNCWARM RCC_CRS_SYNCWARN
3295#define RCC_CRS_TRIMOV RCC_CRS_TRIMOVF
3296
3297#define RCC_PERIPHCLK_CK48 RCC_PERIPHCLK_CLK48
3298#define RCC_CK48CLKSOURCE_PLLQ RCC_CLK48CLKSOURCE_PLLQ
3299#define RCC_CK48CLKSOURCE_PLLSAIP RCC_CLK48CLKSOURCE_PLLSAIP
3300#define RCC_CK48CLKSOURCE_PLLI2SQ RCC_CLK48CLKSOURCE_PLLI2SQ
3301#define IS_RCC_CK48CLKSOURCE IS_RCC_CLK48CLKSOURCE
3302#define RCC_SDIOCLKSOURCE_CK48 RCC_SDIOCLKSOURCE_CLK48
3303
3304#define __HAL_RCC_DFSDM_CLK_ENABLE __HAL_RCC_DFSDM1_CLK_ENABLE
3305#define __HAL_RCC_DFSDM_CLK_DISABLE __HAL_RCC_DFSDM1_CLK_DISABLE
3306#define __HAL_RCC_DFSDM_IS_CLK_ENABLED __HAL_RCC_DFSDM1_IS_CLK_ENABLED
3307#define __HAL_RCC_DFSDM_IS_CLK_DISABLED __HAL_RCC_DFSDM1_IS_CLK_DISABLED
3308#define __HAL_RCC_DFSDM_FORCE_RESET __HAL_RCC_DFSDM1_FORCE_RESET
3309#define __HAL_RCC_DFSDM_RELEASE_RESET __HAL_RCC_DFSDM1_RELEASE_RESET
3310#define __HAL_RCC_DFSDM_CLK_SLEEP_ENABLE __HAL_RCC_DFSDM1_CLK_SLEEP_ENABLE
3311#define __HAL_RCC_DFSDM_CLK_SLEEP_DISABLE __HAL_RCC_DFSDM1_CLK_SLEEP_DISABLE
3312#define __HAL_RCC_DFSDM_IS_CLK_SLEEP_ENABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_ENABLED
3313#define __HAL_RCC_DFSDM_IS_CLK_SLEEP_DISABLED __HAL_RCC_DFSDM1_IS_CLK_SLEEP_DISABLED
3314#define DfsdmClockSelection Dfsdm1ClockSelection
3315#define RCC_PERIPHCLK_DFSDM RCC_PERIPHCLK_DFSDM1
3316#define RCC_DFSDMCLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2
3317#define RCC_DFSDMCLKSOURCE_SYSCLK RCC_DFSDM1CLKSOURCE_SYSCLK
3318#define __HAL_RCC_DFSDM_CONFIG __HAL_RCC_DFSDM1_CONFIG
3319#define __HAL_RCC_GET_DFSDM_SOURCE __HAL_RCC_GET_DFSDM1_SOURCE
3320#define RCC_DFSDM1CLKSOURCE_PCLK RCC_DFSDM1CLKSOURCE_PCLK2
3321#define RCC_SWPMI1CLKSOURCE_PCLK RCC_SWPMI1CLKSOURCE_PCLK1
3322#define RCC_LPTIM1CLKSOURCE_PCLK RCC_LPTIM1CLKSOURCE_PCLK1
3323#define RCC_LPTIM2CLKSOURCE_PCLK RCC_LPTIM2CLKSOURCE_PCLK1
3324
3325#define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM1AUDIOCLKSOURCE_I2S1
3326#define RCC_DFSDM1AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM1AUDIOCLKSOURCE_I2S2
3327#define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB1 RCC_DFSDM2AUDIOCLKSOURCE_I2S1
3328#define RCC_DFSDM2AUDIOCLKSOURCE_I2SAPB2 RCC_DFSDM2AUDIOCLKSOURCE_I2S2
3329#define RCC_DFSDM1CLKSOURCE_APB2 RCC_DFSDM1CLKSOURCE_PCLK2
3330#define RCC_DFSDM2CLKSOURCE_APB2 RCC_DFSDM2CLKSOURCE_PCLK2
3331#define RCC_FMPI2C1CLKSOURCE_APB RCC_FMPI2C1CLKSOURCE_PCLK1
3332
3340#define HAL_RNG_ReadyCallback(__HANDLE__) HAL_RNG_ReadyDataCallback((__HANDLE__), uint32_t random32bit)
3341
3349#if defined (STM32G0) || defined (STM32L5) || defined (STM32L412xx) || defined (STM32L422xx) || defined (STM32L4P5xx) || defined (STM32L4Q5xx) || defined (STM32G4) || defined (STM32WL)
3350#else
3351#define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG
3352#endif
3353#define __HAL_RTC_DISABLE_IT __HAL_RTC_EXTI_DISABLE_IT
3354#define __HAL_RTC_ENABLE_IT __HAL_RTC_EXTI_ENABLE_IT
3355
3356#if defined (STM32F1)
3357#define __HAL_RTC_EXTI_CLEAR_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_CLEAR_FLAG()
3358
3359#define __HAL_RTC_EXTI_ENABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_ENABLE_IT()
3360
3361#define __HAL_RTC_EXTI_DISABLE_IT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_DISABLE_IT()
3362
3363#define __HAL_RTC_EXTI_GET_FLAG(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GET_FLAG()
3364
3365#define __HAL_RTC_EXTI_GENERATE_SWIT(RTC_EXTI_LINE_ALARM_EVENT) __HAL_RTC_ALARM_EXTI_GENERATE_SWIT()
3366#else
3367#define __HAL_RTC_EXTI_CLEAR_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_CLEAR_FLAG() : \
3368 (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_CLEAR_FLAG() : \
3369 __HAL_RTC_TAMPER_TIMESTAMP_EXTI_CLEAR_FLAG()))
3370#define __HAL_RTC_EXTI_ENABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_ENABLE_IT() : \
3371 (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT() : \
3372 __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_IT()))
3373#define __HAL_RTC_EXTI_DISABLE_IT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_DISABLE_IT() : \
3374 (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_DISABLE_IT() : \
3375 __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_IT()))
3376#define __HAL_RTC_EXTI_GET_FLAG(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GET_FLAG() : \
3377 (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GET_FLAG() : \
3378 __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GET_FLAG()))
3379#define __HAL_RTC_EXTI_GENERATE_SWIT(__EXTI_LINE__) (((__EXTI_LINE__) == RTC_EXTI_LINE_ALARM_EVENT) ? __HAL_RTC_ALARM_EXTI_GENERATE_SWIT() : \
3380 (((__EXTI_LINE__) == RTC_EXTI_LINE_WAKEUPTIMER_EVENT) ? __HAL_RTC_WAKEUPTIMER_EXTI_GENERATE_SWIT() : \
3381 __HAL_RTC_TAMPER_TIMESTAMP_EXTI_GENERATE_SWIT()))
3382#endif /* STM32F1 */
3383
3384#define IS_ALARM IS_RTC_ALARM
3385#define IS_ALARM_MASK IS_RTC_ALARM_MASK
3386#define IS_TAMPER IS_RTC_TAMPER
3387#define IS_TAMPER_ERASE_MODE IS_RTC_TAMPER_ERASE_MODE
3388#define IS_TAMPER_FILTER IS_RTC_TAMPER_FILTER
3389#define IS_TAMPER_INTERRUPT IS_RTC_TAMPER_INTERRUPT
3390#define IS_TAMPER_MASKFLAG_STATE IS_RTC_TAMPER_MASKFLAG_STATE
3391#define IS_TAMPER_PRECHARGE_DURATION IS_RTC_TAMPER_PRECHARGE_DURATION
3392#define IS_TAMPER_PULLUP_STATE IS_RTC_TAMPER_PULLUP_STATE
3393#define IS_TAMPER_SAMPLING_FREQ IS_RTC_TAMPER_SAMPLING_FREQ
3394#define IS_TAMPER_TIMESTAMPONTAMPER_DETECTION IS_RTC_TAMPER_TIMESTAMPONTAMPER_DETECTION
3395#define IS_TAMPER_TRIGGER IS_RTC_TAMPER_TRIGGER
3396#define IS_WAKEUP_CLOCK IS_RTC_WAKEUP_CLOCK
3397#define IS_WAKEUP_COUNTER IS_RTC_WAKEUP_COUNTER
3398
3399#define __RTC_WRITEPROTECTION_ENABLE __HAL_RTC_WRITEPROTECTION_ENABLE
3400#define __RTC_WRITEPROTECTION_DISABLE __HAL_RTC_WRITEPROTECTION_DISABLE
3401
3410#define SD_OCR_CID_CSD_OVERWRIETE SD_OCR_CID_CSD_OVERWRITE
3411#define SD_CMD_SD_APP_STAUS SD_CMD_SD_APP_STATUS
3412
3413#if defined(STM32F4) || defined(STM32F2)
3414#define SD_SDMMC_DISABLED SD_SDIO_DISABLED
3415#define SD_SDMMC_FUNCTION_BUSY SD_SDIO_FUNCTION_BUSY
3416#define SD_SDMMC_FUNCTION_FAILED SD_SDIO_FUNCTION_FAILED
3417#define SD_SDMMC_UNKNOWN_FUNCTION SD_SDIO_UNKNOWN_FUNCTION
3418#define SD_CMD_SDMMC_SEN_OP_COND SD_CMD_SDIO_SEN_OP_COND
3419#define SD_CMD_SDMMC_RW_DIRECT SD_CMD_SDIO_RW_DIRECT
3420#define SD_CMD_SDMMC_RW_EXTENDED SD_CMD_SDIO_RW_EXTENDED
3421#define __HAL_SD_SDMMC_ENABLE __HAL_SD_SDIO_ENABLE
3422#define __HAL_SD_SDMMC_DISABLE __HAL_SD_SDIO_DISABLE
3423#define __HAL_SD_SDMMC_DMA_ENABLE __HAL_SD_SDIO_DMA_ENABLE
3424#define __HAL_SD_SDMMC_DMA_DISABLE __HAL_SD_SDIO_DMA_DISABL
3425#define __HAL_SD_SDMMC_ENABLE_IT __HAL_SD_SDIO_ENABLE_IT
3426#define __HAL_SD_SDMMC_DISABLE_IT __HAL_SD_SDIO_DISABLE_IT
3427#define __HAL_SD_SDMMC_GET_FLAG __HAL_SD_SDIO_GET_FLAG
3428#define __HAL_SD_SDMMC_CLEAR_FLAG __HAL_SD_SDIO_CLEAR_FLAG
3429#define __HAL_SD_SDMMC_GET_IT __HAL_SD_SDIO_GET_IT
3430#define __HAL_SD_SDMMC_CLEAR_IT __HAL_SD_SDIO_CLEAR_IT
3431#define SDMMC_STATIC_FLAGS SDIO_STATIC_FLAGS
3432#define SDMMC_CMD0TIMEOUT SDIO_CMD0TIMEOUT
3433#define SD_SDMMC_SEND_IF_COND SD_SDIO_SEND_IF_COND
3434/* alias CMSIS */
3435#define SDMMC1_IRQn SDIO_IRQn
3436#define SDMMC1_IRQHandler SDIO_IRQHandler
3437#endif
3438
3439#if defined(STM32F7) || defined(STM32L4)
3440#define SD_SDIO_DISABLED SD_SDMMC_DISABLED
3441#define SD_SDIO_FUNCTION_BUSY SD_SDMMC_FUNCTION_BUSY
3442#define SD_SDIO_FUNCTION_FAILED SD_SDMMC_FUNCTION_FAILED
3443#define SD_SDIO_UNKNOWN_FUNCTION SD_SDMMC_UNKNOWN_FUNCTION
3444#define SD_CMD_SDIO_SEN_OP_COND SD_CMD_SDMMC_SEN_OP_COND
3445#define SD_CMD_SDIO_RW_DIRECT SD_CMD_SDMMC_RW_DIRECT
3446#define SD_CMD_SDIO_RW_EXTENDED SD_CMD_SDMMC_RW_EXTENDED
3447#define __HAL_SD_SDIO_ENABLE __HAL_SD_SDMMC_ENABLE
3448#define __HAL_SD_SDIO_DISABLE __HAL_SD_SDMMC_DISABLE
3449#define __HAL_SD_SDIO_DMA_ENABLE __HAL_SD_SDMMC_DMA_ENABLE
3450#define __HAL_SD_SDIO_DMA_DISABL __HAL_SD_SDMMC_DMA_DISABLE
3451#define __HAL_SD_SDIO_ENABLE_IT __HAL_SD_SDMMC_ENABLE_IT
3452#define __HAL_SD_SDIO_DISABLE_IT __HAL_SD_SDMMC_DISABLE_IT
3453#define __HAL_SD_SDIO_GET_FLAG __HAL_SD_SDMMC_GET_FLAG
3454#define __HAL_SD_SDIO_CLEAR_FLAG __HAL_SD_SDMMC_CLEAR_FLAG
3455#define __HAL_SD_SDIO_GET_IT __HAL_SD_SDMMC_GET_IT
3456#define __HAL_SD_SDIO_CLEAR_IT __HAL_SD_SDMMC_CLEAR_IT
3457#define SDIO_STATIC_FLAGS SDMMC_STATIC_FLAGS
3458#define SDIO_CMD0TIMEOUT SDMMC_CMD0TIMEOUT
3459#define SD_SDIO_SEND_IF_COND SD_SDMMC_SEND_IF_COND
3460/* alias CMSIS for compatibilities */
3461#define SDIO_IRQn SDMMC1_IRQn
3462#define SDIO_IRQHandler SDMMC1_IRQHandler
3463#endif
3464
3465#if defined(STM32F7) || defined(STM32F4) || defined(STM32F2) || defined(STM32L4) || defined(STM32H7)
3466#define HAL_SD_CardCIDTypedef HAL_SD_CardCIDTypeDef
3467#define HAL_SD_CardCSDTypedef HAL_SD_CardCSDTypeDef
3468#define HAL_SD_CardStatusTypedef HAL_SD_CardStatusTypeDef
3469#define HAL_SD_CardStateTypedef HAL_SD_CardStateTypeDef
3470#endif
3471
3472#if defined(STM32H7) || defined(STM32L5)
3473#define HAL_MMCEx_Read_DMADoubleBuffer0CpltCallback HAL_MMCEx_Read_DMADoubleBuf0CpltCallback
3474#define HAL_MMCEx_Read_DMADoubleBuffer1CpltCallback HAL_MMCEx_Read_DMADoubleBuf1CpltCallback
3475#define HAL_MMCEx_Write_DMADoubleBuffer0CpltCallback HAL_MMCEx_Write_DMADoubleBuf0CpltCallback
3476#define HAL_MMCEx_Write_DMADoubleBuffer1CpltCallback HAL_MMCEx_Write_DMADoubleBuf1CpltCallback
3477#define HAL_SDEx_Read_DMADoubleBuffer0CpltCallback HAL_SDEx_Read_DMADoubleBuf0CpltCallback
3478#define HAL_SDEx_Read_DMADoubleBuffer1CpltCallback HAL_SDEx_Read_DMADoubleBuf1CpltCallback
3479#define HAL_SDEx_Write_DMADoubleBuffer0CpltCallback HAL_SDEx_Write_DMADoubleBuf0CpltCallback
3480#define HAL_SDEx_Write_DMADoubleBuffer1CpltCallback HAL_SDEx_Write_DMADoubleBuf1CpltCallback
3481#define HAL_SD_DriveTransciver_1_8V_Callback HAL_SD_DriveTransceiver_1_8V_Callback
3482#endif
3491#define __SMARTCARD_ENABLE_IT __HAL_SMARTCARD_ENABLE_IT
3492#define __SMARTCARD_DISABLE_IT __HAL_SMARTCARD_DISABLE_IT
3493#define __SMARTCARD_ENABLE __HAL_SMARTCARD_ENABLE
3494#define __SMARTCARD_DISABLE __HAL_SMARTCARD_DISABLE
3495#define __SMARTCARD_DMA_REQUEST_ENABLE __HAL_SMARTCARD_DMA_REQUEST_ENABLE
3496#define __SMARTCARD_DMA_REQUEST_DISABLE __HAL_SMARTCARD_DMA_REQUEST_DISABLE
3497
3498#define __HAL_SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE
3499#define __SMARTCARD_GETCLOCKSOURCE SMARTCARD_GETCLOCKSOURCE
3500
3501#define IS_SMARTCARD_ONEBIT_SAMPLING IS_SMARTCARD_ONE_BIT_SAMPLE
3502
3510#define __HAL_SMBUS_RESET_CR1 SMBUS_RESET_CR1
3511#define __HAL_SMBUS_RESET_CR2 SMBUS_RESET_CR2
3512#define __HAL_SMBUS_GENERATE_START SMBUS_GENERATE_START
3513#define __HAL_SMBUS_GET_ADDR_MATCH SMBUS_GET_ADDR_MATCH
3514#define __HAL_SMBUS_GET_DIR SMBUS_GET_DIR
3515#define __HAL_SMBUS_GET_STOP_MODE SMBUS_GET_STOP_MODE
3516#define __HAL_SMBUS_GET_PEC_MODE SMBUS_GET_PEC_MODE
3517#define __HAL_SMBUS_GET_ALERT_ENABLED SMBUS_GET_ALERT_ENABLED
3526#define __HAL_SPI_1LINE_TX SPI_1LINE_TX
3527#define __HAL_SPI_1LINE_RX SPI_1LINE_RX
3528#define __HAL_SPI_RESET_CRC SPI_RESET_CRC
3529
3538#define __HAL_UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE
3539#define __HAL_UART_MASK_COMPUTATION UART_MASK_COMPUTATION
3540#define __UART_GETCLOCKSOURCE UART_GETCLOCKSOURCE
3541#define __UART_MASK_COMPUTATION UART_MASK_COMPUTATION
3542
3543#define IS_UART_WAKEUPMETHODE IS_UART_WAKEUPMETHOD
3544
3545#define IS_UART_ONEBIT_SAMPLE IS_UART_ONE_BIT_SAMPLE
3546#define IS_UART_ONEBIT_SAMPLING IS_UART_ONE_BIT_SAMPLE
3547
3557#define __USART_ENABLE_IT __HAL_USART_ENABLE_IT
3558#define __USART_DISABLE_IT __HAL_USART_DISABLE_IT
3559#define __USART_ENABLE __HAL_USART_ENABLE
3560#define __USART_DISABLE __HAL_USART_DISABLE
3561
3562#define __HAL_USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE
3563#define __USART_GETCLOCKSOURCE USART_GETCLOCKSOURCE
3564
3565#if defined(STM32F0) || defined(STM32F3) || defined(STM32F7)
3566#define USART_OVERSAMPLING_16 0x00000000U
3567#define USART_OVERSAMPLING_8 USART_CR1_OVER8
3568
3569#define IS_USART_OVERSAMPLING(__SAMPLING__) (((__SAMPLING__) == USART_OVERSAMPLING_16) || \
3570 ((__SAMPLING__) == USART_OVERSAMPLING_8))
3571#endif /* STM32F0 || STM32F3 || STM32F7 */
3579#define USB_EXTI_LINE_WAKEUP USB_WAKEUP_EXTI_LINE
3580
3581#define USB_FS_EXTI_TRIGGER_RISING_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_EDGE
3582#define USB_FS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_FS_WAKEUP_EXTI_FALLING_EDGE
3583#define USB_FS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_FS_WAKEUP_EXTI_RISING_FALLING_EDGE
3584#define USB_FS_EXTI_LINE_WAKEUP USB_OTG_FS_WAKEUP_EXTI_LINE
3585
3586#define USB_HS_EXTI_TRIGGER_RISING_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_EDGE
3587#define USB_HS_EXTI_TRIGGER_FALLING_EDGE USB_OTG_HS_WAKEUP_EXTI_FALLING_EDGE
3588#define USB_HS_EXTI_TRIGGER_BOTH_EDGE USB_OTG_HS_WAKEUP_EXTI_RISING_FALLING_EDGE
3589#define USB_HS_EXTI_LINE_WAKEUP USB_OTG_HS_WAKEUP_EXTI_LINE
3590
3591#define __HAL_USB_EXTI_ENABLE_IT __HAL_USB_WAKEUP_EXTI_ENABLE_IT
3592#define __HAL_USB_EXTI_DISABLE_IT __HAL_USB_WAKEUP_EXTI_DISABLE_IT
3593#define __HAL_USB_EXTI_GET_FLAG __HAL_USB_WAKEUP_EXTI_GET_FLAG
3594#define __HAL_USB_EXTI_CLEAR_FLAG __HAL_USB_WAKEUP_EXTI_CLEAR_FLAG
3595#define __HAL_USB_EXTI_SET_RISING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_EDGE
3596#define __HAL_USB_EXTI_SET_FALLING_EDGE_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_FALLING_EDGE
3597#define __HAL_USB_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE
3598
3599#define __HAL_USB_FS_EXTI_ENABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_IT
3600#define __HAL_USB_FS_EXTI_DISABLE_IT __HAL_USB_OTG_FS_WAKEUP_EXTI_DISABLE_IT
3601#define __HAL_USB_FS_EXTI_GET_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_GET_FLAG
3602#define __HAL_USB_FS_EXTI_CLEAR_FLAG __HAL_USB_OTG_FS_WAKEUP_EXTI_CLEAR_FLAG
3603#define __HAL_USB_FS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_EDGE
3604#define __HAL_USB_FS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_FALLING_EDGE
3605#define __HAL_USB_FS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_FS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE
3606#define __HAL_USB_FS_EXTI_GENERATE_SWIT __HAL_USB_OTG_FS_WAKEUP_EXTI_GENERATE_SWIT
3607
3608#define __HAL_USB_HS_EXTI_ENABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_IT
3609#define __HAL_USB_HS_EXTI_DISABLE_IT __HAL_USB_OTG_HS_WAKEUP_EXTI_DISABLE_IT
3610#define __HAL_USB_HS_EXTI_GET_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_GET_FLAG
3611#define __HAL_USB_HS_EXTI_CLEAR_FLAG __HAL_USB_OTG_HS_WAKEUP_EXTI_CLEAR_FLAG
3612#define __HAL_USB_HS_EXTI_SET_RISING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_EDGE
3613#define __HAL_USB_HS_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_FALLING_EDGE
3614#define __HAL_USB_HS_EXTI_SET_FALLINGRISING_TRIGGER __HAL_USB_OTG_HS_WAKEUP_EXTI_ENABLE_RISING_FALLING_EDGE
3615#define __HAL_USB_HS_EXTI_GENERATE_SWIT __HAL_USB_OTG_HS_WAKEUP_EXTI_GENERATE_SWIT
3616
3617#define HAL_PCD_ActiveRemoteWakeup HAL_PCD_ActivateRemoteWakeup
3618#define HAL_PCD_DeActiveRemoteWakeup HAL_PCD_DeActivateRemoteWakeup
3619
3620#define HAL_PCD_SetTxFiFo HAL_PCDEx_SetTxFiFo
3621#define HAL_PCD_SetRxFiFo HAL_PCDEx_SetRxFiFo
3629#define __HAL_TIM_SetICPrescalerValue TIM_SET_ICPRESCALERVALUE
3630#define __HAL_TIM_ResetICPrescalerValue TIM_RESET_ICPRESCALERVALUE
3631
3632#define TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE
3633#define TIM_GET_CLEAR_IT __HAL_TIM_CLEAR_IT
3634
3635#define __HAL_TIM_GET_ITSTATUS __HAL_TIM_GET_IT_SOURCE
3636
3637#define __HAL_TIM_DIRECTION_STATUS __HAL_TIM_IS_TIM_COUNTING_DOWN
3638#define __HAL_TIM_PRESCALER __HAL_TIM_SET_PRESCALER
3639#define __HAL_TIM_SetCounter __HAL_TIM_SET_COUNTER
3640#define __HAL_TIM_GetCounter __HAL_TIM_GET_COUNTER
3641#define __HAL_TIM_SetAutoreload __HAL_TIM_SET_AUTORELOAD
3642#define __HAL_TIM_GetAutoreload __HAL_TIM_GET_AUTORELOAD
3643#define __HAL_TIM_SetClockDivision __HAL_TIM_SET_CLOCKDIVISION
3644#define __HAL_TIM_GetClockDivision __HAL_TIM_GET_CLOCKDIVISION
3645#define __HAL_TIM_SetICPrescaler __HAL_TIM_SET_ICPRESCALER
3646#define __HAL_TIM_GetICPrescaler __HAL_TIM_GET_ICPRESCALER
3647#define __HAL_TIM_SetCompare __HAL_TIM_SET_COMPARE
3648#define __HAL_TIM_GetCompare __HAL_TIM_GET_COMPARE
3649
3650#define TIM_BREAKINPUTSOURCE_DFSDM TIM_BREAKINPUTSOURCE_DFSDM1
3659#define __HAL_ETH_EXTI_ENABLE_IT __HAL_ETH_WAKEUP_EXTI_ENABLE_IT
3660#define __HAL_ETH_EXTI_DISABLE_IT __HAL_ETH_WAKEUP_EXTI_DISABLE_IT
3661#define __HAL_ETH_EXTI_GET_FLAG __HAL_ETH_WAKEUP_EXTI_GET_FLAG
3662#define __HAL_ETH_EXTI_CLEAR_FLAG __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG
3663#define __HAL_ETH_EXTI_SET_RISING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_RISING_EDGE_TRIGGER
3664#define __HAL_ETH_EXTI_SET_FALLING_EGDE_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLING_EDGE_TRIGGER
3665#define __HAL_ETH_EXTI_SET_FALLINGRISING_TRIGGER __HAL_ETH_WAKEUP_EXTI_ENABLE_FALLINGRISING_TRIGGER
3666
3667#define ETH_PROMISCIOUSMODE_ENABLE ETH_PROMISCUOUS_MODE_ENABLE
3668#define ETH_PROMISCIOUSMODE_DISABLE ETH_PROMISCUOUS_MODE_DISABLE
3669#define IS_ETH_PROMISCIOUS_MODE IS_ETH_PROMISCUOUS_MODE
3677#define __HAL_LTDC_LAYER LTDC_LAYER
3678#define __HAL_LTDC_RELOAD_CONFIG __HAL_LTDC_RELOAD_IMMEDIATE_CONFIG
3686#define SAI_OUTPUTDRIVE_DISABLED SAI_OUTPUTDRIVE_DISABLE
3687#define SAI_OUTPUTDRIVE_ENABLED SAI_OUTPUTDRIVE_ENABLE
3688#define SAI_MASTERDIVIDER_ENABLED SAI_MASTERDIVIDER_ENABLE
3689#define SAI_MASTERDIVIDER_DISABLED SAI_MASTERDIVIDER_DISABLE
3690#define SAI_STREOMODE SAI_STEREOMODE
3691#define SAI_FIFOStatus_Empty SAI_FIFOSTATUS_EMPTY
3692#define SAI_FIFOStatus_Less1QuarterFull SAI_FIFOSTATUS_LESS1QUARTERFULL
3693#define SAI_FIFOStatus_1QuarterFull SAI_FIFOSTATUS_1QUARTERFULL
3694#define SAI_FIFOStatus_HalfFull SAI_FIFOSTATUS_HALFFULL
3695#define SAI_FIFOStatus_3QuartersFull SAI_FIFOSTATUS_3QUARTERFULL
3696#define SAI_FIFOStatus_Full SAI_FIFOSTATUS_FULL
3697#define IS_SAI_BLOCK_MONO_STREO_MODE IS_SAI_BLOCK_MONO_STEREO_MODE
3698#define SAI_SYNCHRONOUS_EXT SAI_SYNCHRONOUS_EXT_SAI1
3699#define SAI_SYNCEXT_IN_ENABLE SAI_SYNCEXT_OUTBLOCKA_ENABLE
3707#if defined(STM32H7)
3708#define HAL_SPDIFRX_ReceiveControlFlow HAL_SPDIFRX_ReceiveCtrlFlow
3709#define HAL_SPDIFRX_ReceiveControlFlow_IT HAL_SPDIFRX_ReceiveCtrlFlow_IT
3710#define HAL_SPDIFRX_ReceiveControlFlow_DMA HAL_SPDIFRX_ReceiveCtrlFlow_DMA
3711#endif
3719#if defined (STM32H7) || defined (STM32G4) || defined (STM32F3)
3720#define HAL_HRTIM_WaveformCounterStart_IT HAL_HRTIM_WaveformCountStart_IT
3721#define HAL_HRTIM_WaveformCounterStart_DMA HAL_HRTIM_WaveformCountStart_DMA
3722#define HAL_HRTIM_WaveformCounterStart HAL_HRTIM_WaveformCountStart
3723#define HAL_HRTIM_WaveformCounterStop_IT HAL_HRTIM_WaveformCountStop_IT
3724#define HAL_HRTIM_WaveformCounterStop_DMA HAL_HRTIM_WaveformCountStop_DMA
3725#define HAL_HRTIM_WaveformCounterStop HAL_HRTIM_WaveformCountStop
3726#endif
3734#if defined (STM32L4) || defined (STM32F4) || defined (STM32F7) || defined(STM32H7)
3735#define HAL_QPSI_TIMEOUT_DEFAULT_VALUE HAL_QSPI_TIMEOUT_DEFAULT_VALUE
3736#endif /* STM32L4 || STM32F4 || STM32F7 */
3749#ifdef __cplusplus
3750}
3751#endif
3752
3753#endif /* STM32_HAL_LEGACY */
3754
3755/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
3756