File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,18 @@ pub(crate) async fn run_ble() -> ! {
105105) ]
106106#[ cfg_attr(
107107 not( any( feature = "nrf52805" , feature = "nrf52810" , feature = "nrf52811" ) ) ,
108- export_name = "SWI2_EGU2 "
108+ export_name = "EGU2_SWI2 "
109109) ]
110110unsafe extern "C" fn swi2_irq_handler ( ) {
111111 SWI2_SOC_EVT_WAKER . wake ( ) ;
112112 SWI2_BLE_EVT_WAKER . wake ( ) ;
113113}
114+
115+ /// `nrf528xx_pac` and early versions of `nrf_pac` name the SWI2 interrupt `SWI2_EGU2` instead of `EGU2_SWI2`
116+ #[ cfg( not( any( feature = "nrf52805" , feature = "nrf52810" , feature = "nrf52811" ) ) ) ]
117+ #[ allow( dead_code) ]
118+ #[ export_name = "SWI2_EGU2" ]
119+ unsafe extern "C" fn old_swi2_irq_handler ( ) {
120+ SWI2_SOC_EVT_WAKER . wake ( ) ;
121+ SWI2_BLE_EVT_WAKER . wake ( ) ;
122+ }
You can’t perform that action at this time.
0 commit comments