arm: async uart writes & fixes

This commit is contained in:
2022-05-17 10:17:56 -07:00
parent e9f623e754
commit e39cdc5709
13 changed files with 232 additions and 190 deletions

View File

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