diff --git a/Device/SerialPort.h b/Device/SerialPort.h index 7112d271..72326bce 100644 --- a/Device/SerialPort.h +++ b/Device/SerialPort.h @@ -87,4 +87,16 @@ private: void OnWrite2(); }; +// 串口设备配置 +class SerialConfig +{ +public: + COM Com; + int Baudrate; + + Pin Power; + Pin Reset; + Pin LowPower; +}; + #endif diff --git a/Device/Spi.h b/Device/Spi.h index 47de4883..4616a904 100644 --- a/Device/Spi.h +++ b/Device/Spi.h @@ -73,4 +73,14 @@ public: } }; +// Spi设备配置 +class SpiConfig +{ +public: + SPI Spi; + + Pin Irq; + Pin Reset; +}; + #endif diff --git a/Drivers/Esp8266/Esp8266.h b/Drivers/Esp8266/Esp8266.h index eb297615..4bf7a49e 100644 --- a/Drivers/Esp8266/Esp8266.h +++ b/Drivers/Esp8266/Esp8266.h @@ -126,15 +126,4 @@ private: void OnReceive(Buffer& bs); }; -// Esp8266配置 -class Esp8266Config -{ -public: - COM Com; - int Baudrate; - Pin Power; - Pin Reset; - Pin LowPower; -}; - #endif diff --git a/Drivers/W5500.h b/Drivers/W5500.h index daea234a..03ff4b21 100644 --- a/Drivers/W5500.h +++ b/Drivers/W5500.h @@ -97,13 +97,4 @@ private: void OnIRQ(); }; -// W5500配置 -class W5500Config -{ -public: - SPI Spi; - Pin Irq; - Pin Reset; -}; - #endif