projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flashing works, sample betty fw announcing itself :)
[my-code/arm.git]
/
betty
/
betty.c
diff --git
a/betty/betty.c
b/betty/betty.c
index
68c86f7
..
f3e08ce
100644
(file)
--- a/
betty/betty.c
+++ b/
betty/betty.c
@@
-172,15
+172,19
@@
u8 uart0_get_byte(void) {
int main() {
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();
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_string(buf);
+ uart0_send_byte(byte);
+ }
return 0;
}
return 0;
}