arm: async uart writes & fixes
This commit is contained in:
@@ -5,10 +5,7 @@
|
||||
struct InterruptLock {
|
||||
bool was_locked;
|
||||
|
||||
InterruptLock()
|
||||
: was_locked(__get_PRIMASK() != 0) {
|
||||
__disable_irq();
|
||||
}
|
||||
InterruptLock() : was_locked(__get_PRIMASK() != 0) { __disable_irq(); }
|
||||
|
||||
~InterruptLock() {
|
||||
if (!was_locked) {
|
||||
|
||||
Reference in New Issue
Block a user