/* Reload the count of the running Watchdog Timer. 
Reload the value of WDT Load register. When this register is written to, the count is immediately restarted from the new value. */
enum status_code wdt_set_reload_count(struct wdt_module *const module, uint32_t load_value)
/* Reload the count of the running Watchdog Timer. 
Reload the value of WDT Load register. When this register is written to, the count is immediately restarted from the new value. */
enum status_code wdt_set_reload_count(struct wdt_module *const module, uint32_t load_value)
{
	if (load_value == 0) {
		return STATUS_ERR_BAD_DATA;
	} else {
		if (module->hw->WDOGLOCK.bit.ENABLE_STATUS) {
			module->hw->WDOGLOCK.reg = WDT_WRITE_ACCESS_KEY;
			module->hw->WDOGLOAD.reg = load_value;
			module->hw->WDOGLOCK.reg = WDT_WDOGLOCK_ENABLE_STATUS;
		} else {
			module->hw->WDOGLOAD.reg = load_value;
		}
	}
	return STATUS_OK;
}