You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microwatt/hello_world/hello_world.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);
}
}