?? spi.h
字號:
// -------------------------- Header file for spi.c ----------------------------
#ifndef __SOFTWARE_SPI__
#define __SOFTWARE_SPI__
//#include <at89x52.h> // Header file for MCU
//#include "datatype.h" // Datatype Definition
//#include "delay.h" // Delay function
// --------------------------- Pins Definition ---------------------------------
#ifndef SPI_SCL
#define SPI_SCL P3_0
#define SPI_SDA P3_1
#endif
// -----------------------------------------------------------------------------
// --------------------------- Function Prototypes -----------------------------
// Send a byte to the SPI device
void spi_sendbyte(uint8 dByte);
// Read a byte from the SPI device
uint8 spi_readbyte(void);
// -----------------------------------------------------------------------------
#include "spi.c"
#endif
// -----------------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -