35#ifndef STM32H7xx_LL_CORTEX_H
36#define STM32H7xx_LL_CORTEX_H
69#define LL_SYSTICK_CLKSOURCE_HCLK_DIV8 0x00000000UL
70#define LL_SYSTICK_CLKSOURCE_HCLK SysTick_CTRL_CLKSOURCE_Msk
78#define LL_HANDLER_FAULT_USG SCB_SHCSR_USGFAULTENA_Msk
79#define LL_HANDLER_FAULT_BUS SCB_SHCSR_BUSFAULTENA_Msk
80#define LL_HANDLER_FAULT_MEM SCB_SHCSR_MEMFAULTENA_Msk
90#define LL_MPU_CTRL_HFNMI_PRIVDEF_NONE 0x00000000UL
91#define LL_MPU_CTRL_HARDFAULT_NMI MPU_CTRL_HFNMIENA_Msk
92#define LL_MPU_CTRL_PRIVILEGED_DEFAULT MPU_CTRL_PRIVDEFENA_Msk
93#define LL_MPU_CTRL_HFNMI_PRIVDEF (MPU_CTRL_HFNMIENA_Msk | MPU_CTRL_PRIVDEFENA_Msk)
101#define LL_MPU_REGION_NUMBER0 0x00UL
102#define LL_MPU_REGION_NUMBER1 0x01UL
103#define LL_MPU_REGION_NUMBER2 0x02UL
104#define LL_MPU_REGION_NUMBER3 0x03UL
105#define LL_MPU_REGION_NUMBER4 0x04UL
106#define LL_MPU_REGION_NUMBER5 0x05UL
107#define LL_MPU_REGION_NUMBER6 0x06UL
108#define LL_MPU_REGION_NUMBER7 0x07UL
109#if !defined(CORE_CM4)
110#define LL_MPU_REGION_NUMBER8 0x08UL
111#define LL_MPU_REGION_NUMBER9 0x09UL
112#define LL_MPU_REGION_NUMBER10 0x0AUL
113#define LL_MPU_REGION_NUMBER11 0x0BUL
114#define LL_MPU_REGION_NUMBER12 0x0CUL
115#define LL_MPU_REGION_NUMBER13 0x0DUL
116#define LL_MPU_REGION_NUMBER14 0x0EUL
117#define LL_MPU_REGION_NUMBER15 0x0FUL
126#define LL_MPU_REGION_SIZE_32B (0x04UL << MPU_RASR_SIZE_Pos)
127#define LL_MPU_REGION_SIZE_64B (0x05UL << MPU_RASR_SIZE_Pos)
128#define LL_MPU_REGION_SIZE_128B (0x06UL << MPU_RASR_SIZE_Pos)
129#define LL_MPU_REGION_SIZE_256B (0x07UL << MPU_RASR_SIZE_Pos)
130#define LL_MPU_REGION_SIZE_512B (0x08UL << MPU_RASR_SIZE_Pos)
131#define LL_MPU_REGION_SIZE_1KB (0x09UL << MPU_RASR_SIZE_Pos)
132#define LL_MPU_REGION_SIZE_2KB (0x0AUL << MPU_RASR_SIZE_Pos)
133#define LL_MPU_REGION_SIZE_4KB (0x0BUL << MPU_RASR_SIZE_Pos)
134#define LL_MPU_REGION_SIZE_8KB (0x0CUL << MPU_RASR_SIZE_Pos)
135#define LL_MPU_REGION_SIZE_16KB (0x0DUL << MPU_RASR_SIZE_Pos)
136#define LL_MPU_REGION_SIZE_32KB (0x0EUL << MPU_RASR_SIZE_Pos)
137#define LL_MPU_REGION_SIZE_64KB (0x0FUL << MPU_RASR_SIZE_Pos)
138#define LL_MPU_REGION_SIZE_128KB (0x10UL << MPU_RASR_SIZE_Pos)
139#define LL_MPU_REGION_SIZE_256KB (0x11UL << MPU_RASR_SIZE_Pos)
140#define LL_MPU_REGION_SIZE_512KB (0x12UL << MPU_RASR_SIZE_Pos)
141#define LL_MPU_REGION_SIZE_1MB (0x13UL << MPU_RASR_SIZE_Pos)
142#define LL_MPU_REGION_SIZE_2MB (0x14UL << MPU_RASR_SIZE_Pos)
143#define LL_MPU_REGION_SIZE_4MB (0x15UL << MPU_RASR_SIZE_Pos)
144#define LL_MPU_REGION_SIZE_8MB (0x16UL << MPU_RASR_SIZE_Pos)
145#define LL_MPU_REGION_SIZE_16MB (0x17UL << MPU_RASR_SIZE_Pos)
146#define LL_MPU_REGION_SIZE_32MB (0x18UL << MPU_RASR_SIZE_Pos)
147#define LL_MPU_REGION_SIZE_64MB (0x19UL << MPU_RASR_SIZE_Pos)
148#define LL_MPU_REGION_SIZE_128MB (0x1AUL << MPU_RASR_SIZE_Pos)
149#define LL_MPU_REGION_SIZE_256MB (0x1BUL << MPU_RASR_SIZE_Pos)
150#define LL_MPU_REGION_SIZE_512MB (0x1CUL << MPU_RASR_SIZE_Pos)
151#define LL_MPU_REGION_SIZE_1GB (0x1DUL << MPU_RASR_SIZE_Pos)
152#define LL_MPU_REGION_SIZE_2GB (0x1EUL << MPU_RASR_SIZE_Pos)
153#define LL_MPU_REGION_SIZE_4GB (0x1FUL << MPU_RASR_SIZE_Pos)
161#define LL_MPU_REGION_NO_ACCESS (0x00UL << MPU_RASR_AP_Pos)
162#define LL_MPU_REGION_PRIV_RW (0x01UL << MPU_RASR_AP_Pos)
163#define LL_MPU_REGION_PRIV_RW_URO (0x02UL << MPU_RASR_AP_Pos)
164#define LL_MPU_REGION_FULL_ACCESS (0x03UL << MPU_RASR_AP_Pos)
165#define LL_MPU_REGION_PRIV_RO (0x05UL << MPU_RASR_AP_Pos)
166#define LL_MPU_REGION_PRIV_RO_URO (0x06UL << MPU_RASR_AP_Pos)
174#define LL_MPU_TEX_LEVEL0 (0x00UL << MPU_RASR_TEX_Pos)
175#define LL_MPU_TEX_LEVEL1 (0x01UL << MPU_RASR_TEX_Pos)
176#define LL_MPU_TEX_LEVEL2 (0x02UL << MPU_RASR_TEX_Pos)
179#define LL_MPU_TEX_LEVEL4 (0x04UL << MPU_RASR_TEX_Pos)
187#define LL_MPU_INSTRUCTION_ACCESS_ENABLE 0x00UL
188#define LL_MPU_INSTRUCTION_ACCESS_DISABLE MPU_RASR_XN_Msk
196#define LL_MPU_ACCESS_SHAREABLE MPU_RASR_S_Msk
197#define LL_MPU_ACCESS_NOT_SHAREABLE 0x00UL
205#define LL_MPU_ACCESS_CACHEABLE MPU_RASR_C_Msk
206#define LL_MPU_ACCESS_NOT_CACHEABLE 0x00UL
214#define LL_MPU_ACCESS_BUFFERABLE MPU_RASR_B_Msk
215#define LL_MPU_ACCESS_NOT_BUFFERABLE 0x00UL
605__STATIC_INLINE void LL_MPU_ConfigRegion(uint32_t Region, uint32_t SubRegionDisable, uint32_t Address, uint32_t Attributes)
#define SCB_CPUID_IMPLEMENTER_Msk
SCB CPUID: IMPLEMENTER Mask.
#define SCB_CPUID_VARIANT_Pos
SCB CPUID: VARIANT Position.
#define SysTick_CTRL_COUNTFLAG_Msk
SysTick CTRL: COUNTFLAG Mask.
#define SCB_CPUID_REVISION_Msk
SCB CPUID: REVISION Mask.
#define SCB_CPUID_REVISION_Pos
SCB CPUID: REVISION Position.
#define SCB_SCR_SLEEPONEXIT_Msk
SCB SCR: SLEEPONEXIT Mask.
#define SCB_CPUID_IMPLEMENTER_Pos
SCB CPUID: IMPLEMENTER Position.
#define SCB_CPUID_PARTNO_Pos
SCB CPUID: PARTNO Position.
#define SCB_SCR_SLEEPDEEP_Msk
SCB SCR: SLEEPDEEP Mask.
#define SysTick_CTRL_TICKINT_Msk
SysTick CTRL: TICKINT Mask.
#define SCB_CPUID_PARTNO_Msk
SCB CPUID: PARTNO Mask.
#define SCB
SCB configuration struct.
#define MPU
Memory Protection Unit.
#define SysTick
SysTick configuration struct.
#define SCB_CPUID_VARIANT_Msk
SCB CPUID: VARIANT Mask.
#define MPU_CTRL_ENABLE_Msk
MPU CTRL: ENABLE Mask.
#define SCB_CPUID_ARCHITECTURE_Pos
SCB CPUID: ARCHITECTURE Position.
#define SCB_CPUID_ARCHITECTURE_Msk
SCB CPUID: ARCHITECTURE Mask.
#define SCB_SCR_SEVONPEND_Msk
SCB SCR: SEVONPEND Mask.
#define __DSB()
Data Synchronization Barrier.
#define __DMB()
Data Memory Barrier.
#define __ISB()
Instruction Synchronization Barrier.
#define MPU_RASR_SRD_Pos
MPU RASR: Sub-Region Disable Position.
#define MPU_RASR_ENABLE_Msk
MPU RASR: Region enable bit Disable Mask.
#define LL_SYSTICK_CLKSOURCE_HCLK
AHB clock selected as SysTick clock source.
__STATIC_INLINE void LL_HANDLER_DisableFault(uint32_t Fault)
Disable a fault in System handler control register (SHCSR) @rmtoll SCB_SHCSR MEMFAULTENA LL_HANDLER_D...
__STATIC_INLINE void LL_HANDLER_EnableFault(uint32_t Fault)
Enable a fault in System handler control register (SHCSR) @rmtoll SCB_SHCSR MEMFAULTENA LL_HANDLER_En...
__STATIC_INLINE void LL_LPM_EnableDeepSleep(void)
Processor uses deep sleep as its low power mode @rmtoll SCB_SCR SLEEPDEEP LL_LPM_EnableDeepSleep.
__STATIC_INLINE void LL_LPM_DisableSleepOnExit(void)
Do not sleep when returning to Thread mode.
__STATIC_INLINE void LL_LPM_EnableSleep(void)
Processor uses sleep as its low power mode @rmtoll SCB_SCR SLEEPDEEP LL_LPM_EnableSleep.
__STATIC_INLINE void LL_LPM_EnableSleepOnExit(void)
Configures sleep-on-exit when returning from Handler mode to Thread mode.
__STATIC_INLINE void LL_LPM_EnableEventOnPend(void)
Enabled events and all interrupts, including disabled interrupts, can wakeup the processor.
__STATIC_INLINE void LL_LPM_DisableEventOnPend(void)
Only enabled interrupts or events can wakeup the processor, disabled interrupts are excluded @rmtoll ...
__STATIC_INLINE uint32_t LL_CPUID_GetVariant(void)
Get Variant number (The r value in the rnpn product revision identifier) @rmtoll SCB_CPUID VARIANT LL...
__STATIC_INLINE uint32_t LL_CPUID_GetImplementer(void)
Get Implementer code @rmtoll SCB_CPUID IMPLEMENTER LL_CPUID_GetImplementer.
__STATIC_INLINE uint32_t LL_CPUID_GetRevision(void)
Get Revision number (The p value in the rnpn product revision identifier, indicates patch release) @r...
__STATIC_INLINE uint32_t LL_CPUID_GetConstant(void)
Get Constant number @rmtoll SCB_CPUID ARCHITECTURE LL_CPUID_GetConstant.
__STATIC_INLINE uint32_t LL_CPUID_GetParNo(void)
Get Part number @rmtoll SCB_CPUID PARTNO LL_CPUID_GetParNo.
__STATIC_INLINE void LL_SYSTICK_DisableIT(void)
Disable SysTick exception request @rmtoll STK_CTRL TICKINT LL_SYSTICK_DisableIT.
__STATIC_INLINE uint32_t LL_SYSTICK_GetClkSource(void)
Get the SysTick clock source @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_GetClkSource.
__STATIC_INLINE void LL_SYSTICK_EnableIT(void)
Enable SysTick exception request @rmtoll STK_CTRL TICKINT LL_SYSTICK_EnableIT.
__STATIC_INLINE void LL_SYSTICK_SetClkSource(uint32_t Source)
Configures the SysTick clock source @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_SetClkSource.
__STATIC_INLINE uint32_t LL_SYSTICK_IsEnabledIT(void)
Checks if the SYSTICK interrupt is enabled or disabled.
__STATIC_INLINE uint32_t LL_SYSTICK_IsActiveCounterFlag(void)
This function checks if the Systick counter flag is active or not.
#define CLEAR_BIT(REG, BIT)
#define SET_BIT(REG, BIT)
#define WRITE_REG(REG, VAL)
#define MODIFY_REG(REG, CLEARMASK, SETMASK)
#define READ_BIT(REG, BIT)
CMSIS STM32H7xx Device Peripheral Access Layer Header File.