增加标准串口设备配置和Spi口设备配置

This commit is contained in:
大石头 2017-04-09 18:03:45 +08:00
parent 3323b60583
commit 6ee3f018e3
4 changed files with 22 additions and 20 deletions

View File

@ -87,4 +87,16 @@ private:
void OnWrite2(); void OnWrite2();
}; };
// 串口设备配置
class SerialConfig
{
public:
COM Com;
int Baudrate;
Pin Power;
Pin Reset;
Pin LowPower;
};
#endif #endif

View File

@ -73,4 +73,14 @@ public:
} }
}; };
// Spi设备配置
class SpiConfig
{
public:
SPI Spi;
Pin Irq;
Pin Reset;
};
#endif #endif

View File

@ -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

View File

@ -97,13 +97,4 @@ private:
void OnIRQ(); void OnIRQ();
}; };
// W5500配置
class W5500Config
{
public:
SPI Spi;
Pin Irq;
Pin Reset;
};
#endif #endif