www.beck-ipc.com

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


pfe_enable_external_dma

Enables DRQ pin to start DMA transfer.

int pfe_enable_external_dma ( unsigned char channel );

SC1x Parameters

channel
DRQ channel:
0 = DRQ0
1 = DRQ1

SC1x3 Parameters

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

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 a CHIP.INI entry.   COM uses DRQ1, EXT uses DRQ0.

SC1x Comments

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

SC1x3 Comments

Used pins:
    DRQ[0..3]

Excluded pins:
    If DRQ0: PIO12
    If DRQ1: PIO29
    If DRQ2: PIO7
    If DRQ3: PIO8

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