]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blobdiff - packages/ti/sdo/edma3/rm/sample/src/sample_arm_init.c
PRSDK-3125: Update remainig
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / src / sample_arm_init.c
index e25564bebea9a819ca5dae49875c5c023c237c02..287ccc945b618386df7d0e6432104ab2ffdacecc 100644 (file)
@@ -43,7 +43,7 @@
 #include <ti/sdo/edma3/rm/sample/bios6_edma3_rm_sample.h>
 
 /** @brief EDMA3 Driver Instance specific Semaphore handle */
-extern EDMA3_OS_Sem_Handle rmSemHandle[EDMA3_MAX_EDMA3_INSTANCES];
+extern EDMA3_OS_Sem_Handle SemHandle[EDMA3_MAX_EDMA3_INSTANCES];
 
 /**  To Register the ISRs with the underlying OS, if required. */
 extern void registerEdma3Interrupts (uint32_t edma3Id);
@@ -138,7 +138,7 @@ EDMA3_RM_Handle edma3init (uint32_t edma3Id, EDMA3_RM_Result *errorCode)
        if (edma3Result == EDMA3_DRV_SOK)
                {
                /* Save the semaphore handle for future use */
-               rmSemHandle[edma3Id] = initParam.rmSemHandle;
+               SemHandle[edma3Id] = initParam.rmSemHandle;
 
                /* configuration structure for the Driver */
                instanceConfig = &sampleInstInitConfig[edma3Id][dsp_num];
@@ -199,12 +199,12 @@ EDMA3_RM_Result edma3deinit (uint32_t edma3Id, EDMA3_RM_Handle hEdma)
     unregisterEdma3Interrupts(edma3Id);
 
     /* Delete the semaphore */
-    edma3Result = edma3OsSemDelete (rmSemHandle[edma3Id]);
+    edma3Result = edma3OsSemDelete (SemHandle[edma3Id]);
 
     if (EDMA3_RM_SOK == edma3Result)
         {
         /* Make the semaphore handle as NULL. */
-        rmSemHandle[edma3Id] = NULL;
+        SemHandle[edma3Id] = NULL;
 
         /* Now, close the EDMA3 RM Instance */
         edma3Result = EDMA3_RM_close (hEdma, NULL);