[nrf52840] set initialized state to false in nrf_drv_clock_uninit() (#2850)

Fix an issue that application could not reinitialize the clock again after nrf_drv_clock_uninit().
This commit is contained in:
Shu Chen
2018-07-04 00:05:48 -05:00
committed by Jonathan Hui
parent 92282bffa7
commit 0c537d8c0e
@@ -190,6 +190,7 @@ void nrf_drv_clock_uninit(void)
ASSERT(m_clock_cb.module_initialized);
nrfx_clock_disable();
nrfx_clock_uninit();
m_clock_cb.module_initialized = false;
}
static void item_enqueue(nrf_drv_clock_handler_item_t ** p_head,