15 lines
278 B
C
15 lines
278 B
C
/**
|
|
* @file spi.h
|
|
* @brief 硬件 SPI 驱动 - 用于 NRF24L01 通信
|
|
* SPI 引脚:P1.5 (SCK), P1.3 (MOSI), P1.4 (MISO)
|
|
*/
|
|
#ifndef __SPI_H
|
|
#define __SPI_H
|
|
|
|
#include "stc8h.h"
|
|
#include <stdint.h>
|
|
|
|
void spi_init(void);
|
|
uint8_t spi_transfer(uint8_t data);
|
|
|
|
#endif |