mirror of https://github.com/ARMmbed/mbed-os.git
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 <Naveen.Kaje@arm.com>pull/7645/head
parent
8292affb53
commit
db91e7ed02
|
@ -345,7 +345,6 @@ void nrf_drv_twi_uninit(nrf_drv_twi_t const * p_instance)
|
|||
nrf_drv_common_irq_disable(nrf_drv_get_IRQn((void *)p_instance->reg.p_twi));
|
||||
)
|
||||
}
|
||||
nrf_drv_twi_disable(p_instance);
|
||||
|
||||
#if NRF_MODULE_ENABLED(PERIPHERAL_RESOURCE_SHARING)
|
||||
nrf_drv_common_per_res_release(p_instance->reg.p_regs);
|
||||
|
|
Loading…
Reference in New Issue