diff options
| author | Damien George <damien.p.george@gmail.com> | 2019-11-29 11:33:29 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-12-02 23:25:36 +1100 |
| commit | d6e051082af51566d4a16dc90f89da75a5007c06 (patch) | |
| tree | dd7afcf8c9d1ce3c0a6df0f02fd6d06cbc28453a /mpy-cross/main.c | |
| parent | 7f24c297787cd4bd92647f407017acbecdb0f949 (diff) | |
extmod/modbluetooth: Simplify how BLE IRQ callback is scheduled.
Instead of enqueue_irq() inspecting the ringbuf to decide whether to
schedule the IRQ callback (if ringbuf is empty), maintain a flag that knows
if the callback is on the schedule queue or not. This saves about 150
bytes of code (for stm32 builds), and simplifies all uses of enqueue_irq()
and schedule_ringbuf().
Diffstat (limited to 'mpy-cross/main.c')
0 files changed, 0 insertions, 0 deletions
