1 Reply Latest reply on Jul 24, 2018 11:31 PM by AnjanaM_61

    Thread model of CYW20719

      I have a few questions on how threading is done on the CYW20719.

       

      1) Approximately how many threads are typically active? I know of the "Application thread" (our code), and the "Idle thread" that manages the watchdog timer.

      2) Which thread runs APPLICATION_START(), the BT management callback, the GATT callback, timers, etc? Are multiple threads used for each?

      3) If data is shared between these various functions, when should I start using mutexes to protect it?

       

      Nicholas

        • 1. Re: Thread model of CYW20719
          AnjanaM_61

          Hi Nicholas,

           

          1) It depends upon your application. There can be more than one thread active at a time (especially if you have multiple audio BT profiles in your application).

          2) Yes, it will be running on multiple threads and all this are taken care by the ROM FW code.

          3) If you are asking about the call back functions in WICED , the shared data protection is taken care by the ROM firmware, you need not have to do anything.

          If in your application you want to run custom threads and want to share data, then you may have to take care of mutexes in the application code.

           

          Thanks & Regards,

          Anjana

          2 of 2 people found this helpful