Fork of Andy Kirkham's MODDMA GPDMA Controller for Mbed OS 6
Read MODDMA for more info.
Diff: iomacros.h
- Revision:
- 12:1dfee7208043
- Parent:
- 8:cb4d323ce6fd
--- a/iomacros.h Sun Mar 13 12:46:55 2011 +0000 +++ b/iomacros.h Sun Mar 13 23:28:21 2011 +0000 @@ -71,6 +71,7 @@ /* p8 is P0.6 */ #define p8_SEL_MASK ~(3UL << 12) #define p8_SET_MASK (1UL << 6) +#define p8_CLR_MASK ~(p8_SET_MASK) #define p8_AS_OUTPUT LPC_PINCON->PINSEL0&=p8_SEL_MASK;LPC_GPIO0->FIODIR|=p8_SET_MASK #define p8_AS_INPUT LPC_GPIO0->FIOMASK &= p8_CLR_MASK; #define p8_SET LPC_GPIO0->FIOSET = p8_SET_MASK