TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
|
Functions | |
static | K_EVENT_DEFINE (tt_event) |
LOG_MODULE_REGISTER (tt_event, CONFIG_TT_EVENT_LOG_LEVEL) | |
uint32_t | tt_event_post (uint32_t events) |
Post an event to Tenstorrent firmware. | |
uint32_t | tt_event_wait (uint32_t events, k_timeout_t timeout) |
Wait for one or more events to be posted to Tenstorrent firmware. |
|
static |
LOG_MODULE_REGISTER | ( | tt_event | , |
CONFIG_TT_EVENT_LOG_LEVEL | ) |
Post an event to Tenstorrent firmware.
Post one or more events.
events | The events to post as a bitmask of tt_event values. |
uint32_t tt_event_wait | ( | uint32_t | events, |
k_timeout_t | timeout ) |
Wait for one or more events to be posted to Tenstorrent firmware.
Wait for one or more events to be posted to Tenstorrent firmware. The function will block until at least one of the specified events are received or timeout expires.
To block indefinitely, use K_FOREVER. To return immediately, use K_NO_WAIT.
To block for a specific time, use K_MSEC or K_USEC to specify the timeout.
On success, a bitmask of the received events (of type tt_event) is returned and the corresponding events are automatically cleared. When a timeout occurs, the function returns 0.
events | The events to wait for as a bitmask of tt_event values. |
timeout | The maximum time to wait for the event(s) to be posted. |