aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/caterina/Caterina.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2012-12-10 15:55:05 +0100
committerCristian Maglie <c.maglie@bug.st>2012-12-10 15:55:05 +0100
commit433090f18b6218319fe0a721c24e1dc69285ea3e (patch)
treee7dc4da5b6ff077f1bc255350506dfc0bf87c6c3 /bootloaders/caterina/Caterina.h
parentc453e0a32e7adf5e7bab7bfb7c8f7a21e30ca563 (diff)
parente624b841b3b5d22f6e9cb7ec515beb47f96f46f2 (diff)
Merged 1.0.3
Diffstat (limited to 'bootloaders/caterina/Caterina.h')
-rw-r--r--bootloaders/caterina/Caterina.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/bootloaders/caterina/Caterina.h b/bootloaders/caterina/Caterina.h
index f8251d4..5ce80fa 100644
--- 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. */