MyOS Kernel
serial.h File Reference

Go to the source code of this file.

Functions

void serial_init ()
 
void serial_putc (char c)
 
void serial_write_string (const char *s)
 
void serial_printf (const char *format,...)
 

Function Documentation

◆ serial_init()

void serial_init ( )

Initialize the serial driver

◆ serial_printf()

void serial_printf ( const char *  format,
  ... 
)

Printf, but to the serial port

Parameters
formatThe format string
...Arguments for the format string
Note
This function is provided by platform-independent code, a serial driver does not need to implement this.

◆ serial_putc()

void serial_putc ( char  c)

Write a character to the serial port

Parameters
cThe character to write

◆ serial_write_string()

void serial_write_string ( const char *  s)

Write a string to the serial port

Parameters
sThe string to write
Note
This function is provided by platform-independent code, a serial driver does not need to implement this.