![]() |
NMSIS-Core
Version 1.4.0
NMSIS-Core support for Nuclei processor-based devices
|
Functions that configure the Core System Timer. More...
Macros | |
#define | SysTimer_GetHartID() (__get_hart_index()) |
SysTimer_GetHartID() is used to get timer hartid which might not be the same as cpu hart id, for example, cpu hartid may be 1, but timer hartid may be 0, then timer hartid offset is 1. More... | |
#define | SysTimer_GetHartID_S() (__get_hart_index_s()) |
Functions | |
__STATIC_FORCEINLINE void | SysTimer_SetLoadValue (uint64_t value) |
Set system timer load value. More... | |
__STATIC_FORCEINLINE uint64_t | SysTimer_GetLoadValue (void) |
Get system timer load value. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetHartCompareValue (uint64_t value, unsigned long hartid) |
Set system timer compare value by hartid. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetCompareValue (uint64_t value) |
Set system timer compare value in machine mode. More... | |
__STATIC_FORCEINLINE uint64_t | SysTimer_GetHartCompareValue (unsigned long hartid) |
Get system timer compare value by hartid. More... | |
__STATIC_FORCEINLINE uint64_t | SysTimer_GetCompareValue (void) |
Get system timer compare value in machine mode. More... | |
__STATIC_FORCEINLINE void | SysTimer_Start (void) |
Enable system timer counter running. More... | |
__STATIC_FORCEINLINE void | SysTimer_Stop (void) |
Stop system timer counter running. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetControlValue (uint32_t mctl) |
Set system timer control value. More... | |
__STATIC_FORCEINLINE uint32_t | SysTimer_GetControlValue (void) |
Get system timer control value. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetHartSWIRQ (unsigned long hartid) |
Trigger or set software interrupt via system timer by hartid. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetSWIRQ (void) |
Trigger or set software interrupt via system timer in machine mode. More... | |
__STATIC_FORCEINLINE void | SysTimer_ClearHartSWIRQ (unsigned long hartid) |
Clear system timer software interrupt pending request by hartid. More... | |
__STATIC_FORCEINLINE void | SysTimer_ClearSWIRQ (void) |
Clear system timer software interrupt pending request in machine mode. More... | |
__STATIC_FORCEINLINE uint32_t | SysTimer_GetHartMsipValue (unsigned long hartid) |
Get system timer MSIP register value by hartid. More... | |
__STATIC_FORCEINLINE uint32_t | SysTimer_GetMsipValue (void) |
Get system timer MSIP register value in machine mode. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetHartMsipValue (uint32_t msip, unsigned long hartid) |
Set system timer MSIP register value by hartid. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetMsipValue (uint32_t msip) |
Set system timer MSIP register value in machine mode. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetCompareValue_S (uint64_t value) |
Set system timer smode compare value. More... | |
__STATIC_FORCEINLINE uint64_t | SysTimer_GetCompareValue_S (void) |
Get system timer smode compare value. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetHartSWIRQ_S (unsigned long hartid) |
Trigger or set supervisor mode software interrupt via system timer by hartid. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetSWIRQ_S (void) |
Trigger or set supervisor software interrupt via system timer. More... | |
__STATIC_FORCEINLINE void | SysTimer_ClearHartSWIRQ_S (unsigned long hartid) |
Clear system timer supervisor mode software interrupt pending request by hartid. More... | |
__STATIC_FORCEINLINE void | SysTimer_ClearSWIRQ_S (void) |
Clear system timer supervisor mode software interrupt pending request. More... | |
__STATIC_FORCEINLINE uint32_t | SysTimer_GetHartSsipValue (unsigned long hartid) |
Get system timer SSIP register value by hartid. More... | |
__STATIC_FORCEINLINE uint32_t | SysTimer_GetSsipValue (void) |
Get system timer SSIP register value. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetHartSsipValue (uint32_t ssip, unsigned long hartid) |
Set system timer SSIP register value by hartid. More... | |
__STATIC_FORCEINLINE void | SysTimer_SetSsipValue (uint32_t ssip) |
Set system timer SSIP register value. More... | |
__STATIC_FORCEINLINE void | SysTimer_SendIPI_S (unsigned long hartid) |
send ipi to target hart using Systimer Clint SSIP More... | |
__STATIC_FORCEINLINE void | SysTimer_ClearIPI_S (unsigned long hartid) |
clear ipi to target hart using Systimer Clint SSIP More... | |
__STATIC_FORCEINLINE void | SysTimer_EnableSSTC (void) |
Enable SSTC access right for supervisor mode. More... | |
__STATIC_FORCEINLINE void | SysTimer_DisableSSTC (void) |
Disable SSTC stimecmp csr access right for supervisor mode. More... | |
__STATIC_FORCEINLINE void | SysTimer_SoftwareReset (void) |
Do software reset request. More... | |
__STATIC_FORCEINLINE void | SysTimer_SendIPI (unsigned long hartid) |
send ipi to target hart using Systimer Clint MSIP More... | |
__STATIC_FORCEINLINE void | SysTimer_ClearIPI (unsigned long hartid) |
clear ipi to target hart using Systimer Clint MSIP More... | |
__STATIC_FORCEINLINE void | SysTimer_EnableSAccess (void) |
Enable supervisor mode systimer register read/write access right. More... | |
__STATIC_FORCEINLINE void | SysTimer_DisableSAccess (void) |
Disable supervisor mode systimer register read/write access right. More... | |
__STATIC_INLINE uint32_t | SysTick_Config (uint64_t ticks) |
System Tick Configuration. More... | |
__STATIC_INLINE uint32_t | SysTick_HartConfig (uint64_t ticks, unsigned long hartid) |
System Tick Configuration By hartid. More... | |
__STATIC_FORCEINLINE uint32_t | SysTick_Reload (uint64_t ticks) |
System Tick Reload. More... | |
__STATIC_FORCEINLINE uint32_t | SysTick_HartReload (uint64_t ticks, unsigned long hartid) |
System Tick Reload By hartid. More... | |
__STATIC_INLINE uint32_t | SysTick_Config_S (uint64_t ticks) |
System Tick Configuration in supervisor mode. More... | |
__STATIC_FORCEINLINE uint32_t | SysTick_Reload_S (uint64_t ticks) |
System Tick Reload in supervisor mode. More... | |
Functions that configure the Core System Timer.
#define SysTimer_GetHartID | ( | ) | (__get_hart_index()) |
SysTimer_GetHartID() is used to get timer hartid which might not be the same as cpu hart id, for example, cpu hartid may be 1, but timer hartid may be 0, then timer hartid offset is 1.
If defined __SYSTIMER_HARTID, it will use __SYSTIMER_HARTID as timer hartid, otherwise, it will use __get_hart_index(). The cpu hartid is get by using __get_hart_id function
Definition at line 127 of file core_feature_timer.h.
#define SysTimer_GetHartID_S | ( | ) | (__get_hart_index_s()) |
Definition at line 134 of file core_feature_timer.h.
__STATIC_INLINE uint32_t SysTick_Config | ( | uint64_t | ticks | ) |
System Tick Configuration.
Initializes the System Timer and its non-vector interrupt, and starts the System Tick Timer.
In our default implementation, the timer counter will be set to zero, and it will start a timer compare non-vector interrupt when it matchs the ticks user set, during the timer interrupt user should reload the system tick using SysTick_Reload function or similar function written by user, so it can produce period timer interrupt.
[in] | ticks | Number of ticks between two interrupts. |
Definition at line 834 of file core_feature_timer.h.
References ECLIC_EnableIRQ, ECLIC_NON_VECTOR_INTERRUPT, ECLIC_SetLevelIRQ, ECLIC_SetShvIRQ, SysTimer_GetLoadValue(), SysTimer_IRQn, and SysTimer_SetCompareValue().
__STATIC_INLINE uint32_t SysTick_Config_S | ( | uint64_t | ticks | ) |
System Tick Configuration in supervisor mode.
Initializes the system timer supervisor mode interrupt and registered as non-vector interrupt
The smode timecmp csr register will be set to proper value according to the ticks passed when it matchs the ticks user set, during the smode timer interrupt user should reload the system tick using SysTick_Reload_S function or similar function written by user, so it can produce period smode timer interrupt.
[in] | ticks | Number of ticks between two interrupts. |
Definition at line 967 of file core_feature_timer.h.
References __get_rv_time(), ECLIC_EnableIRQ_S, ECLIC_NON_VECTOR_INTERRUPT, ECLIC_SetLevelIRQ_S, ECLIC_SetShvIRQ_S, and SysTimer_SetCompareValue_S().
__STATIC_INLINE uint32_t SysTick_HartConfig | ( | uint64_t | ticks, |
unsigned long | hartid | ||
) |
System Tick Configuration By hartid.
Initializes the System Timer and its non-vector interrupt, and starts the System Tick Timer.
In our default implementation, the timer counter will be set to zero, and it will start a timer compare non-vector interrupt when it matchs the ticks user set, during the timer interrupt user should reload the system tick using SysTick_Reload function or similar function written by user, so it can produce period timer interrupt.
[in] | ticks | Number of ticks between two interrupts. |
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 874 of file core_feature_timer.h.
References ECLIC_EnableIRQ, ECLIC_NON_VECTOR_INTERRUPT, ECLIC_SetLevelIRQ, ECLIC_SetShvIRQ, SysTimer_GetLoadValue(), SysTimer_IRQn, and SysTimer_SetHartCompareValue().
__STATIC_FORCEINLINE uint32_t SysTick_HartReload | ( | uint64_t | ticks, |
unsigned long | hartid | ||
) |
System Tick Reload By hartid.
Reload the System Timer Tick when the MTIMECMP reached TIME value
[in] | ticks | Number of ticks between two interrupts. |
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 946 of file core_feature_timer.h.
References SysTimer_GetLoadValue(), and SysTimer_SetHartCompareValue().
__STATIC_FORCEINLINE uint32_t SysTick_Reload | ( | uint64_t | ticks | ) |
System Tick Reload.
Reload the System Timer Tick when the MTIMECMP reached TIME value
[in] | ticks | Number of ticks between two interrupts. |
Definition at line 910 of file core_feature_timer.h.
References SysTimer_GetLoadValue(), and SysTimer_SetCompareValue().
__STATIC_FORCEINLINE uint32_t SysTick_Reload_S | ( | uint64_t | ticks | ) |
System Tick Reload in supervisor mode.
Reload the System Timer Tick when the STIMECMP CSR reached TIME value
[in] | ticks | Number of ticks between two interrupts. |
Definition at line 990 of file core_feature_timer.h.
References __get_rv_time(), and SysTimer_SetCompareValue_S().
__STATIC_FORCEINLINE void SysTimer_ClearHartSWIRQ | ( | unsigned long | hartid | ) |
Clear system timer software interrupt pending request by hartid.
This function clear the system timer MSIP bit in MSIP register.
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 396 of file core_feature_timer.h.
References __SW(), SysTimer, SysTimer_CLINT_MSIP_BASE, and SysTimer_MSIP_MSIP_Msk.
Referenced by SysTimer_ClearSWIRQ().
__STATIC_FORCEINLINE void SysTimer_ClearHartSWIRQ_S | ( | unsigned long | hartid | ) |
Clear system timer supervisor mode software interrupt pending request by hartid.
This function clear the system timer SSIP bit in SSIP register.
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 589 of file core_feature_timer.h.
References __SW(), SysTimer, SysTimer_CLINT_SSIP_BASE, and SysTimer_SSIP_SSIP_Msk.
Referenced by SysTimer_ClearSWIRQ_S().
__STATIC_FORCEINLINE void SysTimer_ClearIPI | ( | unsigned long | hartid | ) |
clear ipi to target hart using Systimer Clint MSIP
This function clear ipi using clint timer's MSIP register.
[in] | hart | target hart |
Definition at line 780 of file core_feature_timer.h.
References __SW(), and SysTimer_CLINT_MSIP_BASE.
__STATIC_FORCEINLINE void SysTimer_ClearIPI_S | ( | unsigned long | hartid | ) |
clear ipi to target hart using Systimer Clint SSIP
This function clear ipi using clint timer's SSIP register.
[in] | hart | target hart |
Definition at line 705 of file core_feature_timer.h.
References __SW(), and SysTimer_CLINT_SSIP_BASE.
__STATIC_FORCEINLINE void SysTimer_ClearSWIRQ | ( | void | ) |
Clear system timer software interrupt pending request in machine mode.
This function clear the system timer MSIP bit in MSIP register.
Definition at line 415 of file core_feature_timer.h.
References SysTimer_ClearHartSWIRQ(), and SysTimer_GetHartID.
__STATIC_FORCEINLINE void SysTimer_ClearSWIRQ_S | ( | void | ) |
Clear system timer supervisor mode software interrupt pending request.
This function clear the system timer SSIP bit in SSIP register.
Definition at line 608 of file core_feature_timer.h.
References SysTimer_ClearHartSWIRQ_S(), and SysTimer_GetHartID_S.
__STATIC_FORCEINLINE void SysTimer_DisableSAccess | ( | void | ) |
Disable supervisor mode systimer register read/write access right.
This will make some systimer registers can not be accessed in supervisor mode.
Definition at line 803 of file core_feature_timer.h.
References SysTimer.
__STATIC_FORCEINLINE void SysTimer_DisableSSTC | ( | void | ) |
Disable SSTC stimecmp csr access right for supervisor mode.
This will disable SSTC stimecmp(h) csr register read/write access right in supervisor mode and make time(h) csr can not be read
Definition at line 734 of file core_feature_timer.h.
References __RV_CSR_CLEAR, CSR_MCOUNTEREN, CSR_MENVCFG, CSR_MENVCFGH, MCOUNTEREN_TIME, MENVCFG_STCE, and MENVCFGH_STCE.
__STATIC_FORCEINLINE void SysTimer_EnableSAccess | ( | void | ) |
Enable supervisor mode systimer register read/write access right.
This will make some systimer registers can be accessed in supervisor mode, which is reset state.
Definition at line 792 of file core_feature_timer.h.
References SysTimer.
__STATIC_FORCEINLINE void SysTimer_EnableSSTC | ( | void | ) |
Enable SSTC access right for supervisor mode.
This will enable SSTC stimecmp(h) csr register read/write access right in supervisor mode and make time(h) csr can be read
Definition at line 718 of file core_feature_timer.h.
References __RV_CSR_SET, CSR_MCOUNTEREN, CSR_MENVCFG, CSR_MENVCFGH, MCOUNTEREN_TIME, MENVCFG_STCE, and MENVCFGH_STCE.
__STATIC_FORCEINLINE uint64_t SysTimer_GetCompareValue | ( | void | ) |
Get system timer compare value in machine mode.
This function get the system timer compare value in MTIMERCMP register.
Definition at line 289 of file core_feature_timer.h.
References SysTimer_GetHartCompareValue(), and SysTimer_GetHartID.
__STATIC_FORCEINLINE uint64_t SysTimer_GetCompareValue_S | ( | void | ) |
Get system timer smode compare value.
This function get the system timer smode compare value in STIMERCMP and STIMECMPH CSR register.
Definition at line 529 of file core_feature_timer.h.
References __RV_CSR_READ, CSR_STIMECMP, and CSR_STIMECMPH.
__STATIC_FORCEINLINE uint32_t SysTimer_GetControlValue | ( | void | ) |
Get system timer control value.
This function get the system timer MTIMECTL register value.
Definition at line 344 of file core_feature_timer.h.
References SysTimer, and SysTimer_MTIMECTL_Msk.
__STATIC_FORCEINLINE uint64_t SysTimer_GetHartCompareValue | ( | unsigned long | hartid | ) |
Get system timer compare value by hartid.
This function get the system timer compare value in MTIMERCMP register.
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 259 of file core_feature_timer.h.
References __LW(), SysTimer, and SysTimer_CLINT_MTIMECMP_BASE.
Referenced by SysTimer_GetCompareValue().
__STATIC_FORCEINLINE uint32_t SysTimer_GetHartMsipValue | ( | unsigned long | hartid | ) |
Get system timer MSIP register value by hartid.
This function get the system timer MSIP register value.
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 435 of file core_feature_timer.h.
References __LW(), SysTimer, and SysTimer_CLINT_MSIP_BASE.
Referenced by SysTimer_GetMsipValue().
__STATIC_FORCEINLINE uint32_t SysTimer_GetHartSsipValue | ( | unsigned long | hartid | ) |
Get system timer SSIP register value by hartid.
This function get the system timer SSIP register value.
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 627 of file core_feature_timer.h.
References __LW(), SysTimer, and SysTimer_CLINT_SSIP_BASE.
Referenced by SysTimer_GetSsipValue().
__STATIC_FORCEINLINE uint64_t SysTimer_GetLoadValue | ( | void | ) |
Get system timer load value.
This function get the system timer current value in MTIMER register.
Definition at line 171 of file core_feature_timer.h.
References __LW(), and SysTimer.
Referenced by SysTick_Config(), SysTick_HartConfig(), SysTick_HartReload(), and SysTick_Reload().
__STATIC_FORCEINLINE uint32_t SysTimer_GetMsipValue | ( | void | ) |
Get system timer MSIP register value in machine mode.
This function get the system timer MSIP register value.
Definition at line 457 of file core_feature_timer.h.
References SysTimer_GetHartID, and SysTimer_GetHartMsipValue().
__STATIC_FORCEINLINE uint32_t SysTimer_GetSsipValue | ( | void | ) |
Get system timer SSIP register value.
This function get the system timer MSIP register value.
Definition at line 649 of file core_feature_timer.h.
References SysTimer_GetHartID_S, and SysTimer_GetHartSsipValue().
__STATIC_FORCEINLINE void SysTimer_SendIPI | ( | unsigned long | hartid | ) |
send ipi to target hart using Systimer Clint MSIP
This function send ipi using clint timer's MSIP register.
[in] | hart | target hart |
Definition at line 768 of file core_feature_timer.h.
References __SW(), and SysTimer_CLINT_MSIP_BASE.
__STATIC_FORCEINLINE void SysTimer_SendIPI_S | ( | unsigned long | hartid | ) |
send ipi to target hart using Systimer Clint SSIP
This function send ipi using clint timer's sSIP register.
[in] | hart | target hart |
Definition at line 693 of file core_feature_timer.h.
References __SW(), and SysTimer_CLINT_SSIP_BASE.
__STATIC_FORCEINLINE void SysTimer_SetCompareValue | ( | uint64_t | value | ) |
Set system timer compare value in machine mode.
This function set the system Timer compare value in MTIMERCMP register.
[in] | value | compare value to set system timer MTIMERCMP register. |
Definition at line 242 of file core_feature_timer.h.
References SysTimer_GetHartID, and SysTimer_SetHartCompareValue().
Referenced by SysTick_Config(), and SysTick_Reload().
__STATIC_FORCEINLINE void SysTimer_SetCompareValue_S | ( | uint64_t | value | ) |
Set system timer smode compare value.
This function set the system timer smode compare value in STIMECMP and STIMECMPH CSR register.
[in] | value | compare value to set system timer smode compare register. |
Definition at line 509 of file core_feature_timer.h.
References __RV_CSR_WRITE, CSR_STIMECMP, and CSR_STIMECMPH.
Referenced by SysTick_Config_S(), and SysTick_Reload_S().
__STATIC_FORCEINLINE void SysTimer_SetControlValue | ( | uint32_t | mctl | ) |
Set system timer control value.
This function set the system timer MTIMECTL register value.
[in] | mctl | value to set MTIMECTL register |
Definition at line 331 of file core_feature_timer.h.
References SysTimer, and SysTimer_MTIMECTL_Msk.
__STATIC_FORCEINLINE void SysTimer_SetHartCompareValue | ( | uint64_t | value, |
unsigned long | hartid | ||
) |
Set system timer compare value by hartid.
This function set the system Timer compare value in MTIMERCMP register.
[in] | value | compare value to set system timer MTIMERCMP register. |
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 206 of file core_feature_timer.h.
References __SW(), SysTimer, and SysTimer_CLINT_MTIMECMP_BASE.
Referenced by SysTick_HartConfig(), SysTick_HartReload(), and SysTimer_SetCompareValue().
__STATIC_FORCEINLINE void SysTimer_SetHartMsipValue | ( | uint32_t | msip, |
unsigned long | hartid | ||
) |
Set system timer MSIP register value by hartid.
This function set the system timer MSIP register value.
[in] | msip | value to set MSIP register |
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 473 of file core_feature_timer.h.
References __SW(), SysTimer, and SysTimer_CLINT_MSIP_BASE.
Referenced by SysTimer_SetMsipValue().
__STATIC_FORCEINLINE void SysTimer_SetHartSsipValue | ( | uint32_t | ssip, |
unsigned long | hartid | ||
) |
Set system timer SSIP register value by hartid.
This function set the system timer SSIP register value.
[in] | msip | value to set SSIP register |
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 664 of file core_feature_timer.h.
References __SW(), SysTimer, and SysTimer_CLINT_SSIP_BASE.
Referenced by SysTimer_SetSsipValue().
__STATIC_FORCEINLINE void SysTimer_SetHartSWIRQ | ( | unsigned long | hartid | ) |
Trigger or set software interrupt via system timer by hartid.
This function set the system timer MSIP bit in MSIP register.
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 360 of file core_feature_timer.h.
References __SW(), SysTimer, SysTimer_CLINT_MSIP_BASE, and SysTimer_MSIP_MSIP_Msk.
Referenced by SysTimer_SetSWIRQ().
__STATIC_FORCEINLINE void SysTimer_SetHartSWIRQ_S | ( | unsigned long | hartid | ) |
Trigger or set supervisor mode software interrupt via system timer by hartid.
This function set the system timer SSIP bit in SSIP register.
[in] | hartid | hart ID, one hart is required to have a known hart ID of 0, other harts ID can be in 1~1023. |
Definition at line 554 of file core_feature_timer.h.
References __SW(), SysTimer, SysTimer_CLINT_SSIP_BASE, and SysTimer_SSIP_SSIP_Msk.
Referenced by SysTimer_SetSWIRQ_S().
__STATIC_FORCEINLINE void SysTimer_SetLoadValue | ( | uint64_t | value | ) |
Set system timer load value.
This function set the system timer load value in MTIMER register.
[in] | value | value to set system timer MTIMER register. |
Definition at line 149 of file core_feature_timer.h.
__STATIC_FORCEINLINE void SysTimer_SetMsipValue | ( | uint32_t | msip | ) |
Set system timer MSIP register value in machine mode.
This function set the system timer MSIP register value.
[in] | msip | value to set MSIP register |
Definition at line 490 of file core_feature_timer.h.
References SysTimer_GetHartID, and SysTimer_SetHartMsipValue().
__STATIC_FORCEINLINE void SysTimer_SetSsipValue | ( | uint32_t | ssip | ) |
Set system timer SSIP register value.
This function set the system timer SSIP register value.
[in] | msip | value to set SSIP register |
Definition at line 681 of file core_feature_timer.h.
References SysTimer_GetHartID, and SysTimer_SetHartSsipValue().
__STATIC_FORCEINLINE void SysTimer_SetSWIRQ | ( | void | ) |
Trigger or set software interrupt via system timer in machine mode.
This function set the system timer MSIP bit in MSIP register.
Definition at line 379 of file core_feature_timer.h.
References SysTimer_GetHartID, and SysTimer_SetHartSWIRQ().
__STATIC_FORCEINLINE void SysTimer_SetSWIRQ_S | ( | void | ) |
Trigger or set supervisor software interrupt via system timer.
This function set the system timer SSIP bit in SSIP register.
Definition at line 573 of file core_feature_timer.h.
References SysTimer_GetHartID_S, and SysTimer_SetHartSWIRQ_S().
__STATIC_FORCEINLINE void SysTimer_SoftwareReset | ( | void | ) |
Do software reset request.
This function will do software reset request through MTIMER
Definition at line 755 of file core_feature_timer.h.
References SysTimer, and SysTimer_MSFRST_KEY.
__STATIC_FORCEINLINE void SysTimer_Start | ( | void | ) |
Enable system timer counter running.
Enable system timer counter running by clear TIMESTOP bit in MTIMECTL register.
Definition at line 301 of file core_feature_timer.h.
References SysTimer, and SysTimer_MTIMECTL_TIMESTOP_Msk.
__STATIC_FORCEINLINE void SysTimer_Stop | ( | void | ) |
Stop system timer counter running.
Stop system timer counter running by set TIMESTOP bit in MTIMECTL register.
Definition at line 312 of file core_feature_timer.h.
References SysTimer, and SysTimer_MTIMECTL_TIMESTOP_Msk.