You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This moves handling of PDU RX end from EVENT_END to EVENT_DISABLED.
This will allow to run our phy on BabbleSim and also seems to simplify
code a bit.
EVENT_DISABLED happens almost immediately after EVENT_END, so on real
it happens while ble_phy_isr is being executed and is simply ignored.
However, on BabbleSim code is executed as if time was paused which
means that no other event can occur when ble_phy_isr is being executed,
i.e. it will be called after we return from isr and simulation code can
trigger subsequent events. If rx_end configures transition to TX and
thus enables interrupt on EVENT_DISABLED, we will handle that during an
event that is triggered for RX - basically we handle tx_end before TX
even started. Using EVENT_DISABLED for both TX and RX resolves this
issue.
We still use timer capture on EVENT_END for transition timing so this
has no effect on that calculations, and since EVENT_DISABLED occurs
just a fraction of microsecond after EVENT_END, execution timings are
also not affected.
0 commit comments