at91_pit.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef AT91_PIT_H
  11. #define AT91_PIT_H
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #define AT91_PIT_MR (AT91_PIT + 0x00) /* Mode Register */
  16. #define AT91_PIT_PITIEN (1 << 25) /* Timer Interrupt Enable */
  17. #define AT91_PIT_PITEN (1 << 24) /* Timer Enabled */
  18. #define AT91_PIT_PIV (0xfffff) /* Periodic Interval Value */
  19. #define AT91_PIT_SR (AT91_PIT + 0x04) /* Status Register */
  20. #define AT91_PIT_PITS (1 << 0) /* Timer Status */
  21. #define AT91_PIT_PIVR (AT91_PIT + 0x08) /* Periodic Interval Value Register */
  22. #define AT91_PIT_PIIR (AT91_PIT + 0x0c) /* Periodic Interval Image Register */
  23. #define AT91_PIT_PICNT (0xfff << 20) /* Interval Counter */
  24. #define AT91_PIT_CPIV (0xfffff) /* Inverval Value */
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif