38 #include "dev/flash.h"
39 #include "dev/watchdog.h"
41 #define FLASH_TIMEOUT 30
42 #define FLASH_REQ_TIMEOUT 150
44 static unsigned short ie1, ie2;
89 while(FCTL3 & 0x0001) nop();
101 while(FCTL3 & 0x0001) nop();
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.