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.

CC2652R: Clock_start context and best practices

Part Number: CC2652R
Other Parts Discussed in Thread: SYSBIOS

I have some clocks that are being handled (Clock_start, Clock_stop) inside of HWIs, is this always a bad idea? A similar example would be, I want to stop a clock when the device disconnects which is in SimplePeripheral_processGapMessage()... is that okay?

I used the SimplePeripheral_clockHandler() for all my callbacks/timeouts, but some clocks need to stop before they timeout. In all these cases I'm not destroying or creating clocks, I'm just stopping them, and previous posts suggest even if Stop_clock is called on the same object multiple times, it does no harm.

SDK 5.20