Merge into main the new state of the operating system/kernel #1
18
source/kernel-test/SerialTest.cpp
Normal file
18
source/kernel-test/SerialTest.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
void test_serial(){
|
||||
/** Serial test **/
|
||||
kterm_writestring("Writing to COM1 serial port:");
|
||||
init_serial();
|
||||
write_serial('A');
|
||||
write_serial('B');
|
||||
write_serial('C');
|
||||
write_serial('D');
|
||||
write_serial('E');
|
||||
|
||||
char Character_received = read_serial();
|
||||
kterm_writestring("\n");
|
||||
kterm_writestring("received from COM 1: \n");
|
||||
kterm_put(Character_received);
|
||||
|
||||
kterm_writestring("\n");
|
||||
}
|
Loading…
Reference in New Issue
Block a user