1 /***********************************************************************
2 * FILE PURPOSE: Timer 64 local definitions
3 ***********************************************************************
4 * FILE NAME: t64hw.h
5 *
6 * @file t64h2.h
7 *
8 * @brief
9 * This file contains local definitions for the timer64 block
10 *
11 ***********************************************************************/
13 #ifndef T64HW_H
14 #define T64HW_H
16 #include "types.h"
17 #include "target.h"
20 /* Local registers */
21 #define treg(x) *((volatile unsigned int *)(TIMER0_BASE + (x)))
23 #define t64_tcr treg(0x20)
24 #define t64_tgcr treg(0x24)
25 #define t64_tim12 treg(0x10)
26 #define t64_tim34 treg(0x14)
27 #define t64_prd12 treg(0x18)
28 #define t64_prd34 treg(0x1c)
31 #define TIMER64_TCR_ONE_SHOT 0x40
32 #define TIMER64_TCR_DISABLE 0x00
34 #define TIMER64_TGCR_64 0x3
35 #define TIMER64_TGCR_DISABLE 0x0
40 #endif /* T64HW_H */