Add a watchdog timer of 10 seconds when using scratch ROM
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include <8051.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <board/smfi.h>
|
||||
#include <common/macro.h>
|
||||
|
||||
// Include scratch ROM
|
||||
@ -15,6 +16,8 @@ volatile uint8_t __xdata __at(0x1042) SCAR0H;
|
||||
|
||||
// Enter or exit scratch ROM
|
||||
void scratch_trampoline(void) {
|
||||
smfi_watchdog();
|
||||
|
||||
// Disable interrupts
|
||||
EA = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user