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.

CC1312R: Power Policy

Part Number: CC1312R


Hi

The Power Policy can be dynamically enabled and disabled at runtime, via the Power_enablePolicy() and Power_disablePolicy() I specifically need to use this on the I2S can someone please advise or show an example of how to do this.

Thank you in anticipation

Regards

David

  • Hi David,

    What exactly do you want to do? If you use the I2S driver as recommended in the examples for accessing the peripheral, this should already be the optimal power settings.

    Regards,

    Sid

  • Hi Sid

    I have Two Ti RTos threads in Thread A I have basically a timer using sleep(1) ie every second this scans for an alarm condition, in Thread B when an alarm is detected it plays a tone but the tone does not play due to the sleep command in Thread A, how can I solve this so the tone can be played through the I2S before going back to sleep.

    Thanks your help.

    David

  • If I understand you correctly, your application is designed like this. Please correct me if I am wrong. 

    Thread A is polling for an alarm condition and has a sleep(1) statement. Thus goes to sleep and is blocked till the sleep duration is elapsed. 

    ThreadB is polling for the event raised by the threadA. But is not being executed? 

    Have you used some other blocking statements such as CPUdelay?

    It seems like you will benefit from using Event or semaphore in your code. You would have to post an event in thread A, and pend on this event in thread B. This would block the threadB till there is a need for it to play the tone. While your threadA would get blocked by the sleep statement. 

    Regards,

    Sid