As ErichS say, or you can use SDK OSIF module , function void OSIF_TimeDelay(const uint32_t delay).
SysTick timer is used in this function,and SysTick interrupt will be enabled when you call this function, and will always run without another disable action.
Maybe you are looking for something like the McuWait module:
McuOnEclipseLibrary/McuWait.c at master · ErichStyger/McuOnEclipseLibrary · GitHub
It offers functions to wait for a number of milli-seconds or microseconds:
McuWait_Waitms(1000);
McuWait_Waitus(50);
If using an ARM Cortex-M4, it uses the cycle counter (see Cycle Counting on ARM Cortex-M with DWT | MCU on Eclipse and Measuring ARM Cortex-M CPU Cycles Spent with the MCUXpresso Eclipse Registers View | MCU on Eclipse ).
I hope this helps,
Erich
Thank you.
but using the function mcuwait_waittime(delay_time),weawther all of the computing resource wait for the delay function done?