增加标准串口设备配置和Spi口设备配置
This commit is contained in:
parent
3323b60583
commit
6ee3f018e3
|
@ -87,4 +87,16 @@ private:
|
||||||
void OnWrite2();
|
void OnWrite2();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 串口设备配置
|
||||||
|
class SerialConfig
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
COM Com;
|
||||||
|
int Baudrate;
|
||||||
|
|
||||||
|
Pin Power;
|
||||||
|
Pin Reset;
|
||||||
|
Pin LowPower;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
10
Device/Spi.h
10
Device/Spi.h
|
@ -73,4 +73,14 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Spi设备配置
|
||||||
|
class SpiConfig
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
SPI Spi;
|
||||||
|
|
||||||
|
Pin Irq;
|
||||||
|
Pin Reset;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -126,15 +126,4 @@ private:
|
||||||
void OnReceive(Buffer& bs);
|
void OnReceive(Buffer& bs);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Esp8266配置
|
|
||||||
class Esp8266Config
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
COM Com;
|
|
||||||
int Baudrate;
|
|
||||||
Pin Power;
|
|
||||||
Pin Reset;
|
|
||||||
Pin LowPower;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -97,13 +97,4 @@ private:
|
||||||
void OnIRQ();
|
void OnIRQ();
|
||||||
};
|
};
|
||||||
|
|
||||||
// W5500配置
|
|
||||||
class W5500Config
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
SPI Spi;
|
|
||||||
Pin Irq;
|
|
||||||
Pin Reset;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue