Project

General

Profile

Revision 23

better prototype for timer_int_handler

View differences:

timer.c
5 5

  
6 6
#include "i8254.h"
7 7

  
8
int no_interrupts = 0;
9

  
8 10
int (timer_set_frequency)(uint8_t timer, uint32_t freq) {
9 11

  
10 12
    // Frequencies out this range are not supported (by limitation of hardware)
......
62 64
}
63 65

  
64 66
void (timer_int_handler)() {
65
    int no_interrupts = 0; //should be the global
66

  
67 67
    no_interrupts++;
68 68
}
69 69

  

Also available in: Unified diff