UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
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 
void Delay_ms(uint32_t milliseconds)
Definition: delay.c:19
void LED_off(uint8_t led_num)
Definition: led.c:20
int main(void)
Runs all module tests.
Definition: test.c:19
void Board_init(void)
Definition: board.c:13
void WDT_kick(void)
Definition: wdt.c:19
void LED_on(uint8_t led_num)
Definition: led.c:15