@@ -19,8 +19,8 @@ LOG_MODULE_REGISTER(nrf_sdh, CONFIG_NRF_SDH_LOG_LEVEL);
1919#warning Please select NRF_CLOCK_LF_ACCURACY_500_PPM when using NRF_CLOCK_LF_SRC_RC
2020#endif
2121
22- static atomic_t sdh_suspended ; /* Whether this module is suspended . */
23- static atomic_t sdh_transition ; /* Whether enable/disable process was started. */
22+ static atomic_t sdh_is_suspended ; /* Whether the SoftDevice event interrupts are disabled . */
23+ static atomic_t sdh_transition ; /* Whether enable/disable process was started. */
2424
2525static char * state_to_str (enum nrf_sdh_state_evt s )
2626{
@@ -124,7 +124,7 @@ static int nrf_sdh_enable(void)
124124 return - EINVAL ;
125125 }
126126
127- atomic_set (& sdh_suspended , false);
127+ atomic_set (& sdh_is_suspended , false);
128128 atomic_set (& sdh_transition , false);
129129
130130 /* Enable event interrupt, the priority has already been set by the stack. */
@@ -267,14 +267,14 @@ void nrf_sdh_suspend(void)
267267 LOG_WRN ("Tried to suspend, but SoftDevice is disabled" );
268268 return ;
269269 }
270- if (sdh_suspended ) {
270+ if (sdh_is_suspended ) {
271271 LOG_WRN ("Tried to suspend, but already is suspended" );
272272 return ;
273273 }
274274
275275 NVIC_DisableIRQ ((IRQn_Type )SD_EVT_IRQn );
276276
277- atomic_set (& sdh_suspended , true);
277+ atomic_set (& sdh_is_suspended , true);
278278}
279279
280280void nrf_sdh_resume (void )
@@ -287,7 +287,7 @@ void nrf_sdh_resume(void)
287287 LOG_WRN ("Tried to resume, but SoftDevice is disabled" );
288288 return ;
289289 }
290- if (!sdh_suspended ) {
290+ if (!sdh_is_suspended ) {
291291 LOG_WRN ("Tried to resume, but not suspended" );
292292 return ;
293293 }
@@ -296,12 +296,12 @@ void nrf_sdh_resume(void)
296296 NVIC_SetPendingIRQ ((IRQn_Type )SD_EVT_IRQn );
297297 NVIC_EnableIRQ ((IRQn_Type )SD_EVT_IRQn );
298298
299- atomic_set (& sdh_suspended , false);
299+ atomic_set (& sdh_is_suspended , false);
300300}
301301
302302bool nrf_sdh_is_suspended (void )
303303{
304- return sdh_suspended ;
304+ return sdh_is_suspended ;
305305}
306306
307307void nrf_sdh_evts_poll (void )
0 commit comments