Revision 6
some more advances in func 1
lab2.c | ||
---|---|---|
29 | 29 |
return 0; |
30 | 30 |
} |
31 | 31 |
|
32 |
int(timer_test_read_config)(uint8_t timer, enum timer_status_field field) { |
|
33 |
/* To be implemented by the students */ |
|
34 |
|
|
32 |
int(timer_test_read_config)(uint8_t timer, enum timer_status_field field){ |
|
35 | 33 |
uint8_t state = 0; |
36 | 34 |
if(timer_get_conf(timer, &state)) return 1; |
37 |
//printf("%x\n", state); |
|
38 |
|
|
35 |
if(timer_display_conf(timer, state, field)) return 1; |
|
39 | 36 |
return 0; |
40 | 37 |
} |
41 | 38 |
|
Also available in: Unified diff