refactoring

This commit is contained in:
Maxim Devaev
2023-03-04 19:41:12 +02:00
parent 52ac8d93a1
commit 79e1b457b7
6 changed files with 14 additions and 7 deletions

View File

@@ -25,9 +25,10 @@
#include "driver.h"
#include "stdint.h"
namespace DRIVERS {
typedef void(*DataHandler)(const uint8_t * data, size_t len);
typedef void(*TimeoutHandler)();
typedef void (*DataHandler)(const uint8_t *data, size_t size);
typedef void (*TimeoutHandler)();
struct Connection : public Driver {
using Driver::Driver;

View File

@@ -21,12 +21,14 @@
#pragma once
#ifdef CMD_SERIAL
#include "connection.h"
namespace DRIVERS {
#ifdef Serial
#undef Serial
# undef Serial
#endif
struct Serial : public Connection {
Serial() : Connection(CONNECTION) {}