flashing works, sample betty fw announcing itself :)
[my-code/arm.git] / betty / betty.c
index 68c86f7..f3e08ce 100644 (file)
@@ -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;
 }