#ifndef INPUT_H #define INPUT_H #include static inline uint8_t poll_keys(void) { return (port_b_data & 0x7C) >> 2; } enum keys { KEY1 = 0x01, KEY2 = 0x02, KEY3 = 0x04, KEY4 = 0x08, KEY5 = 0x10 }; extern struct fifo input_fifo; #endif // INPUT_H