The k project

Serial Driver

Description

Before the USB arrived, we used Serial port to communicate with devices. As soon as this function is written, you can use the printf() function provided by the SDK.

Syscall interface

NAME
    write - send the data on a serial port
SYNOPSIS
    int write(const char* buf, size_t count)
DESCRIPTION
    write() sends up to count bytes from the buffer to the serial port COM1
RETURN VALUE
    write() returns the number of bytes sent or -1 if an error occured.

Notes

References