gadget-securevault/spi_drv.h

12 lines
225 B
C
Raw Normal View History

2019-10-27 07:30:03 +01:00
#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