@CHIP-RTOS C Library V2.00 - Hardware API
hal_stop_dma
Stop DMA transfer int hal_stop_dma ( unsigned char channel ); Parameters
channel
- DMA channel:
0 = DRQ0
1 = DRQ1
Return Value
- 0: Success
-1: Invalid DMA channel
-2: DMA channel used for serial interface
Comments
- Stops a DMA transfer (disables the DMA controller). The transfer
could be continued by first calling
hal_get_dma_info to gather
the current DMA state and then passing this state information
to hal_start_dma to
resume the transfer.
See Also
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
|