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

10
arm/fake_uart.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
#include <cstdint>
#include <span>
#include "buffer.h"
buffer FakeUart_Drain(uint16_t size);
void FakeUart_Feed(std::span<const std::byte> data);
void FakeUart_Reset();