/* Enables asynchronous callback generation for a given type. 
Enables asynchronous callbacks for a given callback type. This must be called before an external interrupt channel will generate callback events. */
enum status_code wdt_enable_callback(const enum wdt_callback type)
/* Enables asynchronous callback generation for a given type. 
Enables asynchronous callbacks for a given callback type. This must be called before an external interrupt channel will generate callback events. */
enum status_code wdt_enable_callback(const enum wdt_callback type)
{
	Wdt *const WDT_module = WDT;
	switch (type)
	{
	case WDT_CALLBACK_EARLY_WARNING:
		WDT_module->INTENSET.reg = WDT_INTENSET_EW;
		system_interrupt_enable(SYSTEM_INTERRUPT_MODULE_WDT);
		return STATUS_OK;
	default:
		Assert(false);
		return STATUS_ERR_INVALID_ARG;
	}
}