aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/nuevo_diskloader/src/DiskLoader.cpp
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-10-21 18:03:34 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-10-21 18:03:34 -0400
commit4498bc7ca7d6817198948d583910dd806f7fb982 (patch)
tree18bebfd19c73399971b37720110174c4c35ed924 /bootloaders/nuevo_diskloader/src/DiskLoader.cpp
parent146922e21147baef802aba5cd3eb5ae0f75b545e (diff)
starting to port bootloader programming code - testing as I go
Diffstat (limited to 'bootloaders/nuevo_diskloader/src/DiskLoader.cpp')
-rw-r--r--bootloaders/nuevo_diskloader/src/DiskLoader.cpp21
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();
+ }
+ }
}
}