SDOCM00103934:allow Swi priority to be configurable
authorJudah Vang <judah@ti.com>
Fri, 20 Sep 2013 19:17:47 +0000 (12:17 -0700)
committerChris Ring <cring@ti.com>
Thu, 26 Sep 2013 00:41:40 +0000 (17:41 -0700)
packages/ti/sdo/ipc/family/f28m35x/TransportCirc.c
packages/ti/sdo/ipc/family/f28m35x/TransportCirc.xdc

index bbbc7fd626ceaec66e7233e8a49043fa22df061c..a4799a987846179aede8cf13b5efd363d3b66530 100644 (file)
@@ -85,6 +85,7 @@ Int TransportCirc_Instance_init(TransportCirc_Object *obj,
     /* construct the swi with lowest priority */
     Swi_Params_init(&swiParams);
     swiParams.arg0 = (UArg)obj;
     /* construct the swi with lowest priority */
     Swi_Params_init(&swiParams);
     swiParams.arg0 = (UArg)obj;
+    swiParams.priority = params->swiPriority;
     Swi_construct(Swi_struct(swiHandle),
                  (Swi_FuncPtr)TransportCirc_swiFxn,
                  &swiParams, eb);
     Swi_construct(Swi_struct(swiHandle),
                  (Swi_FuncPtr)TransportCirc_swiFxn,
                  &swiParams, eb);
index 57f02f339e63769f83b5080c580364821a66e6f3..2e781bf2524e741056f59505132d74cb2ea9f99d 100644 (file)
@@ -211,6 +211,12 @@ instance:
      */
     config Ptr writeAddr = null;
 
      */
     config Ptr writeAddr = null;
 
+    /*!
+     *  ======== swiPriority ========
+     *  The priority of the Transport Swi object created
+     */
+    config UInt swiPriority = 1;
+
 internal:
 
     /*! The max index set to (numMsgs - 1) */
 internal:
 
     /*! The max index set to (numMsgs - 1) */