]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commitdiff
PDK-6623:MCASP: Fix for device loopback example on c66xdsp_2
authorMahesh Radhkrishnan <uda0875154local@UDA0875154>
Tue, 2 Jun 2020 19:48:07 +0000 (15:48 -0400)
committerSivaraj R <sivaraj@ti.com>
Wed, 3 Jun 2020 03:39:16 +0000 (22:39 -0500)
packages/ti/drv/mcasp/example/j721e/src/audio_evmInit.c

index 9feb9182407df4cef7dadd50894b1c35d7c6fb29..2cc45bd7087740475967247299e00956f28385e9 100755 (executable)
@@ -139,15 +139,16 @@ void C66x_intrConfig(void)
 
     /* src_index 0 for TIMER0 is intr_pend signal */
     irqSetReq.src_index = 0;
-    irqSetReq.dst_id = TISCI_DEV_C66SS0_CORE0;
 
     /* On C66x builds we define OS timer tick in the configuration file to
      * trigger event #21 or #20 for C66x_1 or C66x_2, respectively.
      */
 #if defined (BUILD_C66X_1)
     irqSetReq.dst_host_irq = 21;
+    irqSetReq.dst_id = TISCI_DEV_C66SS0_CORE0;
 #elif defined (BUILD_C66X_2)
     irqSetReq.dst_host_irq = 20;
+    irqSetReq.dst_id = TISCI_DEV_C66SS1_CORE0;
 #endif
 
     ret = Sciclient_rmIrqSet(&irqSetReq, &irqSetResp, SCICLIENT_SERVICE_WAIT_FOREVER);