mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
Set SPI pins to a low leakage state
This commit is contained in:
parent
421fbfae25
commit
e893c914b6
@ -113,6 +113,16 @@ board_spi_close()
|
|||||||
ti_lib_rom_prcm_peripheral_run_disable(PRCM_PERIPH_SSI0);
|
ti_lib_rom_prcm_peripheral_run_disable(PRCM_PERIPH_SSI0);
|
||||||
ti_lib_prcm_load_set();
|
ti_lib_prcm_load_set();
|
||||||
while(!ti_lib_prcm_load_get());
|
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 New Issue
Block a user