Replace libmain:app_main.o with core/app_main.c
This commit is contained in:
parent
8b8f7c9de4
commit
a044c061d5
7 changed files with 805 additions and 0 deletions
|
|
@ -31,6 +31,17 @@ struct WDT_REGS {
|
|||
|
||||
_Static_assert(sizeof(struct WDT_REGS) == 0x18, "WDT_REGS is the wrong size");
|
||||
|
||||
/* Details for CTRL register */
|
||||
|
||||
/* Note: these are currently just guesses based on interpretation of the startup code */
|
||||
|
||||
#define WDT_CTRL_ENABLE BIT(0)
|
||||
#define WDT_CTRL_FIELD0_M 0x00000003
|
||||
#define WDT_CTRL_FIELD0_S 1
|
||||
#define WDT_CTRL_FLAG3 BIT(3)
|
||||
#define WDT_CTRL_FLAG4 BIT(4)
|
||||
#define WDT_CTRL_FLAG5 BIT(5)
|
||||
|
||||
/* Writing WDT_FEED_MAGIC to WDT.FEED register "feeds the dog" and holds off
|
||||
* triggering for another cycle (unconfirmed) */
|
||||
#define WDT_FEED_MAGIC 0x73
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue