22 Au1500Serial::Au1500Serial() : m_pRegs(0)
25 Au1500Serial::~Au1500Serial()
31 m_pRegs =
reinterpret_cast<serial *
>(KSEG1(nBaseAddr));
33 char Au1500Serial::read()
35 while (!(m_pRegs->autoflow & 0x1))
37 return static_cast<char>(m_pRegs->rxdata);
39 char Au1500Serial::readNonBlock()
41 if (m_pRegs->autoflow & 0x1)
42 return m_pRegs->rxdata;
46 void Au1500Serial::write(
char c)
48 while (!(m_pRegs->autoflow & 0x20))
50 m_pRegs->txdata =
static_cast<uint8_t
>(c);
virtual void setBase(uintptr_t nBaseAddr)