Moved ring buffer to it's own struct
This commit is contained in:
@@ -176,6 +176,13 @@ class Hardware {
|
||||
}
|
||||
};
|
||||
|
||||
template <typename data_t, uint8_t Size>
|
||||
struct RingBuffer {
|
||||
uint8_t head;
|
||||
uint8_t tail;
|
||||
data_t buf[Size];
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
|
||||
} // namespace uart
|
||||
|
||||
Reference in New Issue
Block a user