Rev 8327 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8327 | maxcodehac | 1 | #ifndef _PXA255_TIMR_H_ |
2 | #define _PXA255_TIMR_H_ |
||
3 | |||
4 | #include "mem.h" |
||
8331 | maxcodehac | 5 | #include "CPU.h" |
8327 | maxcodehac | 6 | #include "pxa255_IC.h" |
7 | |||
8 | |||
9 | /* |
||
10 | PXA255 OS timers controller |
||
11 | |||
12 | PURRPOSE: timers are useful for stuff :) |
||
13 | |||
14 | */ |
||
15 | |||
16 | #define PXA255_TIMR_BASE 0x40A00000UL |
||
17 | #define PXA255_TIMR_SIZE 0x00010000UL |
||
18 | |||
19 | |||
20 | typedef struct{ |
||
21 | |||
22 | Pxa255ic* ic; |
||
23 | |||
24 | UInt32 OSMR[4]; //Match Register 0-3 |
||
25 | UInt32 OIER; //Interrupt Enable |
||
26 | UInt32 OWER; //Watchdog enable |
||
27 | UInt32 OSCR; //Counter Register |
||
28 | UInt32 OSSR; //Status Register |
||
29 | |||
30 | }Pxa255timr; |
||
31 | |||
32 | Boolean pxa255timrInit(Pxa255timr* timr, ArmMem* physMem, Pxa255ic* ic); |
||
33 | void pxa255timrTick(Pxa255timr* timr); |
||
34 | |||
35 | |||
36 | #endif |
||
37 |