Rev 47 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 47 | Rev 48 | ||
|---|---|---|---|
| Line 43... | Line 43... | ||
| 43 | // reset the dial positions |
43 | // reset the dial positions |
| 44 | for(i=0; i< MAX_DIALS; i++) |
44 | for(i=0; i< MAX_DIALS; i++) |
| 45 | { |
45 | { |
| 46 | dial_pos[i] = 0; |
46 | dial_pos[i] = 0; |
| 47 | } |
47 | } |
| 48 | dial_count[0] = __HAL_TIM_GET_COUNTER(&htim9) >> 1; |
48 | dial_count[0] = __HAL_TIM_GET_COUNTER(&htim9) >> 2; |
| 49 | dial_count[1] = __HAL_TIM_GET_COUNTER(&htim3) >> 1; |
49 | dial_count[1] = __HAL_TIM_GET_COUNTER(&htim3) >> 2; |
| 50 | } |
50 | } |
| 51 | 51 | ||
| 52 | 52 | ||
| 53 | // this is the interrupt handler , dealling with the switches |
53 | // this is the interrupt handler , dealling with the switches |
| 54 | void HandleSwitches(void) |
54 | void HandleSwitches(void) |