You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
366 B
20 lines
366 B
10 years ago
|
/* spi.h */
|
||
|
|
||
|
#ifndef __SPI_H
|
||
|
#define __SPI_H
|
||
|
|
||
|
#include "types.h"
|
||
|
|
||
|
void init_spi(void);
|
||
|
void spi_speedup(void);
|
||
|
void spi_write_byte(char byte);
|
||
|
char spi_read_byte(void);
|
||
|
void spi_write_bytes(char *data, int len);
|
||
|
void spi_read_bytes(char *data, int len);
|
||
|
void spi_transaction_start(void);
|
||
|
void spi_transaction_stop(void);
|
||
|
void spi_drain(void);
|
||
|
|
||
|
|
||
|
#endif /* __SPI_H */
|