cancel
Showing results for 
Search instead for 
Did you mean: 

i want to add delay into my code

shiva_shankar_e
Associate III

hi community,

i my project. i am using PIT and it is working fine. before initialization of the drivers osalThreadDelayMilliseconds() is working fine. but after initialization of the low level drivers, osalThreadDelayMilliseconds() is blocked even though when i had used osalThreadGetMilliseconds() logic . even though it is not working (bolcking the code (PIT also)).

is there any alternatives. to add delay's without blocking PIT.

Regards 

E shiva

1 REPLY 1
Chronal
ST Employee

Hi,

Please could you share your code and your pheripheral configuration?

Are you initializing (low level driver initialization) other peripherals besides the pit in your project? 

Have you enabled irqIsr ?

 

 

int main(void) {

     componentsInit();

     /* Enable Interrupts */
     irqIsrEnable();

     .....

}

 

Luca R.