/* Suspend execution for microsecond intervals. 
See IEEE 1003.1  */
int usleep(useconds_t useconds)
/* Suspend execution for microsecond intervals. 
See IEEE 1003.1  */
int usleep(useconds_t useconds)
{
	int32_t rem;
	if (useconds >= USEC_PER_SEC) {
		errno = EINVAL;
		return -1;
	}
	rem = k_usleep(useconds);
	__ASSERT_NO_MSG(rem >= 0);
	if (rem > 0) {
		errno = EINTR;
		return -1;
	}
	return 0;
}