arm: add host uart driver tests

All host tests currently pass
Some async refactors may not work well on device, will try later
This commit is contained in:
2023-06-02 23:33:01 -07:00
parent 1f2f08e525
commit f274749050
14 changed files with 494 additions and 97 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#ifndef __x86_64__
#include "aum1_cm1.h"
struct InterruptLock {
@@ -11,3 +12,12 @@ struct InterruptLock {
__set_PRIMASK(old_primask);
}
};
#else // __x86_64__
#include <mutex>
struct InterruptLock {
static std::recursive_mutex m;
InterruptLock() { m.lock(); }
~InterruptLock() { m.unlock(); }
};
#endif // __x86_64__