STM32L486xx HAL User Manual
Functions
FLASH
SYSTEM Exported Functions

Functions

__STATIC_INLINE void LL_FLASH_SetLatency (uint32_t Latency)
 Set FLASH Latency.
__STATIC_INLINE uint32_t LL_FLASH_GetLatency (void)
 Get FLASH Latency.
__STATIC_INLINE void LL_FLASH_EnablePrefetch (void)
 Enable Prefetch.
__STATIC_INLINE void LL_FLASH_DisablePrefetch (void)
 Disable Prefetch.
__STATIC_INLINE uint32_t LL_FLASH_IsPrefetchEnabled (void)
 Check if Prefetch buffer is enabled.
__STATIC_INLINE void LL_FLASH_EnableInstCache (void)
 Enable Instruction cache.
__STATIC_INLINE void LL_FLASH_DisableInstCache (void)
 Disable Instruction cache.
__STATIC_INLINE void LL_FLASH_EnableDataCache (void)
 Enable Data cache.
__STATIC_INLINE void LL_FLASH_DisableDataCache (void)
 Disable Data cache.
__STATIC_INLINE void LL_FLASH_EnableInstCacheReset (void)
 Enable Instruction cache reset.
__STATIC_INLINE void LL_FLASH_DisableInstCacheReset (void)
 Disable Instruction cache reset.
__STATIC_INLINE void LL_FLASH_EnableDataCacheReset (void)
 Enable Data cache reset.
__STATIC_INLINE void LL_FLASH_DisableDataCacheReset (void)
 Disable Data cache reset.
__STATIC_INLINE void LL_FLASH_EnableRunPowerDown (void)
 Enable Flash Power-down mode during run mode or Low-power run mode.
__STATIC_INLINE void LL_FLASH_DisableRunPowerDown (void)
 Disable Flash Power-down mode during run mode or Low-power run mode.
__STATIC_INLINE void LL_FLASH_EnableSleepPowerDown (void)
 Enable Flash Power-down mode during Sleep or Low-power sleep mode.
__STATIC_INLINE void LL_FLASH_DisableSleepPowerDown (void)
 Disable Flash Power-down mode during Sleep or Low-power sleep mode.

Function Documentation

__STATIC_INLINE void LL_FLASH_DisableDataCache ( void  )

Disable Data cache.

Reference Manual to LL API cross reference:
FLASH_ACR DCEN LL_FLASH_DisableDataCache
Return values:
None

Definition at line 1514 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableDataCacheReset ( void  )

Disable Data cache reset.

Reference Manual to LL API cross reference:
FLASH_ACR DCRST LL_FLASH_DisableDataCacheReset
Return values:
None

Definition at line 1556 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableInstCache ( void  )

Disable Instruction cache.

Reference Manual to LL API cross reference:
FLASH_ACR ICEN LL_FLASH_DisableInstCache
Return values:
None

Definition at line 1494 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableInstCacheReset ( void  )

Disable Instruction cache reset.

Reference Manual to LL API cross reference:
FLASH_ACR ICRST LL_FLASH_DisableInstCacheReset
Return values:
None

Definition at line 1535 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisablePrefetch ( void  )

Disable Prefetch.

Reference Manual to LL API cross reference:
FLASH_ACR PRFTEN LL_FLASH_DisablePrefetch
Return values:
None

Definition at line 1464 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableRunPowerDown ( void  )

Disable Flash Power-down mode during run mode or Low-power run mode.

Reference Manual to LL API cross reference:
FLASH_ACR RUN_PD LL_FLASH_DisableRunPowerDown
FLASH_PDKEYR PDKEY1 LL_FLASH_DisableRunPowerDown
FLASH_PDKEYR PDKEY2 LL_FLASH_DisableRunPowerDown
Return values:
None

Definition at line 1589 of file stm32l4xx_ll_system.h.

References FLASH_PDKEY1, and FLASH_PDKEY2.

