mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-21 05:42:29 +08:00
27e3460b88
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / A9 :components/dfs.cfg (push) Has been cancelled
utest_auto_run / A9 :components/lwip.cfg (push) Has been cancelled
utest_auto_run / A9 :components/netdev.cfg (push) Has been cancelled
utest_auto_run / A9 :cpp11/cpp11.cfg (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/mem.cfg (push) Has been cancelled
33 lines
693 B
C
33 lines
693 B
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2011-12-20 GuEe-GUI first version
|
|
*/
|
|
|
|
#ifndef __GTIMER_H__
|
|
#define __GTIMER_H__
|
|
|
|
#include <rtdef.h>
|
|
|
|
void rt_hw_gtimer_init(void);
|
|
void rt_hw_gtimer_local_enable(void);
|
|
void rt_hw_gtimer_local_disable(void);
|
|
|
|
void rt_hw_gtimer_enable();
|
|
|
|
rt_inline void rt_hw_gtimer_disable(void)
|
|
{
|
|
__asm__ volatile ("msr CNTP_CTL_EL0, xzr":::"memory");
|
|
}
|
|
|
|
void rt_hw_set_gtimer_val(rt_uint64_t value);
|
|
rt_uint64_t rt_hw_get_gtimer_val();
|
|
rt_uint64_t rt_hw_get_cntpct_val();
|
|
rt_uint64_t rt_hw_get_gtimer_frq();
|
|
|
|
#endif /* __GTIMER_H__ */
|