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