swm050: Adds WDT peripheral

Reviewed-by: Karl Palsson <karlp@tweak.net.au> (Fixed an &| in
wdt_set_time)
This commit is contained in:
Caleb Szalacinski
2019-10-27 15:12:09 -05:00
committed by Karl Palsson
parent dd18b9fdbc
commit 47b59e2df4
5 changed files with 249 additions and 1 deletions

View File

@@ -37,6 +37,6 @@ not get locked out of the MCU.
*/
void pwr_sleep(void)
{
SYSCTL_SYS_CFG_2 |= (1<<4);
SYSCTL_SYS_CFG_2 |= SYSCTL_SYS_CFG_2_SLEEP;
}
/**@}*/