Skip to content

Commit

Permalink
Add DSP_CheckInit
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed May 22, 2024
1 parent 92f31ff commit a773671
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gc/ogc/dsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ struct _dsp_task {
void DSP_Init(void);


/*! \fn BOOL DSP_CheckInit(void)
\brief Get the DSP subsystem initialization flag
\return TRUE if the DSP subsystem has been initialized(via DSP_Init())<br>
FALSE if the DSP subsystem has not been initialized, or has been reset(via DSP_Reset())
*/
BOOL DSP_CheckInit(void);


/*! \fn u32 DSP_CheckMailTo(void)
\brief Check if mail was sent to DSP
Expand Down
5 changes: 5 additions & 0 deletions libogc/dsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ void DSP_Init(void)
_CPU_ISR_Restore(level);
}

BOOL DSP_CheckInit(void)
{
return __dsp_inited;
}

DSPCallback DSP_RegisterCallback(DSPCallback usr_cb)
{
u32 level;
Expand Down

0 comments on commit a773671

Please sign in to comment.