From 6ee3f018e3dd4e68e7e77c65770cef4756a8a2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Sun, 9 Apr 2017 18:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=87=E5=87=86=E4=B8=B2?= =?UTF-8?q?=E5=8F=A3=E8=AE=BE=E5=A4=87=E9=85=8D=E7=BD=AE=E5=92=8CSpi?= =?UTF-8?q?=E5=8F=A3=E8=AE=BE=E5=A4=87=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Device/SerialPort.h | 12 ++++++++++++ Device/Spi.h | 10 ++++++++++ Drivers/Esp8266/Esp8266.h | 11 ----------- Drivers/W5500.h | 9 --------- 4 files changed, 22 insertions(+), 20 deletions(-) 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