![]() |
GaIA BIOS Library
|
Modbus interface to an RTOS. More...
#include <stdint.h>Macros | |
| #define | MB_RTOS_TOUT 0 |
| Timeout expired. | |
| #define | MB_RTOS_SIGNAL 1 |
| A signal has been received. | |
Functions | |
| void | mb_rtos_wait (uint32_t delay) |
| Waits for the specified time. | |
| uint32_t | mb_rtos_waitsig (uint32_t timeout) |
| Waits for a signal until the given timeout expires. | |
| void | mb_rtos_sendsig (uintptr_t taskid) |
| Sends a signal to the task corresponding to the given task id. | |
| uint32_t | mb_rtos_gettick (void) |
| Returns th tick count. | |
Modbus interface to an RTOS.
| uint32_t mb_rtos_gettick | ( | void | ) |
Returns th tick count.
This function is used for timeouts.
| void mb_rtos_sendsig | ( | uintptr_t | taskid | ) |
Sends a signal to the task corresponding to the given task id.
| taskid | id of the task to send the signal to. |
| void mb_rtos_wait | ( | uint32_t | delay | ) |
Waits for the specified time.
| delay | number of milliseconds to wait. |
| uint32_t mb_rtos_waitsig | ( | uint32_t | timeout | ) |
Waits for a signal until the given timeout expires.
| timeout | maximum time to wait. |