R
Size: a a a
R
СС
AK
СС
СС
PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_EXTERNAL_2);
PLIB_TEMPLATE void INT_SourceFlagClear_Default( INT_MODULE_ID index , INT_SOURCE source )
{
volatile uint32_t *IFSx = (volatile uint32_t *) (&IFS0 + ((0x10 * (source / 32)) / 4));
volatile uint32_t *IFSxCLR = (volatile uint32_t *)(IFSx + 1);
*IFSxCLR = 1 << (source & 0x1f);
}
СС
СС
СС
/* Setup the channel modes */
/* Basic mode, nothing specifically needs to be set */
if(SYS_DMA_CHANNEL_OP_MODE_BASIC & modeEnable)
{
/* Do nothing */
;
}
СС
A
/* Setup the channel modes */
/* Basic mode, nothing specifically needs to be set */
if(SYS_DMA_CHANNEL_OP_MODE_BASIC & modeEnable)
{
/* Do nothing */
;
}
СС
SYS_DMA_ERROR SYS_DMA_ChannelErrorGet(SYS_DMA_CHANNEL_HANDLE handle)
{
SYS_DMA_CHANNEL_OBJECT *chanObj;
chanObj = (SYS_DMA_CHANNEL_OBJECT *) handle;
return chanObj->errorInfo;
}
A
SYS_DMA_ERROR SYS_DMA_ChannelErrorGet(SYS_DMA_CHANNEL_HANDLE handle)
{
SYS_DMA_CHANNEL_OBJECT *chanObj;
chanObj = (SYS_DMA_CHANNEL_OBJECT *) handle;
return chanObj->errorInfo;
}
СС
return handle.errorInfo;
I
/* Setup the channel modes */
/* Basic mode, nothing specifically needs to be set */
if(SYS_DMA_CHANNEL_OP_MODE_BASIC & modeEnable)
{
/* Do nothing */
;
}
NN
СС
A
СС
bool SYS_INT_SourceDisable ( INT_SOURCE source )
{
bool intSrcStatus;
SYS_INT_PROCESSOR_STATUS processorStatus;
/* Save the processor status and then Disable the global interrupt */
processorStatus = ( SYS_INT_PROCESSOR_STATUS )__builtin_disable_interrupts();
/* get the interrupt status of this source before disable is called */
intSrcStatus = PLIB_INT_SourceIsEnabled (INT_ID_0 , source);
/* disable the interrupts */
PLIB_INT_SourceDisable (INT_ID_0 , source);
/* restore the state of CP0 Status register before the disable occurred*/
__builtin_mtc0(12, 0, processorStatus);
/* return the source status */
return intSrcStatus;
}
СС