gadget-flash-extractor/spi_drv.h
Daniele Lacamera 7bbae2db46 Initial import
2019-05-24 09:26:55 +02:00

11 lines
225 B
C

#ifndef SPI_DRV_H_INCLUDED
#define SPI_DRV_H_INCLUDED
#include <stdint.h>
void spi_init(int polarity, int phase);
void spi_write(const char byte);
uint8_t spi_read(void);
void spi_cs_on(void);
void spi_cs_off(void);
#endif