Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

FLASH

Functions

__STATIC_INLINE void LL_FLASH_SetLatency (uint32_t Latency)
 Set FLASH Latency FLASH_ACR LATENCY LL_FLASH_SetLatency.
__STATIC_INLINE uint32_t LL_FLASH_GetLatency (void)
 Get FLASH Latency FLASH_ACR LATENCY LL_FLASH_GetLatency.
__STATIC_INLINE void LL_FLASH_EnablePrefetch (void)
 Enable Prefetch FLASH_ACR PRFTEN LL_FLASH_EnablePrefetch.
__STATIC_INLINE void LL_FLASH_DisablePrefetch (void)
 Disable Prefetch FLASH_ACR PRFTEN LL_FLASH_DisablePrefetch.
__STATIC_INLINE void LL_FLASH_EnableInstCache (void)
 Enable Instruction cache FLASH_ACR ICEN LL_FLASH_EnableInstCache.
__STATIC_INLINE void LL_FLASH_DisableInstCache (void)
 Disable Instruction cache FLASH_ACR ICEN LL_FLASH_DisableInstCache.
__STATIC_INLINE void LL_FLASH_EnableDataCache (void)
 Enable Data cache FLASH_ACR DCEN LL_FLASH_EnableDataCache.
__STATIC_INLINE void LL_FLASH_DisableDataCache (void)
 Disable Data cache FLASH_ACR DCEN LL_FLASH_DisableDataCache.
__STATIC_INLINE void LL_FLASH_EnableInstCacheReset (void)
 Enable Instruction cache reset.
__STATIC_INLINE void LL_FLASH_DisableInstCacheReset (void)
 Disable Instruction cache reset FLASH_ACR ICRST LL_FLASH_DisableInstCacheReset.
__STATIC_INLINE void LL_FLASH_EnableDataCacheReset (void)
 Enable Data cache reset.
__STATIC_INLINE void LL_FLASH_DisableDataCacheReset (void)
 Disable Data cache reset FLASH_ACR DCRST LL_FLASH_DisableDataCacheReset.
__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 FLASH_ACR RUN_PD LL_FLASH_DisableRunPowerDown
FLASH_PDKEYR PDKEY1 LL_FLASH_DisableRunPowerDown
FLASH_PDKEYR PDKEY2 LL_FLASH_DisableRunPowerDown.
__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 FLASH_ACR SLEEP_PD LL_FLASH_DisableSleepPowerDown.

Function Documentation

__STATIC_INLINE void LL_FLASH_DisableDataCache ( void   )

Disable Data cache FLASH_ACR DCEN LL_FLASH_DisableDataCache.

Return values:
None

Definition at line 1292 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableDataCacheReset ( void   )

Disable Data cache reset FLASH_ACR DCRST LL_FLASH_DisableDataCacheReset.

Return values:
None

Definition at line 1334 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableInstCache ( void   )

Disable Instruction cache FLASH_ACR ICEN LL_FLASH_DisableInstCache.

Return values:
None

Definition at line 1272 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableInstCacheReset ( void   )

Disable Instruction cache reset FLASH_ACR ICRST LL_FLASH_DisableInstCacheReset.

Return values:
None

Definition at line 1313 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisablePrefetch ( void   )

Disable Prefetch FLASH_ACR PRFTEN LL_FLASH_DisablePrefetch.

Return values:
None

Definition at line 1252 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 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 1367 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_DisableSleepPowerDown ( void   )

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

Return values:
None

Definition at line 1393 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnableDataCache ( void   )

Enable Data cache FLASH_ACR DCEN LL_FLASH_EnableDataCache.

Return values:
None

Definition at line 1282 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 FLASH_ACR DCRST LL_FLASH_EnableDataCacheReset
Return values:
None

Definition at line 1324 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnableInstCache ( void   )

Enable Instruction cache FLASH_ACR ICEN LL_FLASH_EnableInstCache.

Return values:
None

Definition at line 1262 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 FLASH_ACR ICRST LL_FLASH_EnableInstCacheReset
Return values:
None

Definition at line 1303 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_EnablePrefetch ( void   )

Enable Prefetch FLASH_ACR PRFTEN LL_FLASH_EnablePrefetch.

Return values:
None

Definition at line 1242 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 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 1351 of file stm32l4xx_ll_system.h.

__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 FLASH_ACR SLEEP_PD LL_FLASH_EnableSleepPowerDown
Return values:
None

Definition at line 1383 of file stm32l4xx_ll_system.h.

__STATIC_INLINE uint32_t LL_FLASH_GetLatency ( void   )

Get FLASH Latency FLASH_ACR LATENCY LL_FLASH_GetLatency.

Return values:
Returnedvalue can be one of the following values:

  • LL_FLASH_LATENCY_0
  • LL_FLASH_LATENCY_1
  • LL_FLASH_LATENCY_2
  • LL_FLASH_LATENCY_3
  • LL_FLASH_LATENCY_4

Definition at line 1232 of file stm32l4xx_ll_system.h.

__STATIC_INLINE void LL_FLASH_SetLatency ( uint32_t  Latency )

Set FLASH Latency FLASH_ACR LATENCY LL_FLASH_SetLatency.

Parameters:
LatencyThis parameter can be one of the following values:

  • LL_FLASH_LATENCY_0
  • LL_FLASH_LATENCY_1
  • LL_FLASH_LATENCY_2
  • LL_FLASH_LATENCY_3
  • LL_FLASH_LATENCY_4
Return values:
None

Definition at line 1217 of file stm32l4xx_ll_system.h.