www.beck-ipc.com

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


pfe_enable_timer

Enable external timer inputs (TMRIN0, TMRIN1 ) or timer outputs (TMROUT0, TMROUT1 ). If on a given timer the external input is selected, then that timer's external output is not available and vice-versa.

void pfe_enable_timer ( unsigned short mode );

Parameters

mode

Mode
    Bit 0..1 = 10 Enable TMRIN0
             = 11 Enable TMROUT0
    Bit 2..3 = 10 Enable TMRIN1
             = 11 Enable TMROUT1
    Bit 4..15 = don't care

Return Value

-- none --.

Comments

Used pins:
    TMRIN[0..1], TMROUT[0..1]

Excluded pins:
    if TMRIN0:   A0, PCS1#, PIO4, TMROUT0
    if TMRIN1:   A[1..2], PCS5#, TMROUT1
    if TMROUT0:   PIO13, INT0, cascaded interrupt controller, TMRIN0
    if TMROUT1:   A[1..2], PCS5#, TMRIN1, PIO3

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