diff options
author | Federico Fissore <f.fissore@arduino.cc> | 2013-01-28 11:37:51 +0100 |
---|---|---|
committer | Federico Fissore <f.fissore@arduino.cc> | 2013-01-28 11:37:51 +0100 |
commit | 5c67c7e5c674a572dd99e9d0d8c19c718c9985bc (patch) | |
tree | 1f22ba2385ad22eca306d67793c0827451f2b50a /bootloaders/caterina/Caterina.h | |
parent | c453e0a32e7adf5e7bab7bfb7c8f7a21e30ca563 (diff) | |
parent | c6287dd6ac33544179a6544b8f3f55a396ec6608 (diff) |
Merge branch 'ide-1.5.x' into lib-1.5
Diffstat (limited to 'bootloaders/caterina/Caterina.h')
-rw-r--r-- | 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 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. */
|