#include <stdbool.h>
#include <ti/devices/msp432p4xx/inc/msp.h>
Go to the source code of this file.
Macros | |
#define | FLASH_BURST_PRG_BIT 0x03 |
#define | FLASH_PROGRAM_ERROR FLCTL_IFG_PRG_ERR |
#define | FLASH_BENCHMARK_INT FLCTL_IFG_BMRK |
#define | FLASH_ERASE_COMPLETE FLCTL_IFG_ERASE |
#define | FLASH_BRSTPRGM_COMPLETE FLCTL_IFG_PRGB |
#define | FLASH_WRDPRGM_COMPLETE FLCTL_IFG_PRG |
#define | FLASH_POSTVERIFY_FAILED FLCTL_IFG_AVPST |
#define | FLASH_PREVERIFY_FAILED FLCTL_IFG_AVPRE |
#define | FLASH_BRSTRDCMP_COMPLETE FLCTL_IFG_RDBRST |
#define | FLASH_NORMAL_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_0 |
#define | FLASH_MARGIN0_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_1 |
#define | FLASH_MARGIN1_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_2 |
#define | FLASH_PROGRAM_VERIFY_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_3 |
#define | FLASH_ERASE_VERIFY_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_4 |
#define | FLASH_LEAKAGE_VERIFY_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_5 |
#define | FLASH_MARGIN0B_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_9 |
#define | FLASH_MARGIN1B_READ_MODE FLCTL_BANK0_RDCTL_RD_MODE_10 |
#define | FLASH_PRGBRSTCTLSTAT_BURSTSTATUS_COMPLETE FLCTL_PRGBRST_CTLSTAT_BURST_STATUS_7 |
#define | FLASH_BANK0 0x00 |
#define | FLASH_BANK1 0x01 |
#define | FLASH_DATA_READ 0x00 |
#define | FLASH_INSTRUCTION_FETCH 0x01 |
#define | FLASH_MAIN_MEMORY_SPACE_BANK0 0x01 |
#define | FLASH_MAIN_MEMORY_SPACE_BANK1 0x02 |
#define | FLASH_INFO_MEMORY_SPACE_BANK0 0x03 |
#define | FLASH_INFO_MEMORY_SPACE_BANK1 0x04 |
#define | FLASH_MAIN_SPACE FLCTL_RDBRST_CTLSTAT_MEM_TYPE_0 |
#define | FLASH_INFO_SPACE FLCTL_RDBRST_CTLSTAT_MEM_TYPE_1 |
#define | FLASH_1_PATTERN FLCTL_RDBRST_CTLSTAT_DATA_CMP |
#define | FLASH_0_PATTERN 0x00 |
#define | FLASH_SECTOR0 FLCTL_BANK0_MAIN_WEPROT_PROT0 |
#define | FLASH_SECTOR1 FLCTL_BANK0_MAIN_WEPROT_PROT1 |
#define | FLASH_SECTOR2 FLCTL_BANK0_MAIN_WEPROT_PROT2 |
#define | FLASH_SECTOR3 FLCTL_BANK0_MAIN_WEPROT_PROT3 |
#define | FLASH_SECTOR4 FLCTL_BANK0_MAIN_WEPROT_PROT4 |
#define | FLASH_SECTOR5 FLCTL_BANK0_MAIN_WEPROT_PROT5 |
#define | FLASH_SECTOR6 FLCTL_BANK0_MAIN_WEPROT_PROT6 |
#define | FLASH_SECTOR7 FLCTL_BANK0_MAIN_WEPROT_PROT7 |
#define | FLASH_SECTOR8 FLCTL_BANK0_MAIN_WEPROT_PROT8 |
#define | FLASH_SECTOR9 FLCTL_BANK0_MAIN_WEPROT_PROT9 |
#define | FLASH_SECTOR10 FLCTL_BANK0_MAIN_WEPROT_PROT10 |
#define | FLASH_SECTOR11 FLCTL_BANK0_MAIN_WEPROT_PROT11 |
#define | FLASH_SECTOR12 FLCTL_BANK0_MAIN_WEPROT_PROT12 |
#define | FLASH_SECTOR13 FLCTL_BANK0_MAIN_WEPROT_PROT13 |
#define | FLASH_SECTOR14 FLCTL_BANK0_MAIN_WEPROT_PROT14 |
#define | FLASH_SECTOR15 FLCTL_BANK0_MAIN_WEPROT_PROT15 |
#define | FLASH_SECTOR16 FLCTL_BANK0_MAIN_WEPROT_PROT16 |
#define | FLASH_SECTOR17 FLCTL_BANK0_MAIN_WEPROT_PROT17 |
#define | FLASH_SECTOR18 FLCTL_BANK0_MAIN_WEPROT_PROT18 |
#define | FLASH_SECTOR19 FLCTL_BANK0_MAIN_WEPROT_PROT19 |
#define | FLASH_SECTOR20 FLCTL_BANK0_MAIN_WEPROT_PROT20 |
#define | FLASH_SECTOR21 FLCTL_BANK0_MAIN_WEPROT_PROT21 |
#define | FLASH_SECTOR22 FLCTL_BANK0_MAIN_WEPROT_PROT22 |
#define | FLASH_SECTOR23 FLCTL_BANK0_MAIN_WEPROT_PROT23 |
#define | FLASH_SECTOR24 FLCTL_BANK0_MAIN_WEPROT_PROT24 |
#define | FLASH_SECTOR25 FLCTL_BANK0_MAIN_WEPROT_PROT25 |
#define | FLASH_SECTOR26 FLCTL_BANK0_MAIN_WEPROT_PROT26 |
#define | FLASH_SECTOR27 FLCTL_BANK0_MAIN_WEPROT_PROT27 |
#define | FLASH_SECTOR28 FLCTL_BANK0_MAIN_WEPROT_PROT28 |
#define | FLASH_SECTOR29 FLCTL_BANK0_MAIN_WEPROT_PROT29 |
#define | FLASH_SECTOR30 FLCTL_BANK0_MAIN_WEPROT_PROT30 |
#define | FLASH_SECTOR31 FLCTL_BANK0_MAIN_WEPROT_PROT31 |
#define | FLASH_NOVER 0 |
#define | FLASH_BURSTPOST FLCTL_PRGBRST_CTLSTAT_AUTO_PST |
#define | FLASH_BURSTPRE FLCTL_PRGBRST_CTLSTAT_AUTO_PRE |
#define | FLASH_REGPRE FLCTL_PRG_CTLSTAT_VER_PRE |
#define | FLASH_REGPOST FLCTL_PRG_CTLSTAT_VER_PST |
#define | FLASH_FULLVER |
#define | FLASH_COLLATED_WRITE_MODE 0x01 |
#define | FLASH_IMMEDIATE_WRITE_MODE 0x02 |
#define | __INFO_FLASH_TECH_START__ 0x00200000 |
#define | __INFO_FLASH_TECH_MIDDLE__ 0x00202000 |
Functions | |
void | FlashCtl_getMemoryInfo (uint32_t addr, uint32_t *bankNum, uint32_t *sectorNum) |
void | FlashCtl_enableReadBuffering (uint_fast8_t memoryBank, uint_fast8_t accessMethod) |
void | FlashCtl_disableReadBuffering (uint_fast8_t memoryBank, uint_fast8_t accessMethod) |
bool | FlashCtl_unprotectSector (uint_fast8_t memorySpace, uint32_t sectorMask) |
bool | FlashCtl_protectSector (uint_fast8_t memorySpace, uint32_t sectorMask) |
bool | FlashCtl_isSectorProtected (uint_fast8_t memorySpace, uint32_t sector) |
bool | FlashCtl_verifyMemory (void *verifyAddr, uint32_t length, uint_fast8_t pattern) |
bool | FlashCtl_performMassErase (void) |
void | FlashCtl_initiateMassErase (void) |
bool | FlashCtl_eraseSector (uint32_t addr) |
bool | FlashCtl_programMemory (void *src, void *dest, uint32_t length) |
void | FlashCtl_setProgramVerification (uint32_t verificationSetting) |
void | FlashCtl_clearProgramVerification (uint32_t verificationSetting) |
void | FlashCtl_enableWordProgramming (uint32_t mode) |
void | FlashCtl_disableWordProgramming (void) |
uint32_t | FlashCtl_isWordProgrammingEnabled (void) |
bool | FlashCtl_setReadMode (uint32_t flashBank, uint32_t readMode) |
uint32_t | FlashCtl_getReadMode (uint32_t flashBank) |
void | FlashCtl_setWaitState (uint32_t bank, uint32_t waitState) |
uint32_t | FlashCtl_getWaitState (uint32_t bank) |
void | FlashCtl_enableInterrupt (uint32_t flags) |
void | FlashCtl_disableInterrupt (uint32_t flags) |
uint32_t | FlashCtl_getEnabledInterruptStatus (void) |
uint32_t | FlashCtl_getInterruptStatus (void) |
void | FlashCtl_clearInterruptFlag (uint32_t flags) |
void | FlashCtl_registerInterrupt (void(*intHandler)(void)) |
void | FlashCtl_unregisterInterrupt (void) |
void | FlashCtl_initiateSectorErase (uint32_t addr) |
uint8_t | __FlashCtl_remaskData8Post (uint8_t data, uint32_t addr) |
uint8_t | __FlashCtl_remaskData8Pre (uint8_t data, uint32_t addr) |
uint32_t | __FlashCtl_remaskData32Post (uint32_t data, uint32_t addr) |
uint32_t | __FlashCtl_remaskData32Pre (uint32_t data, uint32_t addr) |
void | __FlashCtl_remaskBurstDataPost (uint32_t addr, uint32_t size) |
void | __FlashCtl_remaskBurstDataPre (uint32_t addr, uint32_t size) |