spi.h 321 B

12345678910111213
  1. #ifndef SPI_H
  2. #define SPI_H
  3. #include "stdint.h"
  4. void SPI0_Init(void); //函数声明
  5. uint8_t SPI0_ReadWriteByte(uint8_t txd); //函数声明
  6. void SPI0_Write(uint8_t *wdata, uint16_t datalen); //函数声明
  7. void SPI0_Read(uint8_t *rdata, uint16_t datalen); //函数声明
  8. #endif