Final (not completed)
Embed:
(wiki syntax)
Show/hide line numbers
wdt.h
00001 00002 #ifndef WDT_H 00003 #define WDT_H 00004 00005 // Simple Library for Watchdog 00006 // --------------------------- 00007 00008 // Initialise watchdog using 1KHz clock 00009 // To prevent overwriting, only a single write to the COPC register possible 00010 // 00011 void wdt_1sec() ; // 1024ms, not windowed, DEFAULT 00012 void wdt_256ms(); // 256ms, not windowed 00013 void wdt_32ms(); // 32ms, not windowed 00014 00015 // Kick (feed, reload) our watchdog timer 00016 void wdt_kick_all(); // full sequence 00017 void wdt_kickA(); // first part 00018 void wdt_kickB(); // second part 00019 00020 #endif
Generated on Mon Aug 15 2022 04:00:49 by
1.7.2