Added enabling of interrupts for interrupt driven uart

This commit is contained in:
BlackMark 2019-08-05 17:59:33 +02:00
parent 1d633c538e
commit 87e6936051
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#include <stdint.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include "config.hpp"
@ -131,6 +132,7 @@ class Hardware0<mode, cfg, Driven::INTERRUPT> {
detail::fnDataReg0EmptyIntHandler = dataRegEmptyIntHandler;
HardwareImpl::init();
sei();
}
static void txByte(const data_t &byte) FORCE_INLINE

View File

@ -2,6 +2,7 @@
#include <stdint.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include "config.hpp"
@ -135,6 +136,7 @@ class Hardware1<mode, cfg, Driven::INTERRUPT> {
detail::fnDataReg1EmptyIntHandler = dataRegEmptyIntHandler;
HardwareImpl::init();
sei();
}
static void txByte(const data_t &byte) FORCE_INLINE