diff options
author | Cristian Maglie <c.maglie@bug.st> | 2012-12-10 15:55:05 +0100 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2012-12-10 15:55:05 +0100 |
commit | 433090f18b6218319fe0a721c24e1dc69285ea3e (patch) | |
tree | e7dc4da5b6ff077f1bc255350506dfc0bf87c6c3 /variants/leonardo/pins_arduino.h | |
parent | c453e0a32e7adf5e7bab7bfb7c8f7a21e30ca563 (diff) | |
parent | e624b841b3b5d22f6e9cb7ec515beb47f96f46f2 (diff) |
Merged 1.0.3
Diffstat (limited to 'variants/leonardo/pins_arduino.h')
-rw-r--r-- | variants/leonardo/pins_arduino.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/variants/leonardo/pins_arduino.h b/variants/leonardo/pins_arduino.h index 42f2dd1..2c7f837 100644 --- a/variants/leonardo/pins_arduino.h +++ b/variants/leonardo/pins_arduino.h @@ -90,6 +90,9 @@ #undef OCR2_6 #undef OCR2_7 +#define NUM_DIGITAL_PINS 30 +#define NUM_ANALOG_INPUTS 12 + #define TX_RX_LED_INIT DDRD |= (1<<5), DDRB |= (1<<0) #define TXLED0 PORTD |= (1<<5) #define TXLED1 PORTD &= ~(1<<5) @@ -204,7 +207,7 @@ const uint16_t PROGMEM port_to_input_PGM[] = { (uint16_t) &PINF, }; -const uint8_t PROGMEM digital_pin_to_port_PGM[30] = { +const uint8_t PROGMEM digital_pin_to_port_PGM[] = { PD, // D0 - PD2 PD, // D1 - PD3 PD, // D2 - PD1 @@ -241,7 +244,7 @@ const uint8_t PROGMEM digital_pin_to_port_PGM[30] = { PD, // D29 / D12 - A11 - PD6 }; -const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[30] = { +const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = { _BV(2), // D0 - PD2 _BV(3), // D1 - PD3 _BV(1), // D2 - PD1 @@ -278,7 +281,7 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[30] = { _BV(6), // D29 / D12 - A11 - PD6 }; -const uint8_t PROGMEM digital_pin_to_timer_PGM[16] = { +const uint8_t PROGMEM digital_pin_to_timer_PGM[] = { NOT_ON_TIMER, NOT_ON_TIMER, NOT_ON_TIMER, @@ -298,9 +301,24 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[16] = { NOT_ON_TIMER, NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, + NOT_ON_TIMER, }; -const uint8_t PROGMEM analog_pin_to_channel_PGM[12] = { +const uint8_t PROGMEM analog_pin_to_channel_PGM[] = { 7, // A0 PF7 ADC7 6, // A1 PF6 ADC6 5, // A2 PF5 ADC5 |