|
|
@ -25,7 +25,7 @@ public: |
|
|
|
size_t write(uint8_t c); |
|
|
|
size_t write(uint8_t c); |
|
|
|
size_t write(const uint8_t *buffer, size_t size); |
|
|
|
size_t write(const uint8_t *buffer, size_t size); |
|
|
|
|
|
|
|
|
|
|
|
void set_device_path(char *path); |
|
|
|
void set_device_path(const char *path); |
|
|
|
|
|
|
|
|
|
|
|
virtual void _timer_tick(void); |
|
|
|
virtual void _timer_tick(void); |
|
|
|
|
|
|
|
|
|
|
@ -58,7 +58,7 @@ private: |
|
|
|
uint64_t _last_write_time;
|
|
|
|
uint64_t _last_write_time;
|
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
char *device_path; |
|
|
|
const char *device_path; |
|
|
|
volatile bool _initialised; |
|
|
|
volatile bool _initialised; |
|
|
|
// we use in-task ring buffers to reduce the system call cost
|
|
|
|
// we use in-task ring buffers to reduce the system call cost
|
|
|
|
// of ::read() and ::write() in the main loop
|
|
|
|
// of ::read() and ::write() in the main loop
|
|
|
|