STM8S/A Standard Peripherals Drivers
|
This file contains all the functions for the FLASH peripheral. More...
#include "stm8s_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. | |
uint32_t | FLASH_GetBootSize (void) |
Returns the Boot memory size in bytes. | |
FlagStatus | FLASH_GetFlagStatus (FLASH_Flag_TypeDef FLASH_FLAG) |
Checks whether the specified SPI flag is set or not. | |
FLASH_LPMode_TypeDef | FLASH_GetLowPowerMode (void) |
Returns the Flash behaviour type in low power mode. | |
FLASH_ProgramTime_TypeDef | FLASH_GetProgrammingTime (void) |
Returns the fixed programming time. | |
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_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 any byte from flash memory. | |
uint16_t | FLASH_ReadOptionByte (uint16_t Address) |
Reads one option byte. | |
void | FLASH_SetLowPowerMode (FLASH_LPMode_TypeDef FLASH_LPMode) |
Select the Flash behaviour in low power mode. | |
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 contains all the functions for the FLASH peripheral.
- Attention:
© COPYRIGHT 2014 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm8s_flash.c.