Implemented peeking with and without data for interrupt and blocking mode

This commit is contained in:
2019-08-02 18:20:06 +02:00
parent 95963295e2
commit a3d76a138d
4 changed files with 67 additions and 7 deletions

View File

@@ -45,7 +45,12 @@ class Uart {
return Driver::rxByte(byte);
}
static typename Driver::data_t peek()
static bool peek(typename Driver::data_t &byte)
{
return Driver::peek(byte);
}
static bool peek()
{
return Driver::peek();
}