15475011f4d421b81fd393b44b4c7a3ff41335cd
12 #define read16() 256*read_byte() + read_byte()
13 uint8_t read_byte(void);
14 void write_byte(uint8_t b
);
16 void write_dpin(uint8_t i
, bool b
);
17 bool read_dpin(uint8_t i
);
19 void write_apin(uint8_t i
, uint8_t a
);
20 uint8_t read_apin(uint8_t i
);
23 bool input_available(void);
30 #define debug(s, ...) {};
32 #define die(s, ...) {};
34 #define debug(s, ...) printf(s "\n", ##__VA_ARGS__);
35 #define pdie(s) {perror(s); exit(1);}
36 #define die(s, ...) {fprintf(stderr, s "\n", ##__VA_ARGS__); exit(1);}