Files
super6502/sw/spi.h
Byron Lathi aca739338a Remove spi_word and replace with spi_deselect
Since the goal is to have the MAX3421E working, which uses multiple 8
bit transfers, we should support multiple 8 bit transfers instead of
trying to use 16 bit transfers.

When using spi_byte(), the device is automatically selected. After you
have made as many transfers as you want, you must deselect the device
with spi_deselect().
2022-03-10 14:43:49 -06:00

9 lines
111 B
C

#ifndef _SPI_H
#define _SPI_H
#include <stdint.h>
uint8_t spi_byte(uint8_t);
void spi_deselect(void);
#endif