HI
I am using NCS V2.4.2, My application will using ble and 2.4G for gaming mouse; in SDK softdevice will by pass radio intterupt when BLE close, and I can define void RTC0_IRQHandler(void); How to do it in NCS?is there a demo sample?
HI
I am using NCS V2.4.2, My application will using ble and 2.4G for gaming mouse; in SDK softdevice will by pass radio intterupt when BLE close, and I can define void RTC0_IRQHandler(void); How to do it in NCS?is there a demo sample?
Hi
Just for confirmation, are you looking for an example how to use the RTC IRQ handler or the RADIO IRQ handler?
Will your application never use BLE and proprietary at the same time, only running either one or the other?
I recently made an example showing how to run ESB and BLE in parallel in NCS v2.3.0 (available here), but if you don't need to run the two protocols at the same time you can probably do this in an easier way.
Best regards
Torbjørn
HI Torbjørn,
I want to only running either one or the other, Thanks for your example, I need to study it first.
HI HI Torbjørn,
the example tell how to using ESB by timeslot in BLE, my application only BLE or 2.4G at one time,
So I need set CONFIG_ESB_DYNAMIC_INTERRUPTS?
And then Can I get radio intterrupt in void RADIO_IRQHandler(const void *args) when the BLE is disable?
Hi
In principle, yes.
If you enable both CONFIG_ESB_DYNAMIC_INTERRUPTS and CONFIG_MPSL_DYNAMIC_INTERRUPTS then you should be able to reassign the interrupts between MPSL (Bluetooth) or ESB dynamically, to switch between one protocol or the other.
For this to work you need to manually disable and re-enable MPSL though, and the flow would go something like this:
1) Disable Bluetooth by calling bt_disable()
2) Disable MPSL by calling mpsl_lib_uninit()
3) Enable your proprietary protocol
... then later on to go back you have to reverse the procedure:
4) DIsable the proprietary protocol
5) Re-enable MPSL by calling mpsl_lib_init()
6) Re-enable BLE
I don't know if this has been explicitly tested though. If you have any issues getting it to work just let me know, and I will do my best to help.
Best regards
Torbjørn