mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-06-18 16:55:31 -04:00
コミット忘れ。
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@266 b871894f-2f95-9b40-918c-086798483c85
This commit is contained in:
parent
beaafd2a7c
commit
77e0ee651a
@ -631,6 +631,24 @@ OSIntrMask osSetInterruptMask( OSIntrMask mask )
|
||||
return prep;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
Name: osGetInterruptMask
|
||||
|
||||
Description: get irq factor
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns: irq factor which is set now
|
||||
*---------------------------------------------------------------------------*/
|
||||
OSIntrMask osGetInterruptMask(void)
|
||||
{
|
||||
#ifdef SDK_ARM11
|
||||
return reg_OS_IDR_SET_IE_ALL;
|
||||
#else // SDK_ARM9
|
||||
return reg_OS_IE;
|
||||
#endif // SDK_ARM9
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
// INTERRUPT PENDING
|
||||
//================================================================================
|
||||
@ -816,6 +834,24 @@ BOOL osIsInterruptPendingID( OSIntrID id )
|
||||
return retval;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
Name: osGetInterruptPendingMask
|
||||
|
||||
Description: get IF bit
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns: value of IF
|
||||
*---------------------------------------------------------------------------*/
|
||||
OSIntrMask osGetInterruptPendingMask( void )
|
||||
{
|
||||
#ifdef SDK_ARM11
|
||||
return reg_OS_IDR_SET_PND_ALL;
|
||||
#else // SDK_ARM9
|
||||
return reg_OS_IF;
|
||||
#endif // SDK_ARM9
|
||||
}
|
||||
|
||||
|
||||
//================================================================================
|
||||
// IRQ CHEKE BUFFER
|
||||
|
Loading…
Reference in New Issue
Block a user