1 #ifndef HARDWARE_IO_PS2_H 2 #define HARDWARE_IO_PS2_H 13 typedef enum { PS2_TIMEOUT_ERR = 1, PS2_INVALID_PORT_ERR } ps2_error_t;
17 uint8_t port1_intr : 1;
18 uint8_t port2_intr : 1;
21 uint8_t port1_clock : 1;
22 uint8_t port2_clock : 1;
23 uint8_t port1_transl : 1;
25 } __attribute__((packed)) bits;
32 uint8_t ps2_write_device(ps2_port_t port, uint8_t command);
33 uint8_t ps2_read_device(ps2_port_t port, ps2_error_t* err);