Implemented interrupt driven rx for uart1

This commit is contained in:
2019-08-02 17:36:07 +02:00
parent b90da9bd9c
commit efe1446907
3 changed files with 36 additions and 5 deletions

View File

@@ -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)))