Implemented interrupt driven rx for uart1
This commit is contained in:
@@ -45,6 +45,11 @@ class Hardware {
|
||||
*Registers::CTRL_STAT_REG_C = controlRegC;
|
||||
}
|
||||
|
||||
static typename cfg::data_t rxByteInterrupt() FORCE_INLINE
|
||||
{
|
||||
return *Registers::IO_REG;
|
||||
}
|
||||
|
||||
static void txByteBlocking(const typename cfg::data_t &byte) FORCE_INLINE
|
||||
{
|
||||
while (!(*Registers::CTRL_STAT_REG_A & (1 << CtrlFlagsA::DATA_REG_EMPTY)))
|
||||
|
||||
Reference in New Issue
Block a user