From 9b894de66983d66370f9dbb3b2a8c4c05f3b3e68 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Sun, 10 Oct 2010 11:21:16 +1100 Subject: [PATCH] fixed some defines that were spitting errors --- arduino.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino.h b/arduino.h index 25425e6..1b608ae 100644 --- a/arduino.h +++ b/arduino.h @@ -19,10 +19,10 @@ #define _READ(IO) (IO ## _RPORT & MASK(IO ## _PIN)) #define _WRITE(IO, v) do { if (v) { IO ## _WPORT |= MASK(IO ## _PIN); } else { IO ## _WPORT &= ~MASK(IO ## _PIN); }; } while (0) -#define _TOGGLE(IO) do { IO ## _RPORT = MASK(IO ## _PIN) } while (0) +#define _TOGGLE(IO) do { IO ## _RPORT = MASK(IO ## _PIN); } while (0) -#define _SET_INPUT(IO) do { IO ## _DDR &= ~MASK(IO ## _PIN) } while (0) -#define _SET_OUTPUT(IO) do { IO ## _DDR |= MASK(IO ## _PIN) } while (0) +#define _SET_INPUT(IO) do { IO ## _DDR &= ~MASK(IO ## _PIN); } while (0) +#define _SET_OUTPUT(IO) do { IO ## _DDR |= MASK(IO ## _PIN); } while (0) #define _GET_INPUT(IO) ((IO ## _DDR & MASK(IO ## _PIN)) == 0) #define _GET_OUTPUT(IO) ((IO ## _DDR & MASK(IO ## _PIN)) != 0)