First commit, Vystem v0.1
This commit is contained in:
11
shelter/lib/include/cpu/serial.h
Normal file
11
shelter/lib/include/cpu/serial.h
Normal file
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
#ifndef SH_LIB_SERIAL_H
|
||||
#define SH_LIB_SERIAL_H
|
||||
#include "std/type.h"
|
||||
#include "std/status.h"
|
||||
#define SH_SERIAL_PORT_COM1 0x3F8
|
||||
// Load serial port setting
|
||||
void sh_serial_load_serial_port_setting(sh_bool is_disabled);
|
||||
// Send safely (wait for (SH_SERIAL_PORT_COM1+5) & 0x20 to be at 1) a byte
|
||||
void sh_serial_send_byte(sh_uint8 b);
|
||||
#endif
|
||||
Reference in New Issue
Block a user