feat(core): implement Linux-grade architecture (printk with loglevels, list.h, errno.h, procfs, devfs, slab cache, CMOS RTC & 16550A UART serial)
This commit is contained in:
1 parent
2bbeb3f345
commit
1832e7ecff
19 files changed
+805
-6
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#ifndef AIRLYS_SERIAL_H
|
||||
#define AIRLYS_SERIAL_H
|
||||
|
||||
#include <airlys/types.h>
|
||||
|
||||
#define COM1_PORT 0x3F8
|
||||
|
||||
/* Initialize 16550A UART Serial Port (COM1) */
|
||||
void serial_init(void);
|
||||
|
||||
/* Write a single character to serial port */
|
||||
void serial_putchar(char c);
|
||||
|
||||
/* Write a string to serial port */
|
||||
void serial_puts(const char* str);
|
||||
|
||||
#endif /* AIRLYS_SERIAL_H */
|
||||
Reference in new issue
Block a user