Other Parts Discussed in Thread: ADS1292R, SYSBIOS
Tool/software: Code Composer Studio
I use CC2650 with TI-RTOS and BLE stack 2.2.x.
Is there a way to add delay, in millisecond, before call BIOS_start()?
If not, do you have any suggestion to make precise delay time with empty for loop?
For example, if I use delay like this. What's TICK_NUMBER_IN_US should I use?
void delayMillisec(uint32_t timeToDelay) { for(uint32_t ms=0; ms<timeToDelay; ms++) { for(uint32_t us=0; us<TICK_NUMBER_IN_US; us++) { //Do nothing; } } }
It's OK to use roughly delay time. Although, it would be nice if I can determine how much exacly clock was use in each interation and calculate to precise time in microsecond.