__STATIC_INLINE void LL_FLASH_DisableSleepPowerDown ( void  )

Disable Flash Power-down mode during Sleep or Low-power sleep mode.

Reference Manual to LL API cross reference:
FLASH_ACR SLEEP_PD LL_FLASH_DisableSleepPowerDown
Return values:
None

Definition at line 1615 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnableDataCache ( void  )

Enable Data cache.

Reference Manual to LL API cross reference:
FLASH_ACR DCEN LL_FLASH_EnableDataCache
Return values:
None

Definition at line 1504 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnableDataCacheReset ( void  )

Enable Data cache reset.

Note:
bit can be written only when the data cache is disabled
Reference Manual to LL API cross reference:
FLASH_ACR DCRST LL_FLASH_EnableDataCacheReset
Return values:
None

Definition at line 1546 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnableInstCache ( void  )

Enable Instruction cache.

Reference Manual to LL API cross reference:
FLASH_ACR ICEN LL_FLASH_EnableInstCache
Return values:
None

Definition at line 1484 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnableInstCacheReset ( void  )

Enable Instruction cache reset.

Note:
bit can be written only when the instruction cache is disabled
Reference Manual to LL API cross reference:
FLASH_ACR ICRST LL_FLASH_EnableInstCacheReset
Return values:
None

Definition at line 1525 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnablePrefetch ( void  )

Enable Prefetch.

Reference Manual to LL API cross reference:
FLASH_ACR PRFTEN LL_FLASH_EnablePrefetch
Return values:
None

Definition at line 1454 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnableRunPowerDown ( void  )

Enable Flash Power-down mode during run mode or Low-power run mode.

Note:
Flash memory can be put in power-down mode only when the code is executed from RAM
Flash must not be accessed when power down is enabled
Flash must not be put in power-down while a program or an erase operation is on-going
Reference Manual to LL API cross reference:
FLASH_ACR RUN_PD LL_FLASH_EnableRunPowerDown
FLASH_PDKEYR PDKEY1 LL_FLASH_EnableRunPowerDown
FLASH_PDKEYR PDKEY2 LL_FLASH_EnableRunPowerDown
Return values:
None

Definition at line 1573 of file stm32l4xx_ll_system.h.

References FLASH_PDKEY1, and FLASH_PDKEY2.

__STATIC_INLINE void LL_FLASH_EnableSleepPowerDown ( void  )

Enable Flash Power-down mode during Sleep or Low-power sleep mode.

Note:
Flash must not be put in power-down while a program or an erase operation is on-going
Reference Manual to LL API cross reference:
FLASH_ACR SLEEP_PD LL_FLASH_EnableSleepPowerDown
Return values:
None

Definition at line 1605 of file stm32l4xx_ll_system.h.

__STATIC_INLINE uint32_t LL_FLASH_GetLatency ( void  )

Get FLASH Latency.

Reference Manual to LL API cross reference:
FLASH_ACR LATENCY LL_FLASH_GetLatency
Return values:
Returnedvalue can be one of the following values: (*) value not defined in all devices.

Definition at line 1444 of file stm32l4xx_ll_system.h.

Referenced by UTILS_SetFlashLatency().

__STATIC_INLINE uint32_t LL_FLASH_IsPrefetchEnabled ( void  )

Check if Prefetch buffer is enabled.

Reference Manual to LL API cross reference:
FLASH_ACR PRFTEN LL_FLASH_IsPrefetchEnabled
Return values:
Stateof bit (1 or 0).

Definition at line 1474 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_SetLatency ( uint32_t  Latency)

Set FLASH Latency.

Reference Manual to LL API cross reference:
FLASH_ACR LATENCY LL_FLASH_SetLatency
Parameters:
LatencyThis parameter can be one of the following values: (*) value not defined in all devices.
Return values:
None

Definition at line 1416 of file stm32l4xx_ll_system.h.

Referenced by UTILS_SetFlashLatency().