www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - Hardware API


hal_stop_dma

Stop DMA transfer.

int hal_stop_dma ( unsigned char channel );

SC1x Parameters

channel
DMA channel:
0 = DRQ0
1 = DRQ1

SC1x3 Parameters

channel
DMA channel:
    0 = DRQ0
    1 = DRQ1
    2 = DRQ2
    3 = DRQ3

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.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.02V1.00V1.00V0.90

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document