Tool/software: TI C/C++ Compiler
Is DELAY_US reentrant?
I am using the same function in main and in ISR.
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.
Tool/software: TI C/C++ Compiler
Is DELAY_US reentrant?
I am using the same function in main and in ISR.
hi ,
No its not reentrant.
#define DEVICE_DELAY_US(x) SysCtl_delay(((((long double)(x)) / (1000000.0L / \
(long double)DEVICE_SYSCLK_FREQ)) - 9.0L) / 5.0L)
The SysCtl_delay uses ACC for implementation . So if an interrupt is called changing the value of ACC it cant be resumed since the value would be lost.
Regards.