Other Parts Discussed in Thread: CC1310,
Tool/software: Code Composer Studio
Hi
Have tried to look but can’t find any specific info on this.
Have a cc1310 deign. The system send out a small packet then goes to sleep for 20sec. If an interrupt occur in this period it must start sending each second for a minute or so, if no new interrupts occur then back to 20sec interval. I have looked at the pininterupt example but it does not do what I want.
My concern is that if I use sleep(20), get an interrupt and start using sleep(1) what happened with the first sleep regarding call stack?
Does sleep(1) clean up and terminate sleep(20). If not then I will get stack issues because I will “fill up” with sleep(20). If I had full control I would, use an HW timer set it to 20 and shutdown. If an interrupt comes in, I will reset the timer to 1 and run all in the same interrupt handler of the timer.
And does usleep and sleep do behave the same?
Any input is appreciated.