summaryrefslogtreecommitdiff
path: root/src/app/sysinfo/main.cc
blob: ce5d1ec949349cea051fa44eafd6203bceabb1bd (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright 2020 Birte Kristina Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
#include "driver/uptime.h"

void loop(void)
{
	static unsigned char done = 0;

	if (!done) {
		kout << "sizeof(char) = " << sizeof(char) << endl;
		kout << "sizeof(short) = " << sizeof(short) << endl;
		kout << "sizeof(int) = " << sizeof(int) << endl;
		kout << "sizeof(long int) = " << sizeof(long int) << endl;
		kout << "sizeof(long long) = " << sizeof(long long) << endl;
		kout << "sizeof(float) = " << sizeof(float) << endl;
		kout << "sizeof(double) = " << sizeof(double) << endl;
		done = 1;
	}
}

int main(void)
{
	arch.setup();
	gpio.setup();
	kout.setup();

	kout << "Hello, World!" << endl;

	arch.idle_loop();

	return 0;
}