tick.h 406 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018/10/28 Bernard The unify RISC-V porting code.
  9. */
  10. #ifndef TICK_H__
  11. #define TICK_H__
  12. /* timer clock is 24 MHZ */
  13. #ifndef TIMER_CLK_FREQ
  14. #define TIMER_CLK_FREQ (24000000)
  15. #endif
  16. int tick_isr(void);
  17. int rt_hw_tick_init(void);
  18. #endif