|
|
@ -1,6 +1,6 @@
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
/* -*- mode: c++ -*-
|
|
|
|
* kaleidoscope::device::Base -- Kaleidoscope device Base class
|
|
|
|
* kaleidoscope::device::Base -- Kaleidoscope device Base class
|
|
|
|
* Copyright (C) 2017, 2018, 2019 Keyboard.io, Inc
|
|
|
|
* Copyright (C) 2017-2021 Keyboard.io, Inc
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it under
|
|
|
|
* This program is free software: you can redistribute it and/or modify it under
|
|
|
|
* the terms of the GNU General Public License as published by the Free Software
|
|
|
|
* the terms of the GNU General Public License as published by the Free Software
|
|
|
@ -73,6 +73,13 @@ class Base {
|
|
|
|
class NoOpSerial {
|
|
|
|
class NoOpSerial {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
NoOpSerial() {}
|
|
|
|
NoOpSerial() {}
|
|
|
|
|
|
|
|
void begin(uint32_t baud) {}
|
|
|
|
|
|
|
|
size_t print(...) {}
|
|
|
|
|
|
|
|
size_t println(...) {}
|
|
|
|
|
|
|
|
int peek() { return 0; }
|
|
|
|
|
|
|
|
long parseInt() { return 0; }
|
|
|
|
|
|
|
|
int available() { return 0; }
|
|
|
|
|
|
|
|
int read() { return 0; }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static NoOpSerial noop_serial_;
|
|
|
|
static NoOpSerial noop_serial_;
|
|
|
|