diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-10-21 18:03:34 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-10-21 18:03:34 -0400 |
commit | 4498bc7ca7d6817198948d583910dd806f7fb982 (patch) | |
tree | 18bebfd19c73399971b37720110174c4c35ed924 /bootloaders/nuevo_diskloader/src | |
parent | 146922e21147baef802aba5cd3eb5ae0f75b545e (diff) |
starting to port bootloader programming code - testing as I go
Diffstat (limited to 'bootloaders/nuevo_diskloader/src')
-rw-r--r-- | bootloaders/nuevo_diskloader/src/DiskLoader.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/bootloaders/nuevo_diskloader/src/DiskLoader.cpp b/bootloaders/nuevo_diskloader/src/DiskLoader.cpp index efd386f..2c91367 100644 --- a/bootloaders/nuevo_diskloader/src/DiskLoader.cpp +++ b/bootloaders/nuevo_diskloader/src/DiskLoader.cpp @@ -68,9 +68,22 @@ int main() for (;;) { - L_LED_ON(); - _delay_ms(250); - L_LED_OFF(); - _delay_ms(250); +// L_LED_ON(); +// _delay_ms(250); +// L_LED_OFF(); +// _delay_ms(250); + u8* packet = _flashbuf; + u16 address = 0; + for (;;) + { +// u8 cmd = getch(); + if (Serial.available() > 0) { + u8 cmd = Serial.read(); + if (cmd == '0') + L_LED_OFF(); + if (cmd == '1') + L_LED_ON(); + } + } } } |