![]() |
NMSIS-Core
Version 1.4.0
NMSIS-Core support for Nuclei processor-based devices
|
Functions that distribute external interrupts to cores. More...
Functions | |
__STATIC_FORCEINLINE void | CIDU_BroadcastExtInterrupt (uint32_t int_id, uint32_t to_cores) |
Broadcast external interrupt to cores. More... | |
__STATIC_FORCEINLINE uint32_t | CIDU_GetBroadcastModeStatus (uint32_t int_id) |
get broadcast mode status More... | |
__STATIC_FORCEINLINE long | CIDU_SetFirstClaimMode (uint32_t int_id, uint32_t core_id) |
Let the first coming core to first claim the interrupt. More... | |
__STATIC_FORCEINLINE void | CIDU_ResetFirstClaimMode (uint32_t int_id) |
Reset the claim mode mask. More... | |
__STATIC_FORCEINLINE uint32_t | CIDU_GetClaimStatus (uint32_t int_id) |
Get the claim mask status. More... | |
Functions that distribute external interrupts to cores.
__STATIC_FORCEINLINE void CIDU_BroadcastExtInterrupt | ( | uint32_t | int_id, |
uint32_t | to_cores | ||
) |
Broadcast external interrupt to cores.
This function broadcasts external interrupt which id is int_id to some/all target cores
[in] | int_id | external interrupt id |
[in] | to_cores | target cores which can receive interrupt, use bitwise inclusive or of CIDU_RECEIVE_INTERRUPT_EN(core_id) |
Definition at line 143 of file core_feature_cidu.h.
References __SW(), and CIDU_INT_INDICATOR_ADDR.
__STATIC_FORCEINLINE uint32_t CIDU_GetBroadcastModeStatus | ( | uint32_t | int_id | ) |
get broadcast mode status
Just query the INTn_INDICATOR register value
[in] | int_id | external interrupt id |
Definition at line 161 of file core_feature_cidu.h.
References __LW(), and CIDU_INT_INDICATOR_ADDR.
__STATIC_FORCEINLINE uint32_t CIDU_GetClaimStatus | ( | uint32_t | int_id | ) |
Get the claim mask status.
Get the claim mode staus, each bit[n] indicates whether core n has claimed interrupt successfully, 1 means yes, 0 means no.
[in] | int_id | external interrupt id |
Definition at line 235 of file core_feature_cidu.h.
References __LW(), and CIDU_INT_MASK_ADDR.
__STATIC_FORCEINLINE void CIDU_ResetFirstClaimMode | ( | uint32_t | int_id | ) |
Reset the claim mode mask.
Reset the claim mode mask by Writing the reset value (all 1) to it
[in] | int_id | external interrupt id |
Definition at line 212 of file core_feature_cidu.h.
References __SW(), and CIDU_INT_MASK_ADDR.
__STATIC_FORCEINLINE long CIDU_SetFirstClaimMode | ( | uint32_t | int_id, |
uint32_t | core_id | ||
) |
Let the first coming core to first claim the interrupt.
In external interrupt broadcast mode, make the first coming core to claim this interrupt and then can handle it.
[in] | int_id | external interrupt id |
[in] | core_id | core id that receive the interrupt |
Definition at line 186 of file core_feature_cidu.h.
References __LW(), __SW(), and CIDU_INT_MASK_ADDR.