aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/iwdg.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-12-28 19:06:27 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-12-28 19:06:27 -0500
commitd1a8d832af96efdd1b399799dfae81517dc04dfa (patch)
tree3ce037909f3fdec9167557544c19a8c94726838b /libmaple/iwdg.h
parentd38ffc1c658476a5c28e3d70ac9abd300f914433 (diff)
downloadlibrambutan-d1a8d832af96efdd1b399799dfae81517dc04dfa.tar.gz
librambutan-d1a8d832af96efdd1b399799dfae81517dc04dfa.zip
nzmichaelh's pull request mods compile and upload.
renamed SysTick_Handler back to SysTickHandler since all of our linker magic/lanchon-stm32 depends on that name. added backup register support in order to test independent watchdog support; it seems to work. next major test target is DMA support.
Diffstat (limited to 'libmaple/iwdg.h')
-rw-r--r--libmaple/iwdg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmaple/iwdg.h b/libmaple/iwdg.h
index 6002867..4ab0ddf 100644
--- a/libmaple/iwdg.h
+++ b/libmaple/iwdg.h
@@ -41,6 +41,16 @@ extern "C"{
#define IWDG_RLR (IWDG_BASE + 0x8)
#define IWDG_SR (IWDG_BASE + 0xC)
+enum {
+ IWDG_PRE_4,
+ IWDG_PRE_8,
+ IWDG_PRE_16,
+ IWDG_PRE_32,
+ IWDG_PRE_64,
+ IWDG_PRE_128,
+ IWDG_PRE_256
+};
+
void iwdg_init(uint8 prescaler, uint16 reload);
void iwdg_feed(void);