Modestus Moon OS
R4
CS 450 project
|
#include <stdint.h>
#include <string.h>
#include <core/io.h>
#include <core/serial.h>
#include <core/commhand.h>
#include <input.h>
Go to the source code of this file.
Macros | |
#define | NO_ERROR 0 |
Functions | |
int | init_serial (int device) |
int | serial_println (const char *msg) |
int | serial_print (const char *msg) |
int | set_serial_out (int device) |
int | set_serial_in (int device) |
void | clear_buff () |
void | return_cursor (int cursor_loc, int length) |
char * | serial_poll (char in_string[MAX_LENGTH]) |
Variables | |
int | serial_port_out = 0 |
int | serial_port_in = 0 |
#define NO_ERROR 0 |
Definition at line 16 of file serial.c.
Referenced by init_serial(), serial_print(), serial_println(), set_serial_in(), and set_serial_out().
void clear_buff | ( | ) |
int init_serial | ( | int | device | ) |
void return_cursor | ( | int | cursor_loc, |
int | length | ||
) |
char* serial_poll | ( | char | in_string[MAX_LENGTH] | ) |
Definition at line 114 of file serial.c.
References BACKSPACE, clear_buff(), COM1, DELETE, ESC, in_string, inb, NEW_LINE, RETURN, return_cursor(), serial_print(), and strcpy().
Referenced by init_commhand(), and shutdownFunc().
int serial_print | ( | const char * | msg | ) |
Definition at line 59 of file serial.c.
References NO_ERROR, outb, and serial_port_out.
Referenced by clear_buff(), do_isr(), getTime(), init_commhand(), pcbFunc(), return_cursor(), serial_poll(), shutdownFunc(), and version().
int serial_println | ( | const char * | msg | ) |
Definition at line 44 of file serial.c.
References NO_ERROR, outb, and serial_port_out.
Referenced by alloc(), clear_screen(), date(), do_isr(), do_reserved(), exec_comm(), help(), helpBlockPCB(), helpCreatePCB(), helpDate(), helpDeletePCB(), helpFunc(), helpGetDate(), helpGetTime(), helpLoadR3(), helpMCB(), helpMCBAllocate(), helpMCBFreeMem(), helpMCBInitHeap(), helpMCBIsEmpty(), helpMcbPrint(), helpMCBShowAllocated(), helpMCBShowFree(), helpPcb(), helpPcbPrint(), helpResumePCB(), helpSetDate(), helpSetPriority(), helpSetTime(), helpShowAllProcesses(), helpShowBlockedProcesses(), helpShowPCB(), helpShowReadyProcesses(), helpShutdown(), helpSuspendPCB(), helpTime(), helpUnblockPCB(), helpVersion(), idle(), klogv(), loadr3(), pcbFunc(), proc1(), proc2(), proc3(), proc4(), proc5(), setDate(), setTime(), shutdownFunc(), start_up_anim(), time(), and version().
int set_serial_in | ( | int | device | ) |
Definition at line 87 of file serial.c.
References NO_ERROR, and serial_port_in.
Referenced by kmain().
int set_serial_out | ( | int | device | ) |
Definition at line 75 of file serial.c.
References NO_ERROR, and serial_port_out.
Referenced by kmain().
int serial_port_in = 0 |
Definition at line 20 of file serial.c.
Referenced by set_serial_in().
int serial_port_out = 0 |
Definition at line 19 of file serial.c.
Referenced by serial_print(), serial_println(), and set_serial_out().