FLASH Interface configuration functions.
More...
FLASH Interface configuration functions.
===============================================================================
##### FLASH Interface configuration functions #####
===============================================================================
[..] FLASH_Interface configuration_Functions, includes the following functions:
(+) void FLASH_SetLatency(uint32_t FLASH_Latency):
[..] To correctly read data from Flash memory, the number of wait states (LATENCY)
must be correctly programmed according to the frequency of the CPU clock (HCLK)
[..]
+------------------------------------------------+
| Wait states | HCLK clock frequency (MHz) |
|----------------|-------------------------------|
|0WS(1CPU cycle) | 0 < HCLK <= 24 |
|----------------|-------------------------------|
|1WS(2CPU cycles)| 24 < HCLK <= 48 |
|----------------|-------------------------------|
|2WS(3CPU cycles)| 48 < HCLK <= 72 |
+------------------------------------------------+
(+) void FLASH_HalfCycleAccessCmd(uint32_t FLASH_HalfCycleAccess)
(+) void FLASH_PrefetchBufferCmd(FunctionalState NewState);
[..]
All these functions don't need the unlock sequence.
void FLASH_HalfCycleAccessCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the Half cycle flash access.
- Parameters
-
FLASH_HalfCycleAccess,: | specifies the FLASH Half cycle Access mode. This parameter can be one of the following values:
- FLASH_HalfCycleAccess_Enable: FLASH Half Cycle Enable
- FLASH_HalfCycleAccess_Disable: FLASH Half Cycle Disable
|
- Return values
-
void FLASH_PrefetchBufferCmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the Prefetch Buffer.
- Parameters
-
NewState,: | new state of the Prefetch Buffer. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void FLASH_SetLatency |
( |
uint32_t |
FLASH_Latency | ) |
|
Sets the code latency value.
- Parameters
-
FLASH_Latency,: | specifies the FLASH Latency value. This parameter can be one of the following values:
- FLASH_Latency_0: FLASH Zero Latency cycle
- FLASH_Latency_1: FLASH One Latency cycle
- FLASH_Latency_2: FLASH Two Latency cycles
|
- Return values
-