UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
wdt.c
Go to the documentation of this file.
1 
11 #include "board.h"
12 #include "../gpio.h"
13 #include "../delay.h"
14 
15 #include "../wdt.h"
16 
17 /* WDT description struct */
18 typedef struct WDT {
19  uint8_t gpio;
20 } WDT;
21 
22 static WDT wdt = { GPIO_PF4 };
23 
26 void WDT_kick(void)
27 {
28  /* 10uS Pulse (WDT wants minimum of 3uS) */
29  GPIO_set(wdt.gpio);
30  Delay_us(10);
31  GPIO_reset(wdt.gpio);
32 }
33 
Definition: wdt.c:18
void Delay_us(uint32_t microseconds)
Definition: delay.c:24
void WDT_kick(void)
Definition: wdt.c:19
void GPIO_set(uint8_t gpio_num)
Definition: gpio.c:13
void GPIO_reset(uint8_t gpio_num)
Definition: gpio.c:18