www.beck-ipc.com

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


hal_start_dma

Start DMA mode.

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

Parameters

dmaInfo

Pointer to Dma_Info data structure containing DMA setup information.

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

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.

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