UoS³ Flight Computer Firmware
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Groups
Pages
src
main
demo_blinky.c
1
8
#include "../firmware.h"
9
10
int
main
(
void
)
11
{
12
Board_init
();
13
WDT_kick
();
14
15
while
(1)
16
{
17
LED_on
(LED_B);
18
19
/* On period */
20
Delay_ms
(500);
21
WDT_kick
();
22
23
LED_off
(LED_B);
24
25
/* Off period */
26
Delay_ms
(500);
27
WDT_kick
();
28
}
29
}
30
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
LED_on
void LED_on(uint8_t led_num)
Definition:
led.c:15
Generated by
1.8.6