summaryrefslogtreecommitdiff
path: root/include/stdlib/stdlib.h
diff options
context:
space:
mode:
authorJuan Castillo <juan.castillo@arm.com>2014-07-08 17:20:41 +0100
committerJuan Castillo <juan.castillo@arm.com>2015-11-27 09:34:20 +0000
commit380419738304533366ebc9fd3462351215fd0c6f (patch)
tree9b52afe82c395da11f15614c7f370b26f886bf02 /include/stdlib/stdlib.h
parent9784dbda1147458598f1d586d8242332ada19b44 (diff)
Add a simple ARM SP805 watchdog driver
Based on SP805 Programmer's model (ARM DDI 0270B). This driver provides three public APIs: void sp805_start(uintptr_t base, unsigned long ticks); void sp805_stop(uintptr_t base); void sp805_refresh(uintptr_t base, unsigned long ticks); Upon start, the watchdog starts counting down from the number of ticks specified. When the count reaches 0 an interrupt is triggered. The watchdog restarts counting down from the number of ticks specified. If the count reaches 0 again, the system is reset. A mechanism to handle the interrupt has not been implemented. Instead, the API to refresh the watchdog should be used instead to prevent a system reset. Change-Id: I799d53f8d1213b10b341a4a67fde6486e89a3dab
Diffstat (limited to 'include/stdlib/stdlib.h')
0 files changed, 0 insertions, 0 deletions