STM8L15x Standard Peripherals Drivers
|
This file provides all the Flash firmware functions. These functions can be executed from Internal FLASH or Internal RAM memories.
- FLASH program and Data EEPROM memories interface configuration
- FLASH program and Data EEPROM memories Programming
- Option Bytes Programming
- Interrupts and flags management
- Functions to be executed from RAM.
#include "stm8l15x_flash.h"
Go to the source code of this file.
Defines | |
#define | FLASH_CLEAR_BYTE ((uint8_t)0x00) |
#define | FLASH_SET_BYTE ((uint8_t)0xFF) |
#define | OPERATION_TIMEOUT ((uint16_t)0xFFFF) |
Functions | |
void | FLASH_DeInit (void) |
Deinitializes the FLASH registers to their default reset values. | |
void | FLASH_EraseByte (uint32_t Address) |
Erases one byte in the program or data EEPROM memory. | |
void | FLASH_EraseOptionByte (uint16_t Address) |
Erases option byte. | |
uint16_t | FLASH_GetBootSize (void) |
Returns the Boot memory size in bytes. | |
uint16_t | FLASH_GetCodeSize (void) |
Returns the Code Area size in bytes. | |
FlagStatus | FLASH_GetFlagStatus (FLASH_FLAG_TypeDef FLASH_FLAG) |
Checks whether the specified FLASH flag is set or not. | |
FLASH_ProgramTime_TypeDef | FLASH_GetProgrammingTime (void) |
Returns the fixed programming time. | |
FunctionalState | FLASH_GetReadOutProtectionStatus (void) |
Returns the FLASH Read Out Protection Status. | |
void | FLASH_ITConfig (FunctionalState NewState) |
Enables or Disables the Flash interrupt mode. | |
void | FLASH_Lock (FLASH_MemType_TypeDef FLASH_MemType) |
Locks the program or data EEPROM memory. | |
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_ProgramByte (uint32_t Address, uint8_t Data) |
Programs one byte in program or data EEPROM memory. | |
void | FLASH_ProgramOptionByte (uint16_t Address, uint8_t Data) |
Programs option byte. | |
void | FLASH_ProgramWord (uint32_t Address, uint32_t Data) |
Programs one word (4 bytes) in program or data EEPROM memory. | |
uint8_t | FLASH_ReadByte (uint32_t Address) |
Reads one byte from flash memory. | |
void | FLASH_SetProgrammingTime (FLASH_ProgramTime_TypeDef FLASH_ProgTime) |
Sets the fixed programming time. | |
void | FLASH_Unlock (FLASH_MemType_TypeDef FLASH_MemType) |
Unlocks the program or data EEPROM memory. |
Detailed Description
This file provides all the Flash firmware functions. These functions can be executed from Internal FLASH or Internal RAM memories.
- FLASH program and Data EEPROM memories interface configuration
- FLASH program and Data EEPROM memories Programming
- Option Bytes Programming
- Interrupts and flags management
- Functions to be executed from RAM.
- Attention:
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
© COPYRIGHT 2011 STMicroelectronics
Definition in file stm8l15x_flash.c.