|
Lamp-Da 0.1
A compact lantern project
|
Define all time related platform functions. More...
Go to the source code of this file.
Namespaces | |
| namespace | lampda |
| Program scope. | |
| namespace | lampda::platform |
| Handle the platform specific interactions. | |
Functions | |
| uint32_t | lampda::platform::time_ms (void) |
| Returns the number of milliseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days. | |
| uint64_t | lampda::platform::time_us (void) |
| Returns the number of microseconds since the Arduino board began running the current program. | |
| void | lampda::platform::delay_ms (uint32_t dwMs) |
| Pauses the program for the amount of time (in miliseconds) specified as parameter. (There are 1000 milliseconds in a second.) | |
| void | lampda::platform::delay_us (uint64_t dwUs) |
| Pauses the program for the amount of time (in microseconds) specified as parameter. | |
| uint32_t | lampda::platform::time_s () |
| Get the current time, in seconds. | |
| uint32_t | lampda::platform::time_min () |
| Get the current time, in minutes. | |
| void | lampda::platform::delay_s (uint32_t s) |
| pause the current task for the given number of seconds | |
Define all time related platform functions.