Project

General

Profile

Revision 5

implemented functions for 1st part

View differences:

lab2.c
30 30
}
31 31

  
32 32
int(timer_test_read_config)(uint8_t timer, enum timer_status_field field) {
33
  /* To be implemented by the students */
34
  printf("%s is not yet implemented!\n", __func__);
33
    /* To be implemented by the students */
35 34

  
36
  return 1;
35
    uint8_t state = 0;
36
    if(timer_get_conf(timer, &state)) return 1;
37
    //printf("%x\n", state);
38

  
39
    return 0;
37 40
}
38 41

  
39 42
int(timer_test_time_base)(uint8_t timer, uint32_t freq) {

Also available in: Unified diff