123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #include "ch.h"
- #include "hal.h"
- static const WDGConfig wdgcfg = {
- STM32_IWDG_PR_64,
- STM32_IWDG_RL(1000)
- };
- int main(void) {
-
- halInit();
- chSysInit();
-
- wdgStart(&WDGD1, &wdgcfg);
-
- while (true) {
- wdgReset(&WDGD1);
- palToggleLine(LINE_LED4);
- chThdSleepMilliseconds(500);
- }
- return 0;
- }
|