21 #include "pedigree/kernel/utilities/StaticString.h" 27 HostedSerial::HostedSerial() : m_File(-1), m_nFileNumber(0)
31 HostedSerial::~HostedSerial()
42 m_nFileNumber = nBaseAddr;
49 s.append(m_nFileNumber);
52 open(static_cast<const char *>(s), O_TRUNC | O_CREAT | O_WRONLY, 0644);
55 char HostedSerial::read()
61 char HostedSerial::readNonBlock()
66 void HostedSerial::write(
char c)
69 ::write(m_File, buf, 1);
72 bool HostedSerial::isConnected()
virtual void setBase(uintptr_t nBaseAddr)