www.beck-ipc.com

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


pfe_enable_pio

Enable used programmable I/O pins. Define which pins are inputs and which are outputs. This function can be called several times for definition of different PIO pins. With repeated selection of the same pin, the definition made last is valid. The selection of a PIO pin can be cancelled by calling the appropriate PFE function that causes the respective PIO pin to be used for another purpose (e.g. function pfe_enable_pcs for PIO[2..6] pins).

void pfe_enable_pio ( unsigned short pio, unsigned char mode );

Parameters

pio

PIO pin number, [0..13]

mode

Mode
    0 = Only read PIO state
    1 = Input without pullup/pulldown
    2 = Input with pullup (not PIO13)
    3 = Input with pulldown (only for PIO3 and PIO13)
    4 = Output init value = High
    5 = Output init value = Low

Return Value

-- none --.

Comments

Used pins:
    PIO[0..13]
Excluded pins:
    All other functionality on the selected PIO pin.

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