-
Notifications
You must be signed in to change notification settings - Fork 227
TIMER module
This module contains functions for accessing the hardware timers, and include delays in your programs.
The delay functions introduces a delay in the program for a specified period of time. The delay is executed in the current thread, and no context switch is done, at least until the next context switch scheduled by Lua RTOS.
Waits for the specified seconds, then returns.
Arguments:
- seconds: number of seconds to wait.
Returns: nothing, or an exception.
Waits for the specified milliseconds, then returns.
Arguments:
- milliseconds: number of milliseconds to wait.
Returns: nothing, or an exception.
Waits for the specified microseconds, then returns.
Arguments:
- microseconds: number of microseconds to wait.
Returns: nothing, or an exception.
The sleep functions suspend the program's execution for a specified period of time by suspending the current thread.
Sleeps for the specified seconds, then returns.
Arguments:
- seconds: number of seconds to sleep.
Returns: nothing, or an exception.
Sleeps for the specified milliseconds, then returns.
Arguments:
- milliseconds: number of milliseconds to sleep.
Returns: nothing, or an exception.
Sleeps for the specified microseconds, then returns.
Arguments:
- microseconds: number of microseconds to sleep.
Returns: nothing, or an exception.