Rev 519 | Rev 532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 519 | Rev 521 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** Interval Timer driver. */ |
29 | /** Interval Timer driver. */ |
30 | 30 | ||
31 | #include <arch/drivers/it.h> |
31 | #include <arch/drivers/it.h> |
- | 32 | #include <arch/drivers/keyboard.h> |
|
32 | #include <arch/interrupt.h> |
33 | #include <arch/interrupt.h> |
33 | #include <arch/register.h> |
34 | #include <arch/register.h> |
34 | #include <arch/asm.h> |
35 | #include <arch/asm.h> |
35 | #include <arch/barrier.h> |
36 | #include <arch/barrier.h> |
36 | #include <time/clock.h> |
37 | #include <time/clock.h> |
37 | 38 | ||
38 | void keyboard(void); |
- | |
39 | 39 | ||
40 | /** Initialize Interval Timer. */ |
40 | /** Initialize Interval Timer. */ |
41 | void it_init(void) |
41 | void it_init(void) |
42 | { |
42 | { |
43 | cr_itv_t itv; |
43 | cr_itv_t itv; |
Line 63... | Line 63... | ||
63 | { |
63 | { |
64 | eoi_write(EOI); |
64 | eoi_write(EOI); |
65 | itm_write(itc_read() + IT_DELTA); /* program next interruption */ |
65 | itm_write(itc_read() + IT_DELTA); /* program next interruption */ |
66 | srlz_d(); /* propagate changes */ |
66 | srlz_d(); /* propagate changes */ |
67 | clock(); |
67 | clock(); |
68 | keyboard(); |
68 | poll_keyboard(); |
69 | } |
69 | } |