www.beck-ipc.com

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


spi_init

Init the SPI Interface

void spi_init ( unsigned int mode, char clock,
                char dataIn, char dataOut );

Parameters

mode

must be '0'

clock

Number of the pio which should be used as clock pin

dataIn

Number of the pio which should be used as data in pin

dataOut

Number of the pio which should be used as data out pin

Return Value

-- none --.

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