mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-02-16 12:43:00 +00:00
21 lines
268 B
C
21 lines
268 B
C
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "console.h"
|
|
|
|
#define HELLO_WORLD "Hello World\n"
|
|
|
|
int main(void)
|
|
{
|
|
console_init();
|
|
|
|
puts(HELLO_WORLD);
|
|
|
|
while (1) {
|
|
unsigned char c = getchar();
|
|
putchar(c);
|
|
if (c == 13) // if CR send LF
|
|
putchar(10);
|
|
}
|
|
}
|