diff options
author | Zachary Eveland <zeveland@blacklabel-development.com> | 2012-11-23 16:09:32 -0500 |
---|---|---|
committer | Zachary Eveland <zeveland@blacklabel-development.com> | 2012-11-23 16:09:32 -0500 |
commit | 8fb58612a01430dd796de9bb3705e5f8380da747 (patch) | |
tree | ac9b583ed7771cac3639a28f5cd819a122796da1 /bootloaders/caterina/Caterina.h | |
parent | bb6569d0695eef174a190a4c0fd570deb55ecfc2 (diff) |
Caterina changes to support Micro. includes newly rebuilt version of the bootloader merged with Blink produced using 1.0.2
Diffstat (limited to 'bootloaders/caterina/Caterina.h')
-rwxr-xr-x | bootloaders/caterina/Caterina.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bootloaders/caterina/Caterina.h b/bootloaders/caterina/Caterina.h index f8251d4..5ce80fa 100755 --- a/bootloaders/caterina/Caterina.h +++ b/bootloaders/caterina/Caterina.h @@ -69,10 +69,17 @@ #define L_LED_OFF() PORTC &= ~(1<<7)
#define L_LED_ON() PORTC |= (1<<7)
#define L_LED_TOGGLE() PORTC ^= (1<<7)
- #define TX_LED_OFF() PORTD |= (1<<5)
- #define TX_LED_ON() PORTD &= ~(1<<5)
- #define RX_LED_OFF() PORTB |= (1<<0)
- #define RX_LED_ON() PORTB &= ~(1<<0)
+ #if DEVICE_PID == 0x0037 // polarity of the RX and TX LEDs is reversed on the Micro
+ #define TX_LED_OFF() PORTD &= ~(1<<5)
+ #define TX_LED_ON() PORTD |= (1<<5)
+ #define RX_LED_OFF() PORTB &= ~(1<<0)
+ #define RX_LED_ON() PORTB |= (1<<0)
+ #else
+ #define TX_LED_OFF() PORTD |= (1<<5)
+ #define TX_LED_ON() PORTD &= ~(1<<5)
+ #define RX_LED_OFF() PORTB |= (1<<0)
+ #define RX_LED_ON() PORTB &= ~(1<<0)
+ #endif
/* Type Defines: */
/** Type define for a non-returning pointer to the start of the loaded application in flash memory. */
|