root / lab4 / utils.h @ 81
History | View | Annotate | Download (297 Bytes)
1 |
#ifndef UTILS_H_INCLUDED
|
---|---|
2 |
#define UTILS_H_INCLUDED
|
3 |
|
4 |
int(util_get_LSB)(uint16_t val, uint8_t *lsb);
|
5 |
|
6 |
int(util_get_MSB)(uint16_t val, uint8_t *msb);
|
7 |
|
8 |
#ifdef LAB3
|
9 |
uint32_t sys_inb_counter; |
10 |
#endif
|
11 |
|
12 |
int (util_sys_inb)(int port, uint8_t *value); |
13 |
|
14 |
int16_t abs16(int16_t x); |
15 |
|
16 |
#endif //UTILS_H_INCLUDED |