EDMA3 Driver Porting
A-98
/** Exit from critical section */
void edma3OsProtectExit (int level, unsigned int intState)
{
switch (level)
{
case EDMA3_OS_PROTECT_INTERRUPT :
HWI_restore (intState);
break;
case EDMA3_OS_PROTECT_SCHEDULER :
TSK_enable();
break;
case EDMA3_OS_PROTECT_INTERRUPT_XFER_COMPLETION :
ECM_enableEvent (ccXferCompInt);
break;
case EDMA3_OS_PROTECT_INTERRUPT_CC_ERROR :
ECM_enableEvent (ccErrorInt);
break;
case EDMA3_OS_PROTECT_INTERRUPT_TC_ERROR :
switch (intState)
{
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
ECM_enableEvent (tcErrorInt[intState]);
break;
default:
break;
}
break;
default:
break;
}
}
/* Function to wait for OS Ticks */
void edma3OsWaitMsecs(unsigned int mSecs)
{
unsigned int ticksForSleeping = ((CLK_countspms() / CLK_getprd()) * mSecs);
TSK_sleep(ticksForSleeping);
}
Содержание EDMA3
Страница 1: ...November 2009 Anuj Aggarwal Document Version 01 11 00 XX EDMA3 Driver U s e r s G u i d e User Guide ...
Страница 12: ......
Страница 17: ...EDMA3 Driver Introduction I 1 5 ...
Страница 20: ......
Страница 40: ...Run Time Interfaces Integration Guide A 12 EDMA3_DRV_IOCTL_MAX_IOCTL Max IOCTL ...
Страница 75: ...Run Time Interfaces Integration Guide I A 47 Errors EDMA3_DRV_E_INVALID_PARAM ...
Страница 107: ...Run Time Interfaces Integration Guide I A 79 ...