aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/diskloader/src/DiskLoader.cpp
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2012-01-10 15:38:26 -0500
committerZach Eveland <zeveland@blacklabel-development.com>2012-01-10 15:38:26 -0500
commitdbec0f0058fdf33ef95b57f130c5ff8986f5c359 (patch)
treedf5523573c00fed59c26cf36c5c17c9accc02a92 /bootloaders/diskloader/src/DiskLoader.cpp
parent648dd85e945a7e0a2db284987377a97936ee77e4 (diff)
made the bootloader's LED control macro names less offensive
TX_LED_OFF() instead of TXLED0, etc.
Diffstat (limited to 'bootloaders/diskloader/src/DiskLoader.cpp')
-rw-r--r--bootloaders/diskloader/src/DiskLoader.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/bootloaders/diskloader/src/DiskLoader.cpp b/bootloaders/diskloader/src/DiskLoader.cpp
index 09f59a7..f5df8a4 100644
--- a/bootloaders/diskloader/src/DiskLoader.cpp
+++ b/bootloaders/diskloader/src/DiskLoader.cpp
@@ -114,9 +114,9 @@ int main()
uint8_t MCUSR_state = MCUSR; // store the reason for the reset
MCUSR &= ~(1 << WDRF); // must clear the watchdog reset flag before disabling and reenabling WDT
wdt_disable();
- TXLED0;
- RXLED0;
- LED0;
+ TX_LED_OFF();
+ RX_LED_OFF();
+ L_LED_OFF();
if (MCUSR_state & (1<<WDRF) && (pgm_read_word(0) != -1)) {
StartSketch(); // if the reset was caused by WDT and if a sketch is already present then run the sketch instead of the bootloader
}
@@ -225,15 +225,15 @@ void LEDPulse()
p = 127-p;
p += p;
if (((u8)_pulse) > p)
- LED0;
+ L_LED_OFF();
else
- LED1;
+ L_LED_ON();
}
void StartSketch()
{
- TXLED0; // switch off the RX and TX LEDs before starting the user sketch
- RXLED0;
+ TX_LED_OFF(); // switch off the RX and TX LEDs before starting the user sketch
+ RX_LED_OFF();
UDCON = 1; // Detatch USB
UDIEN = 0;
asm volatile ( // Reset vector to run firmware