STM8L15x Standard Peripherals Drivers: FLASH program and Data EEPROM memories Interface

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

FLASH program and Data EEPROM memories Interface

configuration functions More...

Functions

FLASH_ProgramTime_TypeDef FLASH_GetProgrammingTime (void)
 Returns the fixed programming time.
void FLASH_PowerWaitModeConfig (FLASH_Power_TypeDef FLASH_Power)
 Configures the power state for Flash program and data EEPROM during wait for interrupt mode.
void FLASH_SetProgrammingTime (FLASH_ProgramTime_TypeDef FLASH_ProgTime)
 Sets the fixed programming time.

Detailed Description

configuration functions

FLASH Interface configuration functions

 ===============================================================================
      FLASH program and Data EEPROM memories interface configuration functions
 ===============================================================================  

   The FLASH program and Data EEPROM memories interface configuration functions,
    includes the following functions:
		
   - FLASH_ProgramTime_TypeDef FLASH_GetProgrammingTime(void);
   - void FLASH_SetProgrammingTime(FLASH_ProgramTime_TypeDef FLASH_ProgTime);
	 - void FLASH_PowerWaitModeConfig(FLASH_Power_TypeDef FLASH_Power);

   These functions don't need the unlock sequence.


Function Documentation

FLASH_ProgramTime_TypeDef FLASH_GetProgrammingTime ( void  )

Returns the fixed programming time.

Parameters:
None
Return values:
Fixedprogramming time value

Definition at line 182 of file stm8l15x_flash.c.

References FLASH, and FLASH_CR1_FIX.

void FLASH_PowerWaitModeConfig ( FLASH_Power_TypeDef  FLASH_Power)

Configures the power state for Flash program and data EEPROM during wait for interrupt mode.

Parameters:
FLASH_Power,:The power state for Flash program and data EEPROM during wait for interrupt mode This parameter can be one of the following values:
  • FLASH_Power_IDDQ: Flash program and data EEPROM in IDDQ
  • FLASH_Power_On: Flash program and data EEPROM not in IDDQ
Return values:
None

Definition at line 197 of file stm8l15x_flash.c.

References FLASH, FLASH_CR1_WAITM, FLASH_Power_On, and IS_FLASH_POWER.

void FLASH_SetProgrammingTime ( FLASH_ProgramTime_TypeDef  FLASH_ProgTime)

Sets the fixed programming time.

Parameters:
FLASH_ProgTime: Indicates the programming time to be fixed This parameter can be one of the following values:
  • FLASH_ProgramTime_Standard: Standard programming time fixed at 1/2 tprog
  • FLASH_ProgramTime_TProg: Programming time fixed at tprog
Return values:
None

Definition at line 168 of file stm8l15x_flash.c.

References FLASH, FLASH_CR1_FIX, and IS_FLASH_PROGRAM_TIME.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com