aboutsummaryrefslogtreecommitdiffstats
path: root/src/initrd/init.c
blob: ad3be4124065529befca7c2f2a104c109b3448f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * @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\r");

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