spif icon indicating copy to clipboard operation
spif copied to clipboard

HAL_GetTick() Should not be used

Open zhaonianzhu opened this issue 5 years ago • 1 comments

bool W25qxx_Init(void) { w25qxx.Lock=1; while(HAL_GetTick()<100)//here ,i maybe use other os W25qxx_Delay(1); after: W25qxx_Delay(100); is good!

zhaonianzhu avatar Sep 01 '20 07:09 zhaonianzhu

w25q need some delay after power up to work.

nimaltd avatar Apr 04 '21 09:04 nimaltd

Each RTOS has a different delay function, #define W25qxx_Delay os_delayis better

zhaonianzhu avatar Nov 10 '22 01:11 zhaonianzhu