Initial commit - sync AliceRC to Gitea
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @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
|
||||
Reference in New Issue
Block a user