diff options
Diffstat (limited to 'driver')
| -rw-r--r-- | driver/serial.c | 4 | ||||
| -rw-r--r-- | driver/serial.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/driver/serial.c b/driver/serial.c index 4e43251..16b3b6c 100644 --- a/driver/serial.c +++ b/driver/serial.c @@ -1,3 +1,5 @@ +#ifndef FOOLOS_LOG_OFF + #include "serial.h" #include "asm_x86.h" // provides x86_inb() and x86_outb() @@ -36,3 +38,5 @@ void serial_write(uint8_t a) while (is_transmit_empty() == 0); x86_outb(PORT,a); } + +#endif diff --git a/driver/serial.h b/driver/serial.h index bf56f80..cd76707 100644 --- a/driver/serial.h +++ b/driver/serial.h @@ -1,6 +1,7 @@ #ifndef FOOLOS_SERIAL_H #define FOOLOS_SERIAL_H + /** * @file * MINIMALISTIC SERIAL PORT DRIVER for COM1 @@ -36,4 +37,5 @@ uint8_t serial_read(); /** write one byte from COM1 (blocking) **/ void serial_write(uint8_t a); + #endif |
