www.beck-ipc.com

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


pfe_enable_bus

Initialize data bus I/O mask and ALE usage. The I/O mask defines which data bits on the bus are inputs and which are outputs. The mask bit for bi-directional data bus lines (read/write) should be set to '1'.

void pfe_enable_bus ( unsigned short mask, unsigned char ale );

Parameters

mask

Data bus mask
Bit 0 = 0: Data bus bit 0 is input, 1: is output
Bit 1 = 0: Data bus bit 1 is input, 1: is output
:
:
Bit 7 = 0: Data bus bit 7 is input, 1: is output
Bit 8..15 not used (for future extensions)

ale

0: Disable ALE,   1: Enable ALE

Return Value

-- none --.

Comments

Pins used:
    ALE, AD[0..7], RD#, WR#
Excluded pins:
    if ALE is used, then PCS0# is not available.

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