Revision 62
utils.h on lab2
utils.c | ||
---|---|---|
14 | 14 |
return 0; |
15 | 15 |
} |
16 | 16 |
|
17 |
#ifdef LAB3 |
|
18 |
uint32_t sys_inb_counter = 0; |
|
19 |
#endif |
|
20 |
|
|
17 | 21 |
int (util_sys_inb)(int port, uint8_t *value) { |
18 | 22 |
if(value == NULL) return 1; |
19 | 23 |
uint32_t n = 0; |
20 | 24 |
if(sys_inb(port, &n)) return 1; |
21 | 25 |
*value = n; |
26 |
#ifdef LAB3 |
|
27 |
++sys_inb_counter; |
|
28 |
#endif |
|
22 | 29 |
return 0; |
23 | 30 |
} |
Also available in: Unified diff