index 1be466a6b4316c6cda44aceabbc998e53a495c5e..1744d0dc995b505c3bac1bbe02ece0a410cca02f 100644 (file)
extern EDMA3_DRV_GblConfigParams sampleEdma3GblCfgParams[];
EDMA3_DRV_Result edma3MemToMemCpytest (EDMA3_DRV_Handle hEdma);
-
+extern void *AppSemHandle1;
+extern void *AppSemHandle2;
/*
* Local References
unsigned int i, bypass;
unsigned int count=0;
EDMA3_DRV_Handle hEdma[MAX_NUM_EDMA_INSTANCES];
+ Semaphore_Params semParams;
memset(hEdma,0,sizeof(hEdma));
/* Print the Welcome Message */
printWelcomeBanner();
+
+ Semaphore_Params_init(&semParams);
+ edmaResult = edma3OsSemCreate(0, &semParams, &AppSemHandle1);
+ if((edmaResult != EDMA3_DRV_SOK) || (AppSemHandle1 == NULL))
+ {
+ printf("Error initializing the Application Semaphore handle\n");
+ return;
+ }
+ edmaResult = edma3OsSemCreate(0, &semParams, &AppSemHandle2);
+ if((edmaResult != EDMA3_DRV_SOK) || (AppSemHandle2 == NULL))
+ {
+ printf("Error initializing the Application Semaphore handle\n");
+ return;
+ }
if(numEdma3Instances > MAX_NUM_EDMA_INSTANCES)
{