From 575c725f998b166f1d286a2664aa3d6061d337fe Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 19 Aug 2018 11:26:05 +0200 Subject: cleanup com1 driver and doxygen --- driver/serial.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'driver/serial.c') diff --git a/driver/serial.c b/driver/serial.c index f402d0c..1a36bf5 100644 --- a/driver/serial.c +++ b/driver/serial.c @@ -1,9 +1,7 @@ #define FOOLOS_MODULE_NAME "serial" -// https://wiki.osdev.org/Serial_Ports +#include "serial.h" #define PORT 0x3f8 /* COM1 */ - -#include "lib/logger/log.h" void serial_init() { @@ -15,7 +13,7 @@ void serial_init() { x86_outb(PORT + 2, 0xC7); // Enable FIFO, clear them, with 14-byte threshold x86_outb(PORT + 4, 0x0B); // IRQs enabled, RTS/DSR set - log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"COM 1 - initialized"); +// log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"COM 1 - initialized"); } int serial_received() { -- cgit v1.2.3