Contiki 2.5
|
Functions for reading and writing MSP430 flash ROM. More...
Go to the source code of this file.
Functions | |
void | flash_setup (void) |
Setup function to be called before any of the flash programming functions. | |
void | flash_done (void) |
Function that is to be called after flashing is done. | |
void | flash_write (unsigned short *addr, unsigned short word) |
Write a 16-bit word to flash ROM. More... | |
void | flash_clear (unsigned short *addr) |
Clear a 16-bit word in flash ROM. More... | |
Functions for reading and writing MSP430 flash ROM.
Definition in file flash.h.
void flash_clear | ( | unsigned short * | addr | ) |
Clear a 16-bit word in flash ROM.
This function clears a 16-bit word in flash ROM. The function flash_setup() must have been called first.
addr | A pointer to the address in flash ROM which is to be cleared. |
void flash_write | ( | unsigned short * | addr, |
unsigned short | word | ||
) |
Write a 16-bit word to flash ROM.
This function writes a 16-bit word to flash ROM. The function flash_setup() must have been called first.
addr | A pointer to the address in flash ROM which is to be written. |
word | The 16-bit word that is to be written. |