allow lpm_shutdown without a wake-up pin set

This commit is contained in:
Marcus Linderoth 2015-10-28 11:06:26 +01:00
parent 566b251797
commit 1906bff17c

View file

@ -130,8 +130,10 @@ lpm_shutdown(uint32_t wakeup_pin, uint32_t io_pull, uint32_t wake_on)
} }
/* Configure the wakeup trigger */ /* Configure the wakeup trigger */
if(wakeup_pin != IOID_UNUSED) {
ti_lib_gpio_dir_mode_set((1 << wakeup_pin), GPIO_DIR_MODE_IN); ti_lib_gpio_dir_mode_set((1 << wakeup_pin), GPIO_DIR_MODE_IN);
ti_lib_ioc_port_configure_set(wakeup_pin, IOC_PORT_GPIO, io_cfg); ti_lib_ioc_port_configure_set(wakeup_pin, IOC_PORT_GPIO, io_cfg);
}
/* Freeze I/O latches in AON */ /* Freeze I/O latches in AON */
ti_lib_aon_ioc_freeze_enable(); ti_lib_aon_ioc_freeze_enable();