This commit is contained in:
parent
17b3d7e492
commit
0c605626d3
1
Spi.h
1
Spi.h
|
@ -1,6 +1,7 @@
|
|||
#ifndef __SPI_H__
|
||||
#define __SPI_H__
|
||||
|
||||
#include "Sys.h"
|
||||
// SpiÀà
|
||||
class Spi
|
||||
{
|
||||
|
|
2
Sys.h
2
Sys.h
|
@ -37,9 +37,7 @@ public:
|
|||
byte MessagePort; // 消息口,默认0表示USART1
|
||||
uint ID[3]; // 芯片ID
|
||||
uint FlashSize; // 芯片Flash容量
|
||||
|
||||
void Init(); // 初始化系统
|
||||
|
||||
void Sleep(uint ms); // 毫秒级延迟
|
||||
void Delay(uint us); // 微秒级延迟
|
||||
void DisableInterrupts(); // 关闭中断
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#ifndef __NRF24L01_H__
|
||||
#define __NRF24L01_H__
|
||||
|
||||
#include "Sys.h"
|
||||
#include "Spi.h"
|
||||
//#include "Spi.h"
|
||||
|
||||
//使用哪个spi作为 nrf 通信口
|
||||
#define nRF2401_SPI SPI_3
|
||||
|
|
Loading…
Reference in New Issue