Added a macro for portable watchdog calls.
This commit is contained in:
parent
79ae813f88
commit
404230a047
3 changed files with 16 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue