Skip to content

Commit db91e7e

Browse files
Naveen KajeNaveen Kaje
authored andcommitted
nrf_drv_twi: remove redundant nrf_drv_disable call in nrf_drv_twi_uninit
i2c_api implementation for NRF52 does a disable() followed by uninit(). The uniinit() implementation in NRF drivers layer makes another call to disable. This throws off the state of the I2C instance leading to an assert. Since the disable is only invoked from the I2C API layer for Nordic, remove this redundant call. Signed-off-by: Naveen Kaje <[email protected]>
1 parent 8292aff commit db91e7e

File tree

1 file changed

+0
-1
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/drivers_nrf/twi_master

1 file changed

+0
-1
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/drivers_nrf/twi_master/nrf_drv_twi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ void nrf_drv_twi_uninit(nrf_drv_twi_t const * p_instance)
345345
nrf_drv_common_irq_disable(nrf_drv_get_IRQn((void *)p_instance->reg.p_twi));
346346
)
347347
}
348-
nrf_drv_twi_disable(p_instance);
349348

350349
#if NRF_MODULE_ENABLED(PERIPHERAL_RESOURCE_SHARING)
351350
nrf_drv_common_per_res_release(p_instance->reg.p_regs);

0 commit comments

Comments
 (0)