37 #include "dev/flash.h"
38 #include "dev/watchdog.h"
40 #define FLASH_TIMEOUT 30
41 #define FLASH_REQ_TIMEOUT 150
43 static uint16_t sfrie;
82 while(FCTL3 & 0x0001) r++;
95 while(FCTL3 & 0x0001) r++;
void flash_clear(unsigned short *ptr)
Clear a 16-bit word in flash ROM.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
void watchdog_stop(void)
In watchdog mode, the WDT can not be stopped.
void flash_done(void)
Function that is to be called after flashing is done.
void flash_write(unsigned short *ptr, unsigned short word)
Write a 16-bit word to flash ROM.
void flash_setup(void)
Setup function to be called before any of the flash programming functions.