This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC1310: How to open PIN_Handle in multiple tasks (how to manage leds in multiple tasks) ?

Part Number: CC1310

Tool/software: TI-RTOS

Hi!

I am trying to get a PIN_Handle to work in multiple tasks (I want to be able to turn on and off leds from multiple tasks).

I have tried to declare the PIN_State, PIN_Handle and PIN_Config as global. But get error if I also try to open the PIN_Handle globally. If I open the PIN_Handle in both tasks it does not give me an error, but the leds will not works...

How can I manage the leds in multiple tasks?