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