How to deep sleep?

It is considered that in baremetal, the main function is the one and only thread, thus the thread_sleep_for