FreeCalypso > hg > freecalypso-tools
annotate target-utils/flash-boot-test/watchdog.c @ 488:cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 21 May 2019 20:55:19 +0000 |
| parents | |
| children | 3d7b546c710c |
| rev | line source |
|---|---|
|
488
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #include "types.h" |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 void |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 cmd_watchdog_disable() |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 { |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 /* stop/disable the watchdog timer */ |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 *(volatile u16 *)0xFFFFF804 = 0xF5; |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 *(volatile u16 *)0xFFFFF804 = 0xA0; |
|
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 } |
