MODDMA GPDMA Controller New features: transfer pins to memory buffer under periodic timer control and send double buffers to DAC
Dependents: FirstTest WaveSim IO-dma-memmem DACDMAfuncgenlib ... more
Diff: iomacros.h
- Revision:
- 12:1dfee7208043
- Parent:
- 8:cb4d323ce6fd
diff -r 19009be5a0e7 -r 1dfee7208043 iomacros.h --- 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