board_coretimer.h 910 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. * 2017-01-01 Urey first version
  9. */
  10. #ifndef _BOARD_CORETIMER_H_
  11. #define _BOARD_CORETIMER_H_
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #include <stdint.h>
  16. #define CK_TIMER_BASE (0xE000E000)
  17. #define CORET_CSR (volatile unsigned int *)(CK_TIMER_BASE + 0x10)
  18. #define CORET_RVR (volatile unsigned int *)(CK_TIMER_BASE + 0x14)
  19. #define CORET_CVR (volatile unsigned int *)(CK_TIMER_BASE + 0x18)
  20. #define CORET_CALIB (volatile unsigned int *)(CK_TIMER_BASE + 0x1c)
  21. /*
  22. * define the bits for TxControl
  23. */
  24. #define CORETIM_TXCONTROL_ENABLE (1UL << 0)
  25. #define CORETIM_TXCONTROL_INTMASK (1UL << 1)
  26. #define CORETIM_TXCONTROL_MODE (1UL << 16)
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* _BOARD_CORETIMER_H_ */