cfenollosa_os-tutorial/23-fixes/cpu/ports.h

12 lines
252 B
C
Raw Normal View History

2015-08-17 16:41:38 +00:00
#ifndef PORTS_H
#define PORTS_H
2015-08-18 08:31:28 +00:00
#include <stdint.h>
2015-08-17 16:41:38 +00:00
2015-08-18 08:31:28 +00:00
unsigned char port_byte_in (uint16_t port);
void port_byte_out (uint16_t port, uint8_t data);
unsigned short port_word_in (uint16_t port);
void port_word_out (uint16_t port, uint16_t data);
2015-08-17 16:41:38 +00:00
#endif