7 #ifndef __MSP430WARE_FLASHCTL_H__
8 #define __MSP430WARE_FLASHCTL_H__
10 #include "inc/hw_memmap.h"
12 #ifdef __MSP430_HAS_FLASH__
32 #define FLASHCTL_READY_FOR_NEXT_WRITE WAIT
33 #define FLASHCTL_ACCESS_VIOLATION_INTERRUPT_FLAG ACCVIFG
34 #define FLASHCTL_PASSWORD_WRITTEN_INCORRECTLY KEYV
35 #define FLASHCTL_BUSY BUSY
43 #define FLASHCTL_MCLK FSSEL_1
44 #define FLASHCTL_SMCLK FSSEL_2
99 uint16_t numberOfBytes);
251 uint32_t clockSourceFreq,
252 uint16_t clockSource);
264 #endif // __MSP430WARE_FLASHCTL_H__
void FlashCtl_write16(uint16_t *data_ptr, uint16_t *flash_ptr, uint16_t count)
Write data into the flash memory in 16-bit word format, pass by reference.
Definition: flashctl.c:107
void FlashCtl_unlockInfo(void)
Unlocks the information flash memory segment.
Definition: flashctl.c:238
uint8_t FlashCtl_setupClock(uint32_t clockTargetFreq, uint32_t clockSourceFreq, uint16_t clockSource)
Sets up the clock for the flash module.
Definition: flashctl.c:254
bool FlashCtl_performEraseCheck(uint8_t *flash_ptr, uint16_t numberOfBytes)
Erase check of the flash memory.
Definition: flashctl.c:63
void FlashCtl_eraseSegment(uint8_t *flash_ptr)
Erase a single segment of the flash memory.
Definition: flashctl.c:21
void FlashCtl_write8(uint8_t *data_ptr, uint8_t *flash_ptr, uint16_t count)
Write data into the flash memory in byte format, pass by reference.
Definition: flashctl.c:79
uint8_t FlashCtl_getStatus(uint8_t mask)
Check FlashCtl status to see if it is currently busy erasing or programming.
Definition: flashctl.c:215
void FlashCtl_lockInfo(void)
Locks the information flash memory segment.
Definition: flashctl.c:221
void FlashCtl_fillMemory32(uint32_t value, uint32_t *flash_ptr, uint16_t count)
Write data into the flash memory in 32-bit word format, pass by value.
Definition: flashctl.c:173
void FlashCtl_write32(uint32_t *data_ptr, uint32_t *flash_ptr, uint16_t count)
Write data into the flash memory in 32-bit word format, pass by reference.
Definition: flashctl.c:135
void FlashCtl_performMassErase(uint8_t *flash_ptr)
Erase all flash memory.
Definition: flashctl.c:41