1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2011-01-13     weety      first version
9  */
10 
11 #ifndef AT91_PIT_H
12 #define AT91_PIT_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #define AT91_PIT_MR     (AT91_PIT + 0x00)   /* Mode Register */
19 #define     AT91_PIT_PITIEN     (1 << 25)       /* Timer Interrupt Enable */
20 #define     AT91_PIT_PITEN      (1 << 24)       /* Timer Enabled */
21 #define     AT91_PIT_PIV        (0xfffff)       /* Periodic Interval Value */
22 
23 #define AT91_PIT_SR     (AT91_PIT + 0x04)   /* Status Register */
24 #define     AT91_PIT_PITS       (1 << 0)        /* Timer Status */
25 
26 #define AT91_PIT_PIVR       (AT91_PIT + 0x08)   /* Periodic Interval Value Register */
27 #define AT91_PIT_PIIR       (AT91_PIT + 0x0c)   /* Periodic Interval Image Register */
28 #define     AT91_PIT_PICNT      (0xfff << 20)       /* Interval Counter */
29 #define     AT91_PIT_CPIV       (0xfffff)       /* Inverval Value */
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif
36 
37