From 87e693605143d019f1f6eb7b5ca40d914765c2e0 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Mon, 5 Aug 2019 17:59:33 +0200 Subject: [PATCH] Added enabling of interrupts for interrupt driven uart --- hardware0.hpp | 2 ++ hardware1.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hardware0.hpp b/hardware0.hpp index 2ca13aa..cf733ca 100644 --- a/hardware0.hpp +++ b/hardware0.hpp @@ -2,6 +2,7 @@ #include +#include #include #include "config.hpp" @@ -131,6 +132,7 @@ class Hardware0 { detail::fnDataReg0EmptyIntHandler = dataRegEmptyIntHandler; HardwareImpl::init(); + sei(); } static void txByte(const data_t &byte) FORCE_INLINE diff --git a/hardware1.hpp b/hardware1.hpp index 185b24f..256b596 100644 --- a/hardware1.hpp +++ b/hardware1.hpp @@ -2,6 +2,7 @@ #include +#include #include #include "config.hpp" @@ -135,6 +136,7 @@ class Hardware1 { detail::fnDataReg1EmptyIntHandler = dataRegEmptyIntHandler; HardwareImpl::init(); + sei(); } static void txByte(const data_t &byte) FORCE_INLINE