source: rtems/bsps/arm/rtl22xx/btimer/lpc_timer.h @ e0dd8a5a

5
Last change on this file since e0dd8a5a was e0dd8a5a, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 10:08:42

bsps: Move benchmark timer to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[744d6174]1#ifndef __LPC_TIMER_H
2#define __LPC_TIMER_H
3
4/*************************************************************************
5 *
6 *    File name   : Timer.h
7 *
8 **************************************************************************/
9
10/* Timer Control register bit descriptions */
11#define TCR_ENABLE_BIT  0
12#define TCR_RESET_BIT   1
13
[359e537]14// The channel name which is used in matching, in fact they represent
15// corresponding Match Register
[744d6174]16#define CH_MAXNUM       4
17#define CH0             0
18#define CH1             1
19#define CH2             2
20#define CH3             3
21
[359e537]22// The channel name which is used in capturing, in fact they represent
23// corresponding Capture Register
[744d6174]24#define CPCH_MAXNUM     4
25#define CPCH0           0
26#define CPCH1           1
27#define CPCH2           2
28#define CPCH3           3
29
30//The actions when matching
31#define TimerAction_Interrupt   0x1
32#define TimerAction_ResetTimer  0x2
33#define TimerAction_StopTimer   0x4
34
35//Interrupt source type
36#define TIMERMR0Int     0x01
37#define TIMERMR1Int     0x02
38#define TIMERMR2Int     0x04
39#define TIMERMR3Int     0x08
40#define TIMERCR0Int     0x10
41#define TIMERCR1Int     0x20
42#define TIMERCR2Int     0x40
43#define TIMERCR3Int     0x80
44
45#define TIMERALLInt     0xFF
46
47#endif //__LPC_Timer_H
48
Note: See TracBrowser for help on using the repository browser.