spif
spif copied to clipboard
HAL_GetTick() Should not be used
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!
w25q need some delay after power up to work.
Each RTOS has a different delay function, #define W25qxx_Delay os_delayis better