Set SPI pins to a low leakage state
This commit is contained in:
parent
421fbfae25
commit
e893c914b6
1 changed files with 10 additions and 0 deletions
|
@ -113,6 +113,16 @@ board_spi_close()
|
|||
ti_lib_rom_prcm_peripheral_run_disable(PRCM_PERIPH_SSI0);
|
||||
ti_lib_prcm_load_set();
|
||||
while(!ti_lib_prcm_load_get());
|
||||
|
||||
/* Restore pins to a low-consumption state */
|
||||
ti_lib_ioc_pin_type_gpio_input(BOARD_IOID_SPI_MISO);
|
||||
ti_lib_ioc_io_port_pull_set(BOARD_IOID_SPI_MISO, IOC_IOPULL_DOWN);
|
||||
|
||||
ti_lib_ioc_pin_type_gpio_input(BOARD_IOID_SPI_MOSI);
|
||||
ti_lib_ioc_io_port_pull_set(BOARD_IOID_SPI_MOSI, IOC_IOPULL_DOWN);
|
||||
|
||||
ti_lib_ioc_pin_type_gpio_input(BOARD_IOID_SPI_CLK_FLASH);
|
||||
ti_lib_ioc_io_port_pull_set(BOARD_IOID_SPI_CLK_FLASH, IOC_IOPULL_DOWN);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
Loading…
Reference in a new issue