34#ifndef __STM32H7xx_LL_SYSTEM_H
35#define __STM32H7xx_LL_SYSTEM_H
48#if defined (FLASH) || defined (SYSCFG) || defined (DBGMCU)
67#define LL_SYSCFG_FLASH_B1_SECTOR0_STATUS_BIT 0x10000U
68#define LL_SYSCFG_FLASH_B1_SECTOR1_STATUS_BIT 0x20000U
69#define LL_SYSCFG_FLASH_B1_SECTOR2_STATUS_BIT 0x40000U
70#define LL_SYSCFG_FLASH_B1_SECTOR3_STATUS_BIT 0x80000U
71#define LL_SYSCFG_FLASH_B1_SECTOR4_STATUS_BIT 0x100000U
72#define LL_SYSCFG_FLASH_B1_SECTOR5_STATUS_BIT 0x200000U
73#define LL_SYSCFG_FLASH_B1_SECTOR6_STATUS_BIT 0x400000U
74#define LL_SYSCFG_FLASH_B1_SECTOR7_STATUS_BIT 0x800000U
83#define LL_SYSCFG_FLASH_B2_SECTOR0_STATUS_BIT 0x10000U
84#define LL_SYSCFG_FLASH_B2_SECTOR1_STATUS_BIT 0x20000U
85#define LL_SYSCFG_FLASH_B2_SECTOR2_STATUS_BIT 0x40000U
86#define LL_SYSCFG_FLASH_B2_SECTOR3_STATUS_BIT 0x80000U
87#define LL_SYSCFG_FLASH_B2_SECTOR4_STATUS_BIT 0x100000U
88#define LL_SYSCFG_FLASH_B2_SECTOR5_STATUS_BIT 0x200000U
89#define LL_SYSCFG_FLASH_B2_SECTOR6_STATUS_BIT 0x400000U
90#define LL_SYSCFG_FLASH_B2_SECTOR7_STATUS_BIT 0x800000U
111#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C1 SYSCFG_PMCR_I2C1_FMP
112#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C2 SYSCFG_PMCR_I2C2_FMP
113#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C3 SYSCFG_PMCR_I2C3_FMP
114#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C4 SYSCFG_PMCR_I2C4_FMP
116#define LL_SYSCFG_I2C_FASTMODEPLUS_I2C5 SYSCFG_PMCR_I2C5_FMP
118#define LL_SYSCFG_I2C_FASTMODEPLUS_PB6 SYSCFG_PMCR_I2C_PB6_FMP
119#define LL_SYSCFG_I2C_FASTMODEPLUS_PB7 SYSCFG_PMCR_I2C_PB7_FMP
120#define LL_SYSCFG_I2C_FASTMODEPLUS_PB8 SYSCFG_PMCR_I2C_PB8_FMP
121#define LL_SYSCFG_I2C_FASTMODEPLUS_PB9 SYSCFG_PMCR_I2C_PB9_FMP
130#if defined(SYSCFG_PMCR_BOOSTEN)
131#define LL_SYSCFG_ANALOG_SWITCH_BOOSTEN SYSCFG_PMCR_BOOSTEN
133#define LL_SYSCFG_ANALOG_SWITCH_PA0 SYSCFG_PMCR_PA0SO
134#define LL_SYSCFG_ANALOG_SWITCH_PA1 SYSCFG_PMCR_PA1SO
135#define LL_SYSCFG_ANALOG_SWITCH_PC2 SYSCFG_PMCR_PC2SO
136#define LL_SYSCFG_ANALOG_SWITCH_PC3 SYSCFG_PMCR_PC3SO
141#if defined(SYSCFG_PMCR_EPIS_SEL)
146#define LL_SYSCFG_ETH_MII 0x00000000U
147#define LL_SYSCFG_ETH_RMII SYSCFG_PMCR_EPIS_SEL_2
157#define LL_SYSCFG_EXTI_PORTA 0U
158#define LL_SYSCFG_EXTI_PORTB 1U
159#define LL_SYSCFG_EXTI_PORTC 2U
160#define LL_SYSCFG_EXTI_PORTD 3U
161#define LL_SYSCFG_EXTI_PORTE 4U
162#define LL_SYSCFG_EXTI_PORTF 5U
163#define LL_SYSCFG_EXTI_PORTG 6U
164#define LL_SYSCFG_EXTI_PORTH 7U
166#define LL_SYSCFG_EXTI_PORTI 8U
168#define LL_SYSCFG_EXTI_PORTJ 9U
169#define LL_SYSCFG_EXTI_PORTK 10U
178#define LL_SYSCFG_EXTI_LINE0 ((0x000FUL << 16U) | 0U)
179#define LL_SYSCFG_EXTI_LINE1 ((0x00F0UL << 16U) | 0U)
180#define LL_SYSCFG_EXTI_LINE2 ((0x0F00UL << 16U) | 0U)
181#define LL_SYSCFG_EXTI_LINE3 ((0xF000UL << 16U) | 0U)
182#define LL_SYSCFG_EXTI_LINE4 ((0x000FUL << 16U) | 1U)
183#define LL_SYSCFG_EXTI_LINE5 ((0x00F0UL << 16U) | 1U)
184#define LL_SYSCFG_EXTI_LINE6 ((0x0F00UL << 16U) | 1U)
185#define LL_SYSCFG_EXTI_LINE7 ((0xF000UL << 16U) | 1U)
186#define LL_SYSCFG_EXTI_LINE8 ((0x000FUL << 16U) | 2U)
187#define LL_SYSCFG_EXTI_LINE9 ((0x00F0UL << 16U) | 2U)
188#define LL_SYSCFG_EXTI_LINE10 ((0x0F00UL << 16U) | 2U)
189#define LL_SYSCFG_EXTI_LINE11 ((0xF000UL << 16U) | 2U)
190#define LL_SYSCFG_EXTI_LINE12 ((0x000FUL << 16U) | 3U)
191#define LL_SYSCFG_EXTI_LINE13 ((0x00F0UL << 16U) | 3U)
192#define LL_SYSCFG_EXTI_LINE14 ((0x0F00UL << 16U) | 3U)
193#define LL_SYSCFG_EXTI_LINE15 ((0xF000UL << 16U) | 3U)
202#define LL_SYSCFG_TIMBREAK_AXISRAM_DBL_ECC SYSCFG_CFGR_AXISRAML
205#define LL_SYSCFG_TIMBREAK_ITCM_DBL_ECC SYSCFG_CFGR_ITCML
208#define LL_SYSCFG_TIMBREAK_DTCM_DBL_ECC SYSCFG_CFGR_DTCML
211#define LL_SYSCFG_TIMBREAK_SRAM1_DBL_ECC SYSCFG_CFGR_SRAM1L
214#define LL_SYSCFG_TIMBREAK_SRAM2_DBL_ECC SYSCFG_CFGR_SRAM2L
217#if defined(SYSCFG_CFGR_SRAM3L)
218#define LL_SYSCFG_TIMBREAK_SRAM3_DBL_ECC SYSCFG_CFGR_SRAM3L
222#define LL_SYSCFG_TIMBREAK_SRAM4_DBL_ECC SYSCFG_CFGR_SRAM4L
225#define LL_SYSCFG_TIMBREAK_BKRAM_DBL_ECC SYSCFG_CFGR_BKRAML
228#define LL_SYSCFG_TIMBREAK_CM7_LOCKUP SYSCFG_CFGR_CM7L
231#define LL_SYSCFG_TIMBREAK_FLASH_DBL_ECC SYSCFG_CFGR_FLASHL
234#define LL_SYSCFG_TIMBREAK_PVD SYSCFG_CFGR_PVDL
237#if defined(DUAL_CORE)
238#define LL_SYSCFG_TIMBREAK_CM4_LOCKUP SYSCFG_CFGR_CM4L
249#define LL_SYSCFG_CELL_CODE 0U
250#define LL_SYSCFG_REGISTER_CODE SYSCFG_CCCSR_CS
259#define LL_SYSCFG_IWDG1_SW_CONTROL_MODE 0U
260#define LL_SYSCFG_IWDG1_HW_CONTROL_MODE SYSCFG_UR11_IWDG1M
265#if defined (DUAL_CORE)
270#define LL_SYSCFG_IWDG2_SW_CONTROL_MODE 0U
271#define LL_SYSCFG_IWDG2_HW_CONTROL_MODE SYSCFG_UR12_IWDG2M
281#define LL_SYSCFG_DTCM_RAM_SIZE_2KB 0U
282#define LL_SYSCFG_DTCM_RAM_SIZE_4KB 1U
283#define LL_SYSCFG_DTCM_RAM_SIZE_8KB 2U
284#define LL_SYSCFG_DTCM_RAM_SIZE_16KB 3U
288#ifdef SYSCFG_UR17_TCM_AXI_CFG
293#define LL_SYSCFG_ITCM_AXI_64KB_320KB 0U
294#define LL_SYSCFG_ITCM_AXI_128KB_256KB 1U
295#define LL_SYSCFG_ITCM_AXI_192KB_192KB 2U
296#define LL_SYSCFG_ITCM_AXI_256KB_128KB 3U
301#if defined(SYSCFG_PKGR_PKG)
306#if (STM32H7_DEV_ID == 0x450UL)
307#define LL_SYSCFG_LQFP100_PACKAGE 0U
308#define LL_SYSCFG_TQFP144_PACKAGE 2U
309#define LL_SYSCFG_TQFP176_UFBGA176_PACKAGE 5U
310#define LL_SYSCFG_LQFP208_TFBGA240_PACKAGE 8U
311#elif (STM32H7_DEV_ID == 0x483UL)
312#define LL_SYSCFG_VFQFPN68_INDUS_PACKAGE 0U
313#define LL_SYSCFG_TFBGA100_LQFP100_PACKAGE 1U
314#define LL_SYSCFG_LQFP100_INDUS_PACKAGE 2U
315#define LL_SYSCFG_TFBGA100_INDUS_PACKAGE 3U
316#define LL_SYSCFG_WLCSP115_INDUS_PACKAGE 4U
317#define LL_SYSCFG_LQFP144_PACKAGE 5U
318#define LL_SYSCFG_UFBGA144_PACKAGE 6U
319#define LL_SYSCFG_LQFP144_INDUS_PACKAGE 7U
320#define LL_SYSCFG_UFBGA169_INDUS_PACKAGE 8U
321#define LL_SYSCFG_UFBGA176PLUS25_INDUS_PACKAGE 9U
322#define LL_SYSCFG_LQFP176_INDUS_PACKAGE 10U
333#define LL_SYSCFG_BOR_OFF_RESET_LEVEL 0x00000000U
334#define LL_SYSCFG_BOR_LOW_RESET_LEVEL SYSCFG_UR2_BORH_0
335#define LL_SYSCFG_BOR_MEDIUM_RESET_LEVEL SYSCFG_UR2_BORH_1
336#define LL_SYSCFG_BOR_HIGH_RESET_LEVEL SYSCFG_UR2_BORH
346#define LL_DBGMCU_TRACE_NONE 0x00000000U
347#define LL_DBGMCU_TRACE_ASYNCH DBGMCU_CR_TRACE_IOEN
348#define LL_DBGMCU_TRACE_SYNCH_SIZE1 (DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE_0)
349#define LL_DBGMCU_TRACE_SYNCH_SIZE2 (DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE_1)
350#define LL_DBGMCU_TRACE_SYNCH_SIZE4 (DBGMCU_CR_TRACE_IOEN | DBGMCU_CR_TRACE_MODE)
359#define LL_DBGMCU_APB1_GRP1_TIM2_STOP DBGMCU_APB1LFZ1_DBG_TIM2
360#define LL_DBGMCU_APB1_GRP1_TIM3_STOP DBGMCU_APB1LFZ1_DBG_TIM3
361#define LL_DBGMCU_APB1_GRP1_TIM4_STOP DBGMCU_APB1LFZ1_DBG_TIM4
362#define LL_DBGMCU_APB1_GRP1_TIM5_STOP DBGMCU_APB1LFZ1_DBG_TIM5
363#define LL_DBGMCU_APB1_GRP1_TIM6_STOP DBGMCU_APB1LFZ1_DBG_TIM6
364#define LL_DBGMCU_APB1_GRP1_TIM7_STOP DBGMCU_APB1LFZ1_DBG_TIM7
365#define LL_DBGMCU_APB1_GRP1_TIM12_STOP DBGMCU_APB1LFZ1_DBG_TIM12
366#define LL_DBGMCU_APB1_GRP1_TIM13_STOP DBGMCU_APB1LFZ1_DBG_TIM13
367#define LL_DBGMCU_APB1_GRP1_TIM14_STOP DBGMCU_APB1LFZ1_DBG_TIM14
368#define LL_DBGMCU_APB1_GRP1_LPTIM1_STOP DBGMCU_APB1LFZ1_DBG_LPTIM1
369#define LL_DBGMCU_APB1_GRP1_I2C1_STOP DBGMCU_APB1LFZ1_DBG_I2C1
370#define LL_DBGMCU_APB1_GRP1_I2C2_STOP DBGMCU_APB1LFZ1_DBG_I2C2
371#define LL_DBGMCU_APB1_GRP1_I2C3_STOP DBGMCU_APB1LFZ1_DBG_I2C3
373#define LL_DBGMCU_APB1_GRP1_I2C5_STOP DBGMCU_APB1LFZ1_DBG_I2C5
384#if defined(DBGMCU_APB1HFZ1_DBG_FDCAN)
385#define LL_DBGMCU_APB1_GRP2_FDCAN_STOP DBGMCU_APB1HFZ1_DBG_FDCAN
388#define LL_DBGMCU_APB1_GRP2_TIM23_STOP DBGMCU_APB1HFZ1_DBG_TIM23
391#define LL_DBGMCU_APB1_GRP2_TIM24_STOP DBGMCU_APB1HFZ1_DBG_TIM24
401#define LL_DBGMCU_APB2_GRP1_TIM1_STOP DBGMCU_APB2FZ1_DBG_TIM1
402#define LL_DBGMCU_APB2_GRP1_TIM8_STOP DBGMCU_APB2FZ1_DBG_TIM8
403#define LL_DBGMCU_APB2_GRP1_TIM15_STOP DBGMCU_APB2FZ1_DBG_TIM15
404#define LL_DBGMCU_APB2_GRP1_TIM16_STOP DBGMCU_APB2FZ1_DBG_TIM16
405#define LL_DBGMCU_APB2_GRP1_TIM17_STOP DBGMCU_APB2FZ1_DBG_TIM17
407#define LL_DBGMCU_APB2_GRP1_HRTIM_STOP DBGMCU_APB2FZ1_DBG_HRTIM
417#define LL_DBGMCU_APB3_GRP1_WWDG1_STOP DBGMCU_APB3FZ1_DBG_WWDG1
426#define LL_DBGMCU_APB4_GRP1_I2C4_STOP DBGMCU_APB4FZ1_DBG_I2C4
427#define LL_DBGMCU_APB4_GRP1_LPTIM2_STOP DBGMCU_APB4FZ1_DBG_LPTIM2
428#define LL_DBGMCU_APB4_GRP1_LPTIM3_STOP DBGMCU_APB4FZ1_DBG_LPTIM3
429#define LL_DBGMCU_APB4_GRP1_LPTIM4_STOP DBGMCU_APB4FZ1_DBG_LPTIM4
430#define LL_DBGMCU_APB4_GRP1_LPTIM5_STOP DBGMCU_APB4FZ1_DBG_LPTIM5
431#define LL_DBGMCU_APB4_GRP1_RTC_STOP DBGMCU_APB4FZ1_DBG_RTC
432#define LL_DBGMCU_APB4_GRP1_IWDG1_STOP DBGMCU_APB4FZ1_DBG_IWDG1
441#define LL_FLASH_LATENCY_0 FLASH_ACR_LATENCY_0WS
442#define LL_FLASH_LATENCY_1 FLASH_ACR_LATENCY_1WS
443#define LL_FLASH_LATENCY_2 FLASH_ACR_LATENCY_2WS
444#define LL_FLASH_LATENCY_3 FLASH_ACR_LATENCY_3WS
445#define LL_FLASH_LATENCY_4 FLASH_ACR_LATENCY_4WS
446#define LL_FLASH_LATENCY_5 FLASH_ACR_LATENCY_5WS
447#define LL_FLASH_LATENCY_6 FLASH_ACR_LATENCY_6WS
448#define LL_FLASH_LATENCY_7 FLASH_ACR_LATENCY_7WS
470#if defined(SYSCFG_PMCR_EPIS_SEL)
479__STATIC_INLINE
void LL_SYSCFG_SetPHYInterface(uint32_t Interface)
491__STATIC_INLINE uint32_t LL_SYSCFG_GetPHYInterface(
void)
510__STATIC_INLINE
void LL_SYSCFG_OpenAnalogSwitch(uint32_t AnalogSwitch)
512 SET_BIT(SYSCFG->PMCR, AnalogSwitch);
528__STATIC_INLINE
void LL_SYSCFG_CloseAnalogSwitch(uint32_t AnalogSwitch)
530 CLEAR_BIT(SYSCFG->PMCR, AnalogSwitch);
532#ifdef SYSCFG_PMCR_BOOSTEN
542__STATIC_INLINE
void LL_SYSCFG_EnableAnalogBooster(
void)
555__STATIC_INLINE
void LL_SYSCFG_DisableAnalogBooster(
void)
578__STATIC_INLINE
void LL_SYSCFG_EnableFastModePlus(uint32_t ConfigFastModePlus)
580 SET_BIT(SYSCFG->PMCR, ConfigFastModePlus);
601__STATIC_INLINE
void LL_SYSCFG_DisableFastModePlus(uint32_t ConfigFastModePlus)
603 CLEAR_BIT(SYSCFG->PMCR, ConfigFastModePlus);
645__STATIC_INLINE
void LL_SYSCFG_SetEXTISource(uint32_t Port, uint32_t Line)
647 MODIFY_REG(SYSCFG->EXTICR[Line & 0x3U], (Line >> 16U), Port << ((POSITION_VAL(Line >> 16U)) & 31U));
687__STATIC_INLINE uint32_t LL_SYSCFG_GetEXTISource(uint32_t Line)
689 return (uint32_t)(READ_BIT(SYSCFG->EXTICR[Line & 0x3U], (Line >> 16U)) >> (POSITION_VAL(Line >> 16U) & 31U));
723__STATIC_INLINE
void LL_SYSCFG_SetTIMBreakInputs(uint32_t Break)
725#if defined(DUAL_CORE)
729#elif defined(SYSCFG_CFGR_AXISRAML) && defined(SYSCFG_CFGR_SRAM3L)
733#elif defined(SYSCFG_CFGR_AXISRAML)
774__STATIC_INLINE uint32_t LL_SYSCFG_GetTIMBreakInputs(
void)
776#if defined(DUAL_CORE)
781#elif defined (SYSCFG_CFGR_AXISRAML) && defined(SYSCFG_CFGR_SRAM3L)
786#elif defined (SYSCFG_CFGR_AXISRAML)
804__STATIC_INLINE
void LL_SYSCFG_EnableCompensationCell(
void)
816__STATIC_INLINE
void LL_SYSCFG_DisableCompensationCell(
void)
826__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledCompensationCell(
void)
836__STATIC_INLINE uint32_t LL_SYSCFG_IsActiveFlag_CMPCR(
void)
849__STATIC_INLINE
void LL_SYSCFG_EnableIOSpeedOptimization(
void)
851#if defined(SYSCFG_CCCSR_HSLV)
858#if defined(SYSCFG_CCCSR_HSLV1)
867__STATIC_INLINE
void LL_SYSCFG_EnableIOSpeedOptimization1(
void)
880__STATIC_INLINE
void LL_SYSCFG_EnableIOSpeedOptimization2(
void)
893__STATIC_INLINE
void LL_SYSCFG_EnableIOSpeedOptimization3(
void)
908__STATIC_INLINE
void LL_SYSCFG_DisableIOSpeedOptimization(
void)
910#if defined(SYSCFG_CCCSR_HSLV)
917#if defined(SYSCFG_CCCSR_HSLV1)
926__STATIC_INLINE
void LL_SYSCFG_DisableIOSpeedOptimization1(
void)
939__STATIC_INLINE
void LL_SYSCFG_DisableIOSpeedOptimization2(
void)
952__STATIC_INLINE
void LL_SYSCFG_DisableIOSpeedOptimization3(
void)
963__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization(
void)
965#if defined(SYSCFG_CCCSR_HSLV)
972#if defined(SYSCFG_CCCSR_HSLV1)
978__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization1(
void)
988__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization2(
void)
998__STATIC_INLINE uint32_t LL_SYSCFG_IsEnabledIOSpeedOptimization3(
void)
1013__STATIC_INLINE
void LL_SYSCFG_SetCellCompensationCode(uint32_t CompCode)
1015 SET_BIT(SYSCFG->CCCSR, CompCode);
1025__STATIC_INLINE uint32_t LL_SYSCFG_GetCellCompensationCode(
void)
1030#ifdef SYSCFG_CCCSR_CS_MMC
1039__STATIC_INLINE uint32_t LL_SYSCFG_MMCGetCellCompensationCode(
void)
1050__STATIC_INLINE uint32_t LL_SYSCFG_GetPMOSCompensationValue(
void)
1060__STATIC_INLINE uint32_t LL_SYSCFG_GetNMOSCompensationValue(
void)
1073__STATIC_INLINE
void LL_SYSCFG_SetPMOSCompensationCode(uint32_t PMOSCode)
1083__STATIC_INLINE uint32_t LL_SYSCFG_GetPMOSCompensationCode(
void)
1088#ifdef SYSCFG_CCCR_PCC_MMC
1098__STATIC_INLINE
void LL_SYSCFG_MMCSetPMOSCompensationCode(uint32_t PMOSCode)
1108__STATIC_INLINE uint32_t LL_SYSCFG_MMCGetPMOSCompensationCode(
void)
1122__STATIC_INLINE
void LL_SYSCFG_SetNMOSCompensationCode(uint32_t NMOSCode)
1132__STATIC_INLINE uint32_t LL_SYSCFG_GetNMOSCompensationCode(
void)
1137#ifdef SYSCFG_CCCR_NCC_MMC
1147__STATIC_INLINE
void LL_SYSCFG_VDMMCSetNMOSCompensationCode(uint32_t NMOSCode)
1157__STATIC_INLINE uint32_t LL_SYSCFG_VDMMCGetNMOSCompensationCode(
void)
1163#ifdef SYSCFG_PKGR_PKG
1187__STATIC_INLINE uint32_t LL_SYSCFG_GetPackage(
void)
1193#ifdef SYSCFG_UR0_RDP
1202__STATIC_INLINE uint32_t LL_SYSCFG_GetFLashProtectionLevel(
void)
1206#ifdef SYSCFG_UR0_BKS
1212__STATIC_INLINE uint32_t LL_SYSCFG_IsFLashBankAddressesSwaped(
void)
1214 return ((READ_BIT(SYSCFG->UR0,
SYSCFG_UR0_BKS) == 0U) ? 1UL : 0UL);
1227__STATIC_INLINE uint32_t LL_SYSCFG_GetBrownoutResetLevel(
void)
1237__STATIC_INLINE
void LL_SYSCFG_SetCM7BootAddress0(uint16_t BootAddress)
1240#if defined(DUAL_CORE)
1241 MODIFY_REG(SYSCFG->UR2,
SYSCFG_UR2_BCM7_ADD0, ((uint32_t)BootAddress << SYSCFG_UR2_BCM7_ADD0_Pos));
1243 MODIFY_REG(SYSCFG->UR2,
SYSCFG_UR2_BOOT_ADD0, ((uint32_t)BootAddress << SYSCFG_UR2_BOOT_ADD0_Pos));
1253__STATIC_INLINE uint16_t LL_SYSCFG_GetCM7BootAddress0(
void)
1256#if defined(DUAL_CORE)
1257 return (uint16_t)((uint32_t)READ_BIT(SYSCFG->UR2,
SYSCFG_UR2_BCM7_ADD0) >> SYSCFG_UR2_BCM7_ADD0_Pos);
1259 return (uint16_t)((uint32_t)READ_BIT(SYSCFG->UR2,
SYSCFG_UR2_BOOT_ADD0) >> SYSCFG_UR2_BOOT_ADD0_Pos);
1269__STATIC_INLINE
void LL_SYSCFG_SetCM7BootAddress1(uint16_t BootAddress)
1272#if defined(DUAL_CORE)
1284__STATIC_INLINE uint16_t LL_SYSCFG_GetCM7BootAddress1(
void)
1287#if defined(DUAL_CORE)
1294#if defined(DUAL_CORE)
1301__STATIC_INLINE
void LL_SYSCFG_SetCM4BootAddress0(uint16_t BootAddress)
1304 MODIFY_REG(SYSCFG->UR3,
SYSCFG_UR3_BCM4_ADD0, ((uint32_t)BootAddress << SYSCFG_UR3_BCM4_ADD0_Pos));
1312__STATIC_INLINE uint16_t LL_SYSCFG_GetCM4BootAddress0(
void)
1315 return (uint16_t)((uint32_t)READ_BIT(SYSCFG->UR3,
SYSCFG_UR3_BCM4_ADD0) >> SYSCFG_UR3_BCM4_ADD0_Pos);
1324__STATIC_INLINE
void LL_SYSCFG_SetCM4BootAddress1(uint16_t BootAddress)
1335__STATIC_INLINE uint16_t LL_SYSCFG_GetCM4BootAddress1(
void)
1347__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1ProtectedAreaErasable(
void)
1357__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1SecuredAreaErasable(
void)
1367__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector0WriteProtected(
void)
1377__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector1WriteProtected(
void)
1387__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector2WriteProtected(
void)
1397__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector3WriteProtected(
void)
1407__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector4WriteProtected(
void)
1417__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector5WriteProtected(
void)
1427__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector6WriteProtected(
void)
1437__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB1Sector7WriteProtected(
void)
1447__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1ProtectedAreaStartAddress(
void)
1457__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1ProtectedAreaEndAddress(
void)
1467__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1SecuredAreaStartAddress(
void)
1477__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB1SecuredAreaEndAddress(
void)
1482#ifdef SYSCFG_UR8_MEPAD_BANK2
1488__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2ProtectedAreaErasable(
void)
1498__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2SecuredAreaErasable(
void)
1504#ifdef SYSCFG_UR9_WRPN_BANK2
1510__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector0WriteProtected(
void)
1520__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector1WriteProtected(
void)
1530__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector2WriteProtected(
void)
1540__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector3WriteProtected(
void)
1550__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector4WriteProtected(
void)
1560__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector5WriteProtected(
void)
1570__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector6WriteProtected(
void)
1580__STATIC_INLINE uint32_t LL_SYSCFG_IsFlashB2Sector7WriteProtected(
void)
1590__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2ProtectedAreaStartAddress(
void)
1596#ifdef SYSCFG_UR10_PAEND_BANK2
1602__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2ProtectedAreaEndAddress(
void)
1612__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2SecuredAreaStartAddress(
void)
1618#ifdef SYSCFG_UR11_SAEND_BANK2
1624__STATIC_INLINE uint32_t LL_SYSCFG_GetFlashB2SecuredAreaEndAddress(
void)
1637__STATIC_INLINE uint32_t LL_SYSCFG_GetIWDG1ControlMode(
void)
1642#if defined (DUAL_CORE)
1650__STATIC_INLINE uint32_t LL_SYSCFG_GetIWDG2ControlMode(
void)
1661__STATIC_INLINE uint32_t LL_SYSCFG_IsSecureModeEnabled(
void)
1671__STATIC_INLINE uint32_t LL_SYSCFG_IsD1StandbyGenerateReset(
void)
1685__STATIC_INLINE uint32_t LL_SYSCFG_GetSecuredDTCMSize(
void)
1695__STATIC_INLINE uint32_t LL_SYSCFG_IsD1StopGenerateReset(
void)
1700#if defined (DUAL_CORE)
1706__STATIC_INLINE uint32_t LL_SYSCFG_IsD2StandbyGenerateReset(
void)
1716__STATIC_INLINE uint32_t LL_SYSCFG_IsD2StopGenerateReset(
void)
1727__STATIC_INLINE uint32_t LL_SYSCFG_IsIWDGFrozenInStandbyMode(
void)
1737__STATIC_INLINE uint32_t LL_SYSCFG_IsIWDGFrozenInStopMode(
void)
1747__STATIC_INLINE uint32_t LL_SYSCFG_IsPrivateKeyProgrammed(
void)
1760__STATIC_INLINE uint32_t LL_SYSCFG_IsActiveFlag_IOHSLV(
void)
1765#ifdef SYSCFG_UR17_TCM_AXI_CFG
1775__STATIC_INLINE uint32_t LL_SYSCFG_Get_ITCM_AXI_RAM_Size(
void)
1781#ifdef SYSCFG_UR18_CPU_FREQ_BOOST
1787__STATIC_INLINE uint32_t LL_SYSCFG_IsCpuFreqBoostEnabled(
void)
1809__STATIC_INLINE uint32_t LL_DBGMCU_GetDeviceID(
void)
1811 return (uint32_t)(READ_BIT(DBGMCU->IDCODE, DBGMCU_IDCODE_DEV_ID));
1821__STATIC_INLINE uint32_t LL_DBGMCU_GetRevisionID(
void)
1823 return (uint32_t)(READ_BIT(DBGMCU->IDCODE, DBGMCU_IDCODE_REV_ID) >> DBGMCU_IDCODE_REV_ID_Pos);
1831__STATIC_INLINE
void LL_DBGMCU_EnableD1DebugInSleepMode(
void)
1833 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD1);
1841__STATIC_INLINE
void LL_DBGMCU_DisableD1DebugInSleepMode(
void)
1843 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD1);
1851__STATIC_INLINE
void LL_DBGMCU_EnableD1DebugInStopMode(
void)
1853 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD1);
1861__STATIC_INLINE
void LL_DBGMCU_DisableD1DebugInStopMode(
void)
1863 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD1);
1871__STATIC_INLINE
void LL_DBGMCU_EnableD1DebugInStandbyMode(
void)
1873 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD1);
1881__STATIC_INLINE
void LL_DBGMCU_DisableD1DebugInStandbyMode(
void)
1883 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD1);
1886#if defined (DUAL_CORE)
1892__STATIC_INLINE
void LL_DBGMCU_EnableD2DebugInSleepMode(
void)
1894 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD2);
1902__STATIC_INLINE
void LL_DBGMCU_DisableD2DebugInSleepMode(
void)
1904 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_SLEEPD2);
1912__STATIC_INLINE
void LL_DBGMCU_EnableD2DebugInStopMode(
void)
1914 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD2);
1922__STATIC_INLINE
void LL_DBGMCU_DisableD2DebugInStopMode(
void)
1924 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD2);
1932__STATIC_INLINE
void LL_DBGMCU_EnableD2DebugInStandbyMode(
void)
1934 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD2);
1942__STATIC_INLINE
void LL_DBGMCU_DisableD2DebugInStandbyMode(
void)
1944 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD2);
1949#if defined(DBGMCU_CR_DBG_STOPD3)
1955__STATIC_INLINE
void LL_DBGMCU_EnableD3DebugInStopMode(
void)
1957 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD3);
1965__STATIC_INLINE
void LL_DBGMCU_DisableD3DebugInStopMode(
void)
1967 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STOPD3);
1971#if defined(DBGMCU_CR_DBG_STANDBYD3)
1977__STATIC_INLINE
void LL_DBGMCU_EnableD3DebugInStandbyMode(
void)
1979 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD3);
1987__STATIC_INLINE
void LL_DBGMCU_DisableD3DebugInStandbyMode(
void)
1989 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_STANDBYD3);
1998__STATIC_INLINE
void LL_DBGMCU_EnableTracePortClock(
void)
2000 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_TRACECKEN);
2008__STATIC_INLINE
void LL_DBGMCU_DisableTracePortClock(
void)
2010 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_TRACECKEN);
2018__STATIC_INLINE
void LL_DBGMCU_EnableD1DebugClock(
void)
2020 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD1EN);
2028__STATIC_INLINE
void LL_DBGMCU_DisableD1DebugClock(
void)
2030 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD1EN);
2038__STATIC_INLINE
void LL_DBGMCU_EnableD3DebugClock(
void)
2040 SET_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD3EN);
2048__STATIC_INLINE
void LL_DBGMCU_DisableD3DebugClock(
void)
2050 CLEAR_BIT(DBGMCU->CR, DBGMCU_CR_DBG_CKD3EN);
2053#define LL_DBGMCU_TRGIO_INPUT_DIRECTION 0U
2054#define LL_DBGMCU_TRGIO_OUTPUT_DIRECTION DBGMCU_CR_DBG_TRGOEN
2063__STATIC_INLINE
void LL_DBGMCU_SetExternalTriggerPinDirection(uint32_t PinDirection)
2065 MODIFY_REG(DBGMCU->CR, DBGMCU_CR_DBG_TRGOEN, PinDirection);
2075__STATIC_INLINE uint32_t LL_DBGMCU_GetExternalTriggerPinDirection(
void)
2077 return (uint32_t)(READ_BIT(DBGMCU->CR, DBGMCU_CR_DBG_TRGOEN));
2115__STATIC_INLINE
void LL_DBGMCU_APB1_GRP1_FreezePeriph(uint32_t Periphs)
2117 SET_BIT(DBGMCU->APB1LFZ1, Periphs);
2155__STATIC_INLINE
void LL_DBGMCU_APB1_GRP1_UnFreezePeriph(uint32_t Periphs)
2157 CLEAR_BIT(DBGMCU->APB1LFZ1, Periphs);
2160#ifdef DBGMCU_APB1HFZ1_DBG_FDCAN
2168__STATIC_INLINE
void LL_DBGMCU_APB1_GRP2_FreezePeriph(uint32_t Periphs)
2170 SET_BIT(DBGMCU->APB1HFZ1, Periphs);
2180__STATIC_INLINE
void LL_DBGMCU_APB1_GRP2_UnFreezePeriph(uint32_t Periphs)
2182 CLEAR_BIT(DBGMCU->APB1HFZ1, Periphs);
2186#if defined(TIM23) || defined(TIM24)
2196__STATIC_INLINE
void LL_DBGMCU_APB1_GRP2_FreezePeriph(uint32_t Periphs)
2198 SET_BIT(DBGMCU->APB1HFZ1, Periphs);
2210__STATIC_INLINE
void LL_DBGMCU_APB1_GRP2_UnFreezePeriph(uint32_t Periphs)
2212 CLEAR_BIT(DBGMCU->APB1HFZ1, Periphs);
2235__STATIC_INLINE
void LL_DBGMCU_APB2_GRP1_FreezePeriph(uint32_t Periphs)
2237 SET_BIT(DBGMCU->APB2FZ1, Periphs);
2259__STATIC_INLINE
void LL_DBGMCU_APB2_GRP1_UnFreezePeriph(uint32_t Periphs)
2261 CLEAR_BIT(DBGMCU->APB2FZ1, Periphs);
2271__STATIC_INLINE
void LL_DBGMCU_APB3_GRP1_FreezePeriph(uint32_t Periphs)
2273 SET_BIT(DBGMCU->APB3FZ1, Periphs);
2283__STATIC_INLINE
void LL_DBGMCU_APB3_GRP1_UnFreezePeriph(uint32_t Periphs)
2285 CLEAR_BIT(DBGMCU->APB3FZ1, Periphs);
2309__STATIC_INLINE
void LL_DBGMCU_APB4_GRP1_FreezePeriph(uint32_t Periphs)
2311 SET_BIT(DBGMCU->APB4FZ1, Periphs);
2335__STATIC_INLINE
void LL_DBGMCU_APB4_GRP1_UnFreezePeriph(uint32_t Periphs)
2337 CLEAR_BIT(DBGMCU->APB4FZ1, Periphs);
2362__STATIC_INLINE
void LL_FLASH_SetLatency(uint32_t Latency)
2380__STATIC_INLINE uint32_t LL_FLASH_GetLatency(
void)
2389#if defined(DUAL_CORE)
2400__STATIC_INLINE
void LL_ART_Enable(
void)
2410__STATIC_INLINE
void LL_ART_Disable(
void)
2420__STATIC_INLINE uint32_t LL_ART_IsEnabled(
void)
2432__STATIC_INLINE
void LL_ART_SetBaseAddress(uint32_t BaseAddress)
2443__STATIC_INLINE uint32_t LL_ART_GetBaseAddress(
void)
#define SYSCFG_UR15_D2STPRST
Definition: stm32h745xg.h:19916
#define SYSCFG_CCCSR_READY
Definition: stm32h723xx.h:18944
#define SYSCFG_CCCSR_HSLV3
Definition: stm32h7a3xx.h:17374
#define SYSCFG_CFGR_SRAM4L
Definition: stm32h723xx.h:18918
#define SYSCFG_UR5_WRPN_BANK1
Definition: stm32h723xx.h:19008
#define SYSCFG_CCCSR_HSLV
Definition: stm32h723xx.h:18947
#define SYSCFG_CCVR_PCV
Definition: stm32h723xx.h:18955
#define SYSCFG_PMCR_BOOSTEN
Definition: stm32h723xx.h:18603
#define SYSCFG_CFGR_BKRAML
Definition: stm32h723xx.h:18915
#define SYSCFG_UR12_SECURE
Definition: stm32h723xx.h:19036
#define SYSCFG_CFGR_CM4L
Definition: stm32h745xg.h:19715
#define SYSCFG_UR5_MESAD_BANK1
Definition: stm32h723xx.h:19005
#define SYSCFG_CCCSR_EN
Definition: stm32h723xx.h:18938
#define SYSCFG_UR8_MESAD_BANK2
Definition: stm32h742xx.h:18561
#define SYSCFG_UR12_IWDG2M
Definition: stm32h745xg.h:19891
#define SYSCFG_UR10_PAEND_BANK2
Definition: stm32h742xx.h:18574
#define SYSCFG_CFGR_DTCML
Definition: stm32h723xx.h:18927
#define SYSCFG_UR2_BCM7_ADD0
Definition: stm32h745xg.h:19812
#define SYSCFG_UR14_D2SBRST
Definition: stm32h745xg.h:19911
#define SYSCFG_CCCSR_HSLV0
Definition: stm32h7a3xx.h:17365
#define SYSCFG_UR6_PAEND_BANK1
Definition: stm32h723xx.h:19016
#define SYSCFG_UR13_SDRS
Definition: stm32h723xx.h:19041
#define SYSCFG_CFGR_AXISRAML
Definition: stm32h723xx.h:18933
#define SYSCFG_CCCSR_CS
Definition: stm32h723xx.h:18941
#define SYSCFG_CFGR_CM7L
Definition: stm32h723xx.h:18912
#define SYSCFG_UR8_MEPAD_BANK2
Definition: stm32h742xx.h:18558
#define SYSCFG_UR2_BOOT_ADD0
Definition: stm32h723xx.h:18990
#define SYSCFG_UR11_SAEND_BANK2
Definition: stm32h742xx.h:18582
#define SYSCFG_UR14_D1STPRST
Definition: stm32h723xx.h:19049
#define SYSCFG_UR9_WRPN_BANK2
Definition: stm32h742xx.h:18566
#define SYSCFG_UR0_BKS
Definition: stm32h742xx.h:18506
#define SYSCFG_CCCSR_CS_MMC
Definition: stm32h7a3xx.h:17359
#define SYSCFG_PMCR_EPIS_SEL
Definition: stm32h723xx.h:18615
#define SYSCFG_UR17_IOHSLV
Definition: stm32h723xx.h:19067
#define SYSCFG_CFGR_ITCML
Definition: stm32h723xx.h:18930
#define SYSCFG_CCCR_PCC_MMC
Definition: stm32h7a3xx.h:17395
#define SYSCFG_CCCR_NCC
Definition: stm32h723xx.h:18960
#define SYSCFG_UR3_BCM4_ADD0
Definition: stm32h745xg.h:19820
#define SYSCFG_UR9_PABEG_BANK2
Definition: stm32h742xx.h:18569
#define SYSCFG_UR4_BCM4_ADD1
Definition: stm32h745xg.h:19826
#define SYSCFG_UR6_PABEG_BANK1
Definition: stm32h723xx.h:19013
#define SYSCFG_CCCR_NCC_MMC
Definition: stm32h7a3xx.h:17392
#define SYSCFG_UR18_CPU_FREQ_BOOST
Definition: stm32h723xx.h:19075
#define ART_CTR_EN
Definition: stm32h745xg.h:4107
#define SYSCFG_CFGR_SRAM2L
Definition: stm32h723xx.h:18921
#define SYSCFG_CFGR_FLASHL
Definition: stm32h723xx.h:18909
#define SYSCFG_UR0_RDP
Definition: stm32h723xx.h:18980
#define SYSCFG_CFGR_SRAM1L
Definition: stm32h723xx.h:18924
#define SYSCFG_UR3_BCM7_ADD1
Definition: stm32h745xg.h:19816
#define SYSCFG_CCCR_PCC
Definition: stm32h723xx.h:18963
#define SYSCFG_UR11_IWDG1M
Definition: stm32h723xx.h:19030
#define SYSCFG_UR17_TCM_AXI_CFG
Definition: stm32h723xx.h:19070
#define SYSCFG_UR2_BORH
Definition: stm32h723xx.h:18985
#define SYSCFG_UR7_SAEND_BANK1
Definition: stm32h723xx.h:19024
#define ART_CTR_PCACHEADDR
Definition: stm32h745xg.h:4111
#define SYSCFG_CFGR_PVDL
Definition: stm32h723xx.h:18906
#define SYSCFG_UR3_BOOT_ADD1
Definition: stm32h723xx.h:18994
#define SYSCFG_CCVR_NCV
Definition: stm32h723xx.h:18952
#define SYSCFG_UR16_FZIWDGSTP
Definition: stm32h723xx.h:19059
#define SYSCFG_UR4_MEPAD_BANK1
Definition: stm32h723xx.h:19000
#define SYSCFG_UR7_SABEG_BANK1
Definition: stm32h723xx.h:19021
#define SYSCFG_UR10_SABEG_BANK2
Definition: stm32h742xx.h:18577
#define SYSCFG_PKGR_PKG
Definition: stm32h723xx.h:18975
#define SYSCFG_UR13_D1SBRST
Definition: stm32h723xx.h:19044
#define SYSCFG_CFGR_SRAM3L
Definition: stm32h742xx.h:18447
#define FLASH_ACR_LATENCY
Definition: stm32h723xx.h:10826
#define SYSCFG_CCCSR_HSLV1
Definition: stm32h7a3xx.h:17368
#define SYSCFG_UR16_PKP
Definition: stm32h723xx.h:19062
#define SYSCFG_CCCSR_HSLV2
Definition: stm32h7a3xx.h:17371
#define SYSCFG_UR15_FZIWDGSTB
Definition: stm32h723xx.h:19054
CMSIS STM32H7xx Device Peripheral Access Layer Header File.