Turnstone Operating System
|
port communication More...
#include <ports.h>
Functions | |
MODULE ("turnstone.kernel.hw.io.com") | |
uint8_t | serial_received (uint16_t port) |
checks data present at port More... | |
uint8_t | is_transmit_empty (uint16_t port) |
checks data can be sended More... | |
void | init_serial (uint16_t port) |
setups serial port More... | |
uint8_t | read_serial (uint16_t port) |
reads one byte from serial port More... | |
void | write_serial (uint16_t port, uint8_t data) |
writes one byte to serial port More... | |
port communication
the functions inside this file are for port communication. the in/out functions defined at header file as inline functions.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
void init_serial | ( | uint16_t | port | ) |
setups serial port
[in] | port | port to setups |
checks data can be sended
[in] | port | port to check |
it uses control port offset at +5 to check data can be sended.
reads one byte from serial port
[in] | port | port to read |
checks data present at port
[in] | port | port to check |
it uses control port offset at +5 to check data.