Revision 3:d0fc1ce5e516, committed 2011-02-13
- Comitter:
- jp
- Date:
- Sun Feb 13 02:18:50 2011 +0000
- Parent:
- 2:98b11b7dd7b2
- Commit message:
Changed in this revision
colors.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/colors.h Sun Feb 13 02:12:32 2011 +0000 +++ b/colors.h Sun Feb 13 02:18:50 2011 +0000 @@ -314,8 +314,11 @@ #define COLOR_INIT() LPC_GPIO0->FIODIR |= COLOR_MASK; #define COLOR_SET(value) do { \ - LPC_GPIO0->FIOMASK = ~COLOR_MASK; \ - LPC_GPIO0->FIOPIN = COLOR_VAR_MASK[value]; \ + LPC_GPIO0->FIOCLR = COLOR_MASK; \ + LPC_GPIO0->FIOSET = COLOR_VAR_MASK[value]; \ + +// LPC_GPIO0->FIOMASK = ~COLOR_MASK; \ +// LPC_GPIO0->FIOPIN = COLOR_VAR_MASK[value]; \ } while(0) #endif \ No newline at end of file