mirror of https://github.com/FOME-Tech/fome-fw.git
make some channels final
This commit is contained in:
parent
2436e7c105
commit
a85e6c777d
|
@ -19,7 +19,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
class CanTsChannel : public TsChannelBase {
|
||||
class CanTsChannel final : public TsChannelBase {
|
||||
public:
|
||||
CanTsChannel() : TsChannelBase("CAN") {
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ public:
|
|||
|
||||
#if HAL_USE_SERIAL
|
||||
// This class implements a ChibiOS Serial Driver
|
||||
class SerialTsChannel : public SerialTsChannelBase {
|
||||
class SerialTsChannel final : public SerialTsChannelBase {
|
||||
public:
|
||||
SerialTsChannel(SerialDriver& driver) : SerialTsChannelBase("Serial"), m_driver(&driver) { }
|
||||
|
||||
|
@ -102,7 +102,7 @@ private:
|
|||
|
||||
#if HAL_USE_UART
|
||||
// This class implements a ChibiOS UART Driver
|
||||
class UartTsChannel : public SerialTsChannelBase {
|
||||
class UartTsChannel final : public SerialTsChannelBase {
|
||||
public:
|
||||
UartTsChannel(UARTDriver& driver) : SerialTsChannelBase("UART"), m_driver(&driver) { }
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ static void do_connection() {
|
|||
connectionSocket = lwip_accept(listenerSocket, (sockaddr*)&remote, &size);
|
||||
}
|
||||
|
||||
class EthernetChannel : public TsChannelBase {
|
||||
class EthernetChannel final : public TsChannelBase {
|
||||
public:
|
||||
EthernetChannel()
|
||||
: TsChannelBase("Ethernet")
|
||||
|
|
|
@ -12,7 +12,7 @@ static_assert(SERIAL_USB_BUFFERS_SIZE >= BLOCKING_FACTOR + 10);
|
|||
|
||||
extern SerialUSBDriver EFI_CONSOLE_USB_DEVICE;
|
||||
|
||||
class UsbChannel : public TsChannelBase {
|
||||
class UsbChannel final : public TsChannelBase {
|
||||
public:
|
||||
UsbChannel(SerialUSBDriver& driver)
|
||||
: TsChannelBase("USB"), m_channel(reinterpret_cast<BaseChannel*>(&driver))
|
||||
|
|
Loading…
Reference in New Issue