Hello all,
I am switching from a BLE project to an ANT one, and cannot find an ANT equivalent for BLE_STACK_HANDLER_SCHED_EVT_SIZE, why is this? Presumably ANT still uses the scheduler (if desired)?
Regards, Richard.
Hello all,
I am switching from a BLE project to an ANT one, and cannot find an ANT equivalent for BLE_STACK_HANDLER_SCHED_EVT_SIZE, why is this? Presumably ANT still uses the scheduler (if desired)?
Regards, Richard.
Thanks for that. Why is it though, that ANT_STACK_EVT_STRUCT_SIZE == sizeof(ant_evt_t), which seems sensible enough, but BLE_STACK_HANDLER_SCHED_EVT_SIZE == 0 ? Do BLE & ANT work differently here, with regards to the scheduler?
(I think it's this obvious difference in size, and different naming convention, that led me to raise this question in the first place)
Why is it that the ANT examples don't use the SoftDevice handler? Any idea?
I've also noticed that the macro SOFTDEVICE_HANDLER_INIT seems to be "hard-coded" for BLE use, and not ANT. It uses BLE_STACK_EVT_MSG_BUF_SIZE to determine the event buffer size, even though this == 0 when BLE is not used!
The reason for this is that the ANT examples are older and was coded in a different way.
Petter, thanks for the update (12.06.2015), that sounds clearer now. I think the easiest solution for the time-being is I'm just going to avoid the scheduler altogether - I only used it in the first place because I wasn't keen on doing lots of work in interrupt handlers, but seeing as most of the examples seem to do just that anyway...!