Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/drivers/spi/spi.c File Reference

#include <spi.h>
#include <stdio.h>
#include <cubeos.h>
#include <mc68332.h>
#include <qsm.h>

Include dependency graph for spi.c:

Go to the source code of this file.

Functions

int SPI_init ()
int SPI_resetcmd ()
int SPI_newcommand (unsigned char command)
int SPI_init_analog ()
int SPI_ReadAnalogIn (int chip, int channel)
void QSM_qspi_int ()

Variables

int _SPI_cmdcnt = 0


Function Documentation

void QSM_qspi_int  
 

Definition at line 108 of file spi.c.

int SPI_init  
 

Definition at line 10 of file spi.c.

References QSM_init, QSM_PQSPAR, readshort, SPI_CMDRAM, SPI_RDRAM, SPI_SPCR0, SPI_SPCR1, SPI_SPCR2, SPI_SPCR3, SPI_TDRAM, and writeshort.

int SPI_init_analog  
 

Definition at line 91 of file spi.c.

int SPI_newcommand unsigned char    command
 

Definition at line 80 of file spi.c.

References _SPI_cmdcnt, SPI_CMDRAM, and writebyte.

int SPI_ReadAnalogIn int    chip,
int    channel
 

Definition at line 100 of file spi.c.

References print.

int SPI_resetcmd  
 

Definition at line 73 of file spi.c.

References _SPI_cmdcnt, SPI_SPCR1, and writeshort.


Variable Documentation

int _SPI_cmdcnt = 0
 

Definition at line 7 of file spi.c.

Referenced by SPI_newcommand, and SPI_resetcmd.


Generated on Thu Feb 20 15:38:49 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002