X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fbetty.c;h=f3e08ce2304fa06cd380ac3ccc247e6e7b0e7e9a;hb=afe6191925fbdac90169ed8a463bd9928276a863;hp=68c86f7b319aad9f785e283cb337eb0440a61907;hpb=e013de8b92ff7ba9cf70c7c8669c023a315f1348;p=my-code%2Farm.git diff --git a/betty/betty.c b/betty/betty.c index 68c86f7..f3e08ce 100644 --- a/betty/betty.c +++ b/betty/betty.c @@ -172,15 +172,19 @@ u8 uart0_get_byte(void) { int main() { - char buf="betty - live from the flash at 0x80000000! ;)\r\n"; + char buf[]="betty - live from the flash at 0x80000000! ;)\r\n"; + u8 byte; pll_init(); uart0_init(); ext_mem_bank_init(); pin_select_init(); - while(1) + while(1) { + byte=uart0_get_byte(); uart0_send_string(buf); + uart0_send_byte(byte); + } return 0; }