AnsweredAssumed Answered


Question asked by thien.nguyen on Nov 16, 2013
Latest reply on Nov 16, 2013 by Clive One
I read in system_stm32f4xx.c that after reset, sysclk is 168MHz. I want to creat a function delay 1s.
void Delay(void) {
     uint32_t i;
     for(i=0; i<0xA037A00; ++i)   // A037A00 = 168.000.000
Who can explain for me: how many machine cycle for ++i  and {}
if you can, help me creat a function delay.
thank for reading!