ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
main.c
Go to the documentation of this file.
1#include <libtock-sync/services/alarm.h>
2#include <stdio.h>
3#include <ulog.h>
4
5int main(void) {
6 // Print using provided logging library
7 ulog_info("Template Example");
8
9 // print "hello world!" every 2 seconds
10 // NOTE: The \n is required to flush the output buffer and see the print
11 // statements in the console.
12 while (1) {
13 printf("Hello world!\n");
14 libtocksync_alarm_delay_ms(2000);
15 }
16
17 return 0;
18}
int main()
Definition main.c:4