1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Changed pins definition in variants from constants to #defines.

This commit is contained in:
Cristian Maglie 2013-12-13 15:13:18 +01:00
parent c5880c2c1b
commit e2b15c852b

View File

@ -101,13 +101,13 @@ extern "C"{
(x==BOARD_SPI_SS1 ? 1 : \ (x==BOARD_SPI_SS1 ? 1 : \
(x==BOARD_SPI_SS2 ? 2 : 3))) (x==BOARD_SPI_SS2 ? 2 : 3)))
static const uint8_t SS = BOARD_SPI_SS0; #define SS BOARD_SPI_SS0
static const uint8_t SS1 = BOARD_SPI_SS1; #define SS1 BOARD_SPI_SS1
static const uint8_t SS2 = BOARD_SPI_SS2; #define SS2 BOARD_SPI_SS2
static const uint8_t SS3 = BOARD_SPI_SS3; #define SS3 BOARD_SPI_SS3
static const uint8_t MOSI = PIN_SPI_MOSI; #define MOSI PIN_SPI_MOSI
static const uint8_t MISO = PIN_SPI_MISO; #define MISO PIN_SPI_MISO
static const uint8_t SCK = PIN_SPI_SCK; #define SCK PIN_SPI_SCK
/* /*
* Wire Interfaces * Wire Interfaces
@ -146,29 +146,29 @@ static const uint8_t SCK = PIN_SPI_SCK;
/* /*
* Analog pins * Analog pins
*/ */
static const uint8_t A0 = 54; #define A0 54
static const uint8_t A1 = 55; #define A1 55
static const uint8_t A2 = 56; #define A2 56
static const uint8_t A3 = 57; #define A3 57
static const uint8_t A4 = 58; #define A4 58
static const uint8_t A5 = 59; #define A5 59
static const uint8_t A6 = 60; #define A6 60
static const uint8_t A7 = 61; #define A7 61
static const uint8_t A8 = 62; #define A8 62
static const uint8_t A9 = 63; #define A9 63
static const uint8_t A10 = 64; #define A10 64
static const uint8_t A11 = 65; #define A11 65
static const uint8_t DAC0 = 66; #define DAC0 66
static const uint8_t DAC1 = 67; #define DAC1 67
static const uint8_t CANRX = 68; #define CANRX 68
static const uint8_t CANTX = 69; #define CANTX 69
#define ADC_RESOLUTION 12 #define ADC_RESOLUTION 12
/* /*
* Complementary CAN pins * Complementary CAN pins
*/ */
static const uint8_t CAN1RX = 88; #define CAN1RX 88
static const uint8_t CAN1TX = 89; #define CAN1TX 89
// CAN0 // CAN0
#define PINS_CAN0 (90u) #define PINS_CAN0 (90u)