aboutsummaryrefslogtreecommitdiff
path: root/variants/standard
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-12-13 15:09:40 +0100
committerCristian Maglie <c.maglie@bug.st>2013-12-13 15:09:40 +0100
commita0cd735f452109dabce48ff93eacb01e79e94167 (patch)
treead5aa12a36993fb6e542f5d9858c4bca1a0c44e3 /variants/standard
parented03068b0aece37fbecd88578593ab2343e720e3 (diff)
parenta2cc9674baccb1111645f3b094f7de9a50c01b5b (diff)
Merge branch 'pins-define' into ide-1.5.x
Diffstat (limited to 'variants/standard')
-rw-r--r--variants/standard/pins_arduino.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/variants/standard/pins_arduino.h b/variants/standard/pins_arduino.h
index 3d4a9f6..d0eb464 100644
--- a/variants/standard/pins_arduino.h
+++ b/variants/standard/pins_arduino.h
@@ -37,23 +37,23 @@
#define digitalPinHasPWM(p) ((p) == 3 || (p) == 5 || (p) == 6 || (p) == 9 || (p) == 10 || (p) == 11)
#endif
-static const uint8_t SS = 10;
-static const uint8_t MOSI = 11;
-static const uint8_t MISO = 12;
-static const uint8_t SCK = 13;
+#define SS 10
+#define MOSI 11
+#define MISO 12
+#define SCK 13
-static const uint8_t SDA = 18;
-static const uint8_t SCL = 19;
+#define SDA 18
+#define SCL 19
#define LED_BUILTIN 13
-static const uint8_t A0 = 14;
-static const uint8_t A1 = 15;
-static const uint8_t A2 = 16;
-static const uint8_t A3 = 17;
-static const uint8_t A4 = 18;
-static const uint8_t A5 = 19;
-static const uint8_t A6 = 20;
-static const uint8_t A7 = 21;
+#define A0 14
+#define A1 15
+#define A2 16
+#define A3 17
+#define A4 18
+#define A5 19
+#define A6 20
+#define A7 21
#define digitalPinToPCICR(p) (((p) >= 0 && (p) <= 21) ? (&PCICR) : ((uint8_t *)0))
#define digitalPinToPCICRbit(p) (((p) <= 7) ? 2 : (((p) <= 13) ? 0 : 1))