2022-12-03 12:07:44 +08:00
|
|
|
/*
|
2023-04-24 09:21:15 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2022-12-03 12:07:44 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2018/10/28 Bernard The unify RISC-V porting code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TICK_H__
|
|
|
|
#define TICK_H__
|
|
|
|
|
|
|
|
/* timer clock is 24 MHZ */
|
2023-04-24 09:21:15 +08:00
|
|
|
#ifndef TIMER_CLK_FREQ
|
2022-12-03 12:07:44 +08:00
|
|
|
#define TIMER_CLK_FREQ (24000000)
|
2023-04-24 09:21:15 +08:00
|
|
|
#endif
|
2022-12-03 12:07:44 +08:00
|
|
|
int tick_isr(void);
|
|
|
|
int rt_hw_tick_init(void);
|
|
|
|
|
|
|
|
#endif
|