www.beck-ipc.com

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


hal_start_dma

Start DMA mode

int hal_start_dma ( unsigned char channel, const Dma_Info far * dmaInfo );

Parameters

channel

DMA channel:
    0 = DRQ0
    1 = DRQ1

dmaInfo

Pointer to Dma_Info data structure containing DMA setup information.

Return Value

0:   Success
-1:   Invalid DMA channel
-2:   DMA channel used for serial interface

Comments

This function configures the specified DMA channel based on the contents of the provided dmaInfo structure.   Then the DMA channel is activated.

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