migrate
This commit is contained in:
25
fw/n76e003/common/inc/spi.h
Normal file
25
fw/n76e003/common/inc/spi.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef SPI_H
|
||||
#define SPI_H
|
||||
|
||||
#include "N76E003.h"
|
||||
#include "Common.h"
|
||||
#include "Delay.h"
|
||||
#include "SFR_Macro.h"
|
||||
#include "Function_define.h"
|
||||
|
||||
/*
|
||||
* Initialize SPI
|
||||
*
|
||||
* Pinout:
|
||||
* SCK -> P1.0
|
||||
* MOSI -> P0.0
|
||||
* MISO -> P0.1
|
||||
* CS -> user defined
|
||||
*/
|
||||
void spi_init();
|
||||
|
||||
uint8_t spi_write(uint8_t data);
|
||||
|
||||
uint8_t spi_read();
|
||||
|
||||
#endif /* SPI_H */
|
||||
Reference in New Issue
Block a user