Initialize one of the WDTs associated HAL context This function initializes one of the WDTs (MWDT0, MWDT1, or RWDT) hardware by doing the following: - Disables the WDT and all of its stages - Sets some registers with default values - Sets the WDTs source clock prescaler (not applicable to RWDT) - Optionally enables the level interrupt The HAL context is initialized by storing the type (i.e. MWDT or RWDT) of this WDT instance, and a pointer to the associated registers.
Deinitialize a WDT and its HAL context This function deinitializes a WDT by feeding then disabling it. The WDT's interrupt is also cleared and disabled. The HAL context is cleared.