UoS³ Flight Computer Firmware
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Groups
Pages
src
main
demo_watchdog.c
1
/* firmware.h contains all relevant headers */
2
3
/* A very simple example that blinks the on-board LED. */
4
5
// now modified to watchdog kick on interrupt
6
7
#include "../firmware.h"
8
9
int
main
(
void
)
10
{
11
Board_init
();
12
13
WDT_kick
();
14
15
LED_off
(LED_B);
16
Delay_ms
(1000);
// so can be clearly seen when watchdog kicking
17
18
setupwatchdoginterrupt();
// kick the watchdog on interrupt
19
20
while
(1) {}
21
}
Delay_ms
void Delay_ms(uint32_t milliseconds)
Definition:
delay.c:19
LED_off
void LED_off(uint8_t led_num)
Definition:
led.c:20
main
int main(void)
Runs all module tests.
Definition:
test.c:19
Board_init
void Board_init(void)
Definition:
board.c:13
WDT_kick
void WDT_kick(void)
Definition:
wdt.c:19
Generated by
1.8.6