Touch emulation from usb cdc (#1706)

This commit is contained in:
Totoo 2024-01-03 14:06:29 +01:00 committed by GitHub
parent fbe7954f2e
commit 58bf60695d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 52 additions and 4 deletions

View file

@ -24,6 +24,8 @@
#include "ch.h"
#include "hal.h"
class EventDispatcher;
namespace portapack {
class USBSerial {
@ -32,6 +34,7 @@ class USBSerial {
void dispatch();
void on_channel_opened();
void on_channel_closed();
void setEventDispatcher(EventDispatcher* ed) { _eventDispatcher = ed; }
private:
void enable_xtal();
@ -43,6 +46,8 @@ class USBSerial {
bool connected{false};
bool shell_created{false};
EventDispatcher* _eventDispatcher = NULL;
};
} // namespace portapack