/* Locks the watchdog configuration and starts the watchdog timer. 
This function sets the watchdog "lock" register, which prevents software from re-configuring the watchdog. This action will also set the enable bit for the watchdog timer, so it will start counting immediately. */
void am_hal_wdt_lock_and_start(void)
/* Locks the watchdog configuration and starts the watchdog timer. 
This function sets the watchdog "lock" register, which prevents software from re-configuring the watchdog. This action will also set the enable bit for the watchdog timer, so it will start counting immediately. */
void am_hal_wdt_lock_and_start(void)
{
    AM_REGn(WDT, 0, LOCK) = AM_REG_WDT_LOCK_LOCK_KEYVALUE;
}