Commit a10d508fb1a7d9394fbab16082be56eead3ad81b
authorbsekisser <squirmyworms@embarqmail.com>
Mon, 20 Oct 2014 07:48:55 +0000 (03:48 -0400)
committerbsekisser <squirmyworms@embarqmail.com>
Fri, 31 Oct 2014 12:47:23 +0000 (08:47 -0400)
tree30a4a81819ff6b7a7c47ef9af970b04cedcc9ef1
parentd85051ad32b13e26be2e5813c657147ca1a36eba
Message:
watchdog: reworked to add support for software reset.

support for software reset due to watchdog timeout...
based on watchdog documentation.

modified:   sim/sim_avr.c
modifications to avr_reset and avr_init to support software
reset.

modified:   sim/sim_avr.h
added type avr_run_t...
avr_t.run updated accordingly.

modified:   sim/avr_watchdog.c
largely rewritten to support software reset.

modified:   sim/avr_watchdog.h
data record 'reset_context' added to support software reset

modified:   sim/sim_regbit.h
added: avr_regbit_from_value
for checking flags before commiting register value.
added: avr_regbit_set_array_from_value
reverse operation of avr_regbit_get_array
5 files changed:
simavr/sim/avr_watchdog.c
simavr/sim/avr_watchdog.h
simavr/sim/sim_avr.c
simavr/sim/sim_avr.h
simavr/sim/sim_regbit.h