spi_drv.h 225 B

1234567891011
  1. #ifndef SPI_DRV_H_INCLUDED
  2. #define SPI_DRV_H_INCLUDED
  3. #include <stdint.h>
  4. void spi_init(int polarity, int phase);
  5. void spi_write(const char byte);
  6. uint8_t spi_read(void);
  7. void spi_cs_on(void);
  8. void spi_cs_off(void);
  9. #endif