#include "inc/hw_types.h"
#include "driverlib/5xx_6xx/debug.h"
#include "driverlib/5xx_6xx/flash.h"
#include "deprecated/CCS/msp430xgeneric.h"
Functions | |
void | Flash_segmentErase (unsigned int baseAddress, unsigned char *Flash_ptr) |
void | Flash_bankErase (unsigned int baseAddress, unsigned char *Flash_ptr) |
unsigned short | Flash_eraseCheck (unsigned int baseAddress, unsigned char *Flash_ptr, unsigned int numberOfBytes) |
void | Flash_write8 (unsigned int baseAddress, unsigned char *Data_ptr, unsigned char *Flash_ptr, unsigned int numberOfBytes) |
void | Flash_write16 (unsigned int baseAddress, unsigned int *Data_ptr, unsigned int *Flash_ptr, unsigned int numberOfBytes) |
void | Flash_write32 (unsigned int baseAddress, unsigned long *Data_ptr, unsigned long *Flash_ptr, unsigned int numberOfBytes) |
void | Flash_memoryFill32 (unsigned int baseAddress, unsigned long value, unsigned long *Flash_ptr, unsigned int count) |
unsigned char | Flash_status (unsigned int baseAddress, unsigned char mask) |
void Flash_segmentErase | ( | unsigned int | baseAddress, |
unsigned char * | Flash_ptr | ||
) |
void Flash_bankErase | ( | unsigned int | baseAddress, |
unsigned char * | Flash_ptr | ||
) |
unsigned short Flash_eraseCheck | ( | unsigned int | baseAddress, |
unsigned char * | Flash_ptr, | ||
unsigned int | numberOfBytes | ||
) |
Erase check of the flash memory
baseAddress | is the base address of the Flash module. |
Flash_ptr | is the Pointer to the starting location of the erase check |
numberOfBytes | is the number of bytes to be checked |
References STATUS_FAIL, and STATUS_SUCCESS.
void Flash_write8 | ( | unsigned int | baseAddress, |
unsigned char * | Data_ptr, | ||
unsigned char * | Flash_ptr, | ||
unsigned int | numberOfBytes | ||
) |
Write data into the flash memory in byte format.
baseAddress | is the base address of the Flash module. |
Data_ptr | is the pointer to the data to be written |
Flash_ptr | is the pointer into which to write the data |
numberOfBytes | is the number of bytes to be written |
void Flash_write16 | ( | unsigned int | baseAddress, |
unsigned int * | Data_ptr, | ||
unsigned int * | Flash_ptr, | ||
unsigned int | numberOfBytes | ||
) |
Write data into the flash memory in word format.
baseAddress | is the base address of the Flash module. |
Data_ptr | is the pointer to the data to be written |
Flash_ptr | is the pointer into which to write the data |
numberOfBytes | is the number of bytes to be written |
void Flash_write32 | ( | unsigned int | baseAddress, |
unsigned long * | Data_ptr, | ||
unsigned long * | Flash_ptr, | ||
unsigned int | numberOfBytes | ||
) |
Write data into the flash memory in long format, pass by reference
baseAddress | is the base address of the Flash module. |
Data_ptr | is the pointer to the data to be written |
Flash_ptr | is the pointer into which to write the data |
numberOfBytes | is the number of bytes to be written |
void Flash_memoryFill32 | ( | unsigned int | baseAddress, |
unsigned long | value, | ||
unsigned long * | Flash_ptr, | ||
unsigned int | count | ||
) |
Write data into the flash memory in long format, pass by value
baseAddress | is the base address of the Flash module. |
Data_ptr | is the pointer to the data to be written |
Flash_ptr | is the pointer into which to write the data |
numberOfBytes | is the number of bytes to be written |
unsigned char Flash_status | ( | unsigned int | baseAddress, |
unsigned char | mask | ||
) |
Check if Flash status to see if it is currently busy erasing or programming
baseAddress | is the base address of the Flash module. |
mask | is the logical OR of the status mask requested (FLASH_READY_FOR_NEXT_WRITE) (FLASH_ACCESS_VIOLATION_INTERRUPT_FLAG) (FLASH_PASSWORD_WRITTEN_INCORRECTLY) (FLASH_BUSY) |
References HWREGB.