mirror of
https://github.com/rvtr/twl_wrapsdk.git
synced 2025-10-31 06:11:10 -04:00
add OS_IsARM9x2, OS_IsDSPOn and OS_IsDSPReset.
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@312 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
parent
64102d30a6
commit
7fa62a4373
@ -78,6 +78,48 @@ OSSpeedOfARM9;
|
||||
*---------------------------------------------------------------------------*/
|
||||
void OS_ChangeSpeedOfARM9( OSSpeedOfARM9 clock, void* itcm );
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
Name: OS_IsARM9x2
|
||||
|
||||
Description: speed of arm9
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns: None
|
||||
*---------------------------------------------------------------------------*/
|
||||
inline BOOL OS_IsARM9x2( void )
|
||||
{
|
||||
return (reg_CFG_CLK & REG_CFG_CLK_ARM2X_MASK) >> REG_CFG_CLK_ARM2X_SHIFT;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
Name: OS_IsDSPOn
|
||||
|
||||
Description:
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns: None
|
||||
*---------------------------------------------------------------------------*/
|
||||
inline BOOL OS_IsDSPOn( void )
|
||||
{
|
||||
return (reg_CFG_CLK & REG_CFG_CLK_DSP_MASK) >> REG_CFG_CLK_DSP_SHIFT;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
Name: OS_IsDSPReset
|
||||
|
||||
Description:
|
||||
|
||||
Arguments: None
|
||||
|
||||
Returns: None
|
||||
*---------------------------------------------------------------------------*/
|
||||
inline BOOL OS_IsDSPReset( void )
|
||||
{
|
||||
return TRUE ^ ((reg_CFG_DSP_RST & REG_CFG_DSP_RST_OFF_MASK) >> REG_CFG_DSP_RST_OFF_SHIFT);
|
||||
}
|
||||
|
||||
#else // SDK_ARM7
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user