Quadrotor from scratch
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.

19 lines
366 B

/* 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 */