NOVA
Stripped down NOVA kernel for the OSY course
Loading...
Searching...
No Matches
Console_serial Class Reference

Public Member Functions

INIT void init ()
Public Member Functions inherited from Console
void vprintf (char const *format, va_list args)

Additional Inherited Members

Protected Attributes inherited from Console
bool initialized

Member Function Documentation

◆ init()

void Console_serial::init ( )
23{
24 extern unsigned __serial_base;
25 if (!__serial_base)
26 return;
27
28 base = __serial_base;
29
30 out (LCR, 0x80);
31 out (DLR_LO, 1);
32 out (DLR_HI, 0);
33 out (LCR, 3);
34 out (IER, 0);
35 out (FCR, 7);
36 out (MCR, 3);
37
38 initialized = true;
39}

The documentation for this class was generated from the following files: