aboutsummaryrefslogtreecommitdiffstats
path: root/src/initrd/init.c
blob: dc88ff8e97272eb6a4370e77a5ef8373aea2c500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * @file test.c
 * Basic userland code to be loaded by stmos for program load testing.
 */

#include <stdio.h>
#include <gpio.h>
#include <syscalls.h>

int main(void)
{
	gpioMode(5, OUTPUT);

	printf("Hello, world!\n");

	while (1) {
		gpioWrite(5, 1);
		delay(1000);
		gpioWrite(5, 0);
		delay(500);
	}
	return 0;
}