refactor SPI handling and introduce SPI CS, forgotten files
This commit is contained in:
16
game-ctrl/spi.h
Normal file
16
game-ctrl/spi.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef _SPI_H_
|
||||
#define _SPI_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
typedef enum { e_SPI_CANVAS, e_SPI_DISPLAY, e_SPI_SOUND } t_SpiDeviceSelector;
|
||||
|
||||
void spiInit();
|
||||
void spiSendBegin(t_SpiDeviceSelector d);
|
||||
void spiSendEnd(t_SpiDeviceSelector d);
|
||||
void spiSendOctet(uint8_t v);
|
||||
|
||||
|
||||
|
||||
#endif // _SPI_H_
|
Reference in New Issue
Block a user