Added a macro for portable watchdog calls.

This commit is contained in:
nvt-se 2010-12-15 14:01:07 +00:00
parent 79ae813f88
commit 404230a047
3 changed files with 16 additions and 6 deletions

View file

@ -70,6 +70,10 @@
#define COFFEE_ERASE(sector) cfs_coffee_arch_erase(sector)
#define COFFEE_WATCHDOG_START() watchdog_start()
#define COFFEE_WATCHDOG_STOP() watchdog_stop()
#define COFFEE_WATCHDOG_PERIODIC() watchdog_periodic()
void cfs_coffee_arch_erase(uint16_t sector);
typedef int16_t coffee_page_t;

View file

@ -60,6 +60,7 @@
#define COFFEE_WATCHDOG_START() watchdog_start()
#define COFFEE_WATCHDOG_STOP() watchdog_stop()
#define COFFEE_WATCHDOG_PERIODIC() watchdog_periodic()
/* Flash operations. */
#define COFFEE_WRITE(buf, size, offset) \