arm_timer.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef __ASM_ARM_HARDWARE_ARM_TIMER_H
  2. #define __ASM_ARM_HARDWARE_ARM_TIMER_H
  3. #define TIMER_LOAD 0x00
  4. #define TIMER_VALUE 0x04
  5. #define TIMER_CTRL 0x08
  6. #define TIMER_CTRL_ONESHOT (1 << 0)
  7. #define TIMER_CTRL_32BIT (1 << 1)
  8. #define TIMER_CTRL_DIV1 (0 << 2)
  9. #define TIMER_CTRL_DIV16 (1 << 2)
  10. #define TIMER_CTRL_DIV256 (2 << 2)
  11. #define TIMER_CTRL_IE (1 << 5) /* Interrupt Enable (versatile only) */
  12. #define TIMER_CTRL_PERIODIC (1 << 6)
  13. #define TIMER_CTRL_ENABLE (1 << 7)
  14. #define TIMER_INTCLR 0x0c
  15. #define TIMER_RIS 0x10
  16. #define TIMER_MIS 0x14
  17. #define TIMER_BGLOAD 0x18
  18. #endif