2023-03-10 10:32:50 +00:00
|
|
|
// This file is part of noxos and licensed under the MIT open source license
|
2023-01-25 21:36:34 +00:00
|
|
|
|
|
|
|
#ifndef NOX_IO_H
|
|
|
|
#define NOX_IO_H
|
|
|
|
|
|
|
|
#include "stdtypes.h"
|
|
|
|
|
|
|
|
// sends one byte to a port
|
|
|
|
void io_out_byte (uint16_t port, uint8_t data);
|
|
|
|
uint8_t io_in_byte (uint16_t port);
|
2023-04-22 08:48:15 +00:00
|
|
|
void io_out_word (uint16_t port, uint32_t data);
|
|
|
|
uint32_t io_in_word (uint16_t port);
|
2023-02-14 21:31:20 +00:00
|
|
|
void io_wait ();
|
2023-01-25 21:36:34 +00:00
|
|
|
|
|
|
|
#endif //NOX_IO_H
|