/* De-initialize the TEMP driver. 
This will clear all the registered callbacks and disable the EMU IRQ in the NVIC. */
Ecode_t TEMPDRV_DeInit(void)
/* De-initialize the TEMP driver. 
This will clear all the registered callbacks and disable the EMU IRQ in the NVIC. */
Ecode_t TEMPDRV_DeInit(void)
{
  TEMPDRV_InitState = false;
  NVIC_DisableIRQ(EMU_IRQn);
  NVIC_ClearPendingIRQ(EMU_IRQn);
  disableInterrupts();
  memset(tempdrvHighCallbacks, 0, sizeof (TEMPDRV_CallbackSet_t) * TEMPDRV_CALLBACK_DEPTH);
  memset(tempdrvLowCallbacks, 0, sizeof (TEMPDRV_CallbackSet_t) * TEMPDRV_CALLBACK_DEPTH);
  return ECODE_EMDRV_TEMPDRV_OK;
}