@CHIP-RTOS C Library V2.00 - Hardware API
pfe_enable_external_dma
Enables DRQ pin to start DMA transfer int pfe_enable_external_dma ( unsigned char channel ); Parameters
channel
- DRQ channel:
0 = DRQ0
1 = DRQ1
Return Value
- 0: no error
-1: invalid DRQ channel
-2: DMA channel is used for serial interface
Comments
- For using external DMA you have to disable the serial DMA mode. Do this with
an CHIP.INI entry.
COM uses DRQ1, EXT uses DRQ0.
Used pins:
DRQ[0..1]
Excluded pins:
if DRQ0: PIO1, INT5, default I²C-Bus pins, SPI
if DRQ1: PIO0, INT6, default I²C-Bus pins, SPI
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|