[nrf52840] reinitialize all peripherals except uart for pseudo reset (#2878)

There are some problems if radio is not reinitialized during pseudo reset:
* It may trigger unexpected otPlatRadioTxDone(), and cause the device to hang;
* The uncleared radio timer queue is invalid, it may block the new added timer which has a larger targer time.

Note: The clock init/deinit is disabled during radio init/deinit.
This commit is contained in:
Shu Chen
2018-07-11 14:21:48 -05:00
committed by Jonathan Hui
parent 36ea84e06b
commit c0454408a8
4 changed files with 17 additions and 25 deletions
@@ -65,12 +65,12 @@ static void clock_handler(nrf_drv_clock_evt_type_t event)
void nrf_802154_clock_init(void)
{
nrf_drv_clock_init();
// Intentionally empty.
}
void nrf_802154_clock_deinit(void)
{
nrf_drv_clock_uninit();
// Intentionally empty.
}
void nrf_802154_clock_hfclk_start(void)