IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ fossil_initmode()

int fossil_initmode ( int  port,
BOOL  dcd,
BOOL  txDMA,
BOOL  rxDMA 
)

Initialize the serial fossil driver for specified port.

Use this function to initialize the fossil interface for a specified port. The user must make sure that only one task opens a port. If this port is used for standard input or output (console), then stdin/stdout will be disabled for this port.

Parameters
portport number index: 0=UART1 ... , see FOSSIL_PORT
dcdDCD mode: if TRUE port uses DCD signal. Currently, not supported by any RTOS-LNX target processor. Should therefore be set to FALSE.
txDMADMA mode for sending: if TRUE sending is done in DMA mode.
rxDMADMA mode for receiving: if TRUE receiving is done in DMA mode.
Returns
On success 0x1954 (signature from Fossil driver), negative value if desired mode could not be setup or invalid port
Note
Sending and receiving via DMA is currently only supported by the SC1x5. However, the DMA mode on the SC1x5 cannot be selected independently for send and receive. Regardless whether the txDMA or rxDMA parameter is set to TRUE, the DMA mode will be activated for send AND receive.
Since
V0.80
Changes:
V1.14 - Add DMA mode
See also
fossil_deinit()





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:14 by Doxygen 1.8.13