f9micro / f9-kernel

An efficient and secure microkernel built for ARM Cortex-M cores, inspired by L4
Other
679 stars 145 forks source link

L4_Sleep can work? #145

Open gnitnaw opened 7 years ago

gnitnaw commented 7 years ago

Here is my code: https://github.com/gnitnaw/f9-kernel/blob/master/user/apps/led/main.c It works well.

At line 23 I would like to use L4_Sleep(L4_TimePeriod(1000)); to replace for loop. But I found it doesn't work. Is is normal? Thanks.

ahmedammar commented 6 years ago

@gnitnaw L4_TimePeriod takes microseconds as argument.