12 lines
374 B
C
12 lines
374 B
C
// 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
|