Quantcast
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: BLE stack 1.2 OSAL

[quote user="ran greenberg"]I want the OSAL to treat my event (that osal_set_event set).[/quote]

OSAL treats the event in a way of signaling to another task that some event is pending for it.

For example, you have a task named MY_TASK with MY_TASK_ID, and another HAL module

that is counting interrupts, upon hitting count_limit this HAL module uses OSAL events mechanism

to inform MY_TASK about this count_limit by calling osal_set_event(MY_TASK_ID, COUNT_LIMIT_HANDLE).

The COUNT_LIMIT_HANDLE is an event handler in the MY_TASK, thus setting the COUNT_LIMIT_HANDLE

with osal_set_event() will trigger MY_TASK and COUNT_LIMIT_HANDLE will be executed (if coded

properly of course). :)
 

Is it clears the fog a bit?


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>