mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-02-07 00:27:22 +00:00
It makes things a bit more standard and a bit nicer to read without all those strlen(). Also console.c takes care of adding the carriage returns before the linefeeds. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
19 lines
224 B
C
19 lines
224 B
C
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "console.h"
|
|
|
|
#define HELLO_WORLD "Hello World\n"
|
|
|
|
int main(void)
|
|
{
|
|
potato_uart_init();
|
|
|
|
puts(HELLO_WORLD);
|
|
|
|
while (1) {
|
|
unsigned char c = getchar();
|
|
putchar(c);
|
|
}
|
|
}
|