Add a watchdog timer of 10 seconds when using scratch ROM

This commit is contained in:
Jeremy Soller
2020-04-06 14:11:57 -06:00
parent 2d17acd919
commit dc246237c6
11 changed files with 83 additions and 9 deletions

View File

@ -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;