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: MODDMA.h
- Revision:
- 4:67f327b9278e
- Parent:
- 3:f61c089ca882
- Child:
- 5:c39b22fa0c60
--- a/MODDMA.h Tue Nov 23 15:08:21 2010 +0000 +++ b/MODDMA.h Tue Nov 23 15:33:30 2010 +0000 @@ -21,7 +21,7 @@ @file MODDMA.h @purpose Adds DMA controller and multiple transfer configurations - @version 1.0 + @version 1.1 @date Nov 2010 @author Andy Kirkham */ @@ -347,7 +347,7 @@ * @param ChannelNumber Type uin32_t, the channel number to test * @return bool true if enabled, false otherwise. */ - bool Enabled(uint32_t ChannelNumber) { Enabled((CHANNELS)(ChannelNumber & 0x7)); } + bool Enabled(uint32_t ChannelNumber) { return Enabled((CHANNELS)(ChannelNumber & 0x7)); } __INLINE uint32_t IntStat(uint32_t n) { return (1UL << n) & 0xFF; } __INLINE uint32_t IntTCStat_Ch(uint32_t n) { return (1UL << n) & 0xFF; } @@ -417,13 +417,6 @@ CHANNELS irqProcessingChannel(void) { return IrqProcessingChannel; } /** - * Gets which channel the ISR is currently servicing. - * - * @return uint32_t The current channel the ISR is servicing. - */ - uint32_t irqProcessingChannel(void) { return (uint32_t)(IrqProcessingChannel & 0x7); } - - /** * Sets which type of IRQ the ISR is making a callback for. * * *** USED INTERNALLY. DO NOT CALL FROM USER PROGRAMS ***