root / lab2 / timer.c @ 4
History | View | Annotate | Download (1.04 KB)
1 | 4 | up20180655 | #include <lcom/lcf.h> |
---|---|---|---|
2 | #include <lcom/timer.h> |
||
3 | |||
4 | #include <stdint.h> |
||
5 | |||
6 | #include "i8254.h" |
||
7 | |||
8 | int (timer_set_frequency)(uint8_t timer, uint32_t freq) {
|
||
9 | /* To be implemented by the students */
|
||
10 | printf("%s is not yet implemented!\n", __func__);
|
||
11 | |||
12 | return 1; |
||
13 | } |
||
14 | |||
15 | int (timer_subscribe_int)(uint8_t *bit_no) {
|
||
16 | /* To be implemented by the students */
|
||
17 | printf("%s is not yet implemented!\n", __func__);
|
||
18 | |||
19 | return 1; |
||
20 | } |
||
21 | |||
22 | int (timer_unsubscribe_int)() {
|
||
23 | /* To be implemented by the students */
|
||
24 | printf("%s is not yet implemented!\n", __func__);
|
||
25 | |||
26 | return 1; |
||
27 | } |
||
28 | |||
29 | void (timer_int_handler)() {
|
||
30 | /* To be implemented by the students */
|
||
31 | printf("%s is not yet implemented!\n", __func__);
|
||
32 | } |
||
33 | |||
34 | int (timer_get_conf)(uint8_t timer, uint8_t *st) {
|
||
35 | /* To be implemented by the students */
|
||
36 | printf("%s is not yet implemented!\n", __func__);
|
||
37 | |||
38 | return 1; |
||
39 | } |
||
40 | |||
41 | int (timer_display_conf)(uint8_t timer, uint8_t st,
|
||
42 | enum timer_status_field field) {
|
||
43 | /* To be implemented by the students */
|
||
44 | printf("%s is not yet implemented!\n", __func__);
|
||
45 | |||
46 | return 1; |
||
47 | } |