UoS³ Flight Computer Firmware
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Groups
Pages
src
board
uos3-proto
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
WDT
Definition:
wdt.c:18
Delay_us
void Delay_us(uint32_t microseconds)
Definition:
delay.c:24
WDT_kick
void WDT_kick(void)
Definition:
wdt.c:19
GPIO_set
void GPIO_set(uint8_t gpio_num)
Definition:
gpio.c:13
GPIO_reset
void GPIO_reset(uint8_t gpio_num)
Definition:
gpio.c:18
Generated by
1.8.6