mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
810ef5e923
This reworks events handling in EDTT. The "service_events" routine is now handled in separate task which blocks until new event is put in queue. This is possible since we use os_eventq to pass events and this means any get from queue will put task to sleep properly and trigger context switch if necessary. The blocking edtt_read() will now sleep if not data is available instead of advancing time machine forward so it does not interfere with timing. OS_TICKS_PER_SEC was increased to 1024 to have better granularity and allow ~5ms sleep time for edtt poller task as required. Also some non-LL code is simplified to use simple calloc/free as it does not really seem to be cessary to use mempools there, i.e. we just need some memory block to pass data and it does not really matter how it's allocated. Also using calloc/free means we will never run out of memory so no need to check for that.
BabbleSim support for Apache NimBLE