Skip to content

Commit

Permalink
initialize timer w GRs to FFFF
Browse files Browse the repository at this point in the history
  • Loading branch information
celerizer committed Oct 27, 2024
1 parent 32dab94 commit b8a7954
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2707,6 +2707,15 @@ void h8_init(h8_system_t *system)
system->vmem.parts.io1.ssu.sscrh.flags.solp = 1;
system->vmem.parts.io1.ssu.sssr.flags.tdre = 1;

system->vmem.parts.io1.tw.gra.h.u = 0xFF;
system->vmem.parts.io1.tw.gra.l.u = 0xFF;
system->vmem.parts.io1.tw.grb.h.u = 0xFF;
system->vmem.parts.io1.tw.grb.l.u = 0xFF;
system->vmem.parts.io1.tw.grc.h.u = 0xFF;
system->vmem.parts.io1.tw.grc.l.u = 0xFF;
system->vmem.parts.io1.tw.grd.h.u = 0xFF;
system->vmem.parts.io1.tw.grd.l.u = 0xFF;

system->vmem.parts.io2.wdt.tmwd.flags.reserved = B1111;

system->vmem.parts.io2.wdt.tcsrwd1.flags.b0wi = 1;
Expand Down

0 comments on commit b8a7954

Please sign in to comment.