Added enabling of interrupts for interrupt driven uart
This commit is contained in:
parent
1d633c538e
commit
87e6936051
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user