22 ArmVersatileSerial::ArmVersatileSerial()
26 ArmVersatileSerial::~ArmVersatileSerial()
34 char ArmVersatileSerial::read()
36 volatile uint32_t *dr =
reinterpret_cast<volatile uint32_t *
>(0x101f1000);
40 return static_cast<char>(c);
42 char ArmVersatileSerial::readNonBlock()
44 volatile uint32_t *dr =
reinterpret_cast<volatile uint32_t *
>(0x101f1000);
45 return static_cast<char>(*dr);
48 void ArmVersatileSerial::write(
char c)
50 volatile uint32_t *dr =
reinterpret_cast<volatile uint32_t *
>(0x101f1000);
53 *dr =
static_cast<uint32_t
>(c);
54 asm volatile(
"" :::
"memory");
virtual void setBase(uintptr_t nBaseAddr)