at91_pit.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * File : at91_pit.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, RT-Thread Develop Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://openlab.rt-thread.com/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2011-01-13 weety first version
  13. */
  14. #ifndef AT91_PIT_H
  15. #define AT91_PIT_H
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. #define AT91_PIT_MR (AT91_PIT + 0x00) /* Mode Register */
  20. #define AT91_PIT_PITIEN (1 << 25) /* Timer Interrupt Enable */
  21. #define AT91_PIT_PITEN (1 << 24) /* Timer Enabled */
  22. #define AT91_PIT_PIV (0xfffff) /* Periodic Interval Value */
  23. #define AT91_PIT_SR (AT91_PIT + 0x04) /* Status Register */
  24. #define AT91_PIT_PITS (1 << 0) /* Timer Status */
  25. #define AT91_PIT_PIVR (AT91_PIT + 0x08) /* Periodic Interval Value Register */
  26. #define AT91_PIT_PIIR (AT91_PIT + 0x0c) /* Periodic Interval Image Register */
  27. #define AT91_PIT_PICNT (0xfff << 20) /* Interval Counter */
  28. #define AT91_PIT_CPIV (0xfffff) /* Inverval Value */
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif