This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI Slave pin config

I use spi_slave with SDK 9.0.0. SPI slave is working, but there is some current leak when it become system off mode. I think the reason is that MISO is HI-Z at that time. Is it possible to change the configuration like the following?

NRF_GPIO->PIN_CNF[p_spi_slave_config->pin_miso] = 
    (GPIO_PIN_CNF_SENSE_Disabled << GPIO_PIN_CNF_SENSE_Pos) |
    (m_drive_config << GPIO_PIN_CNF_DRIVE_Pos)              |
    (*GPIO_PIN_CNF_PULL_Pulldown* << GPIO_PIN_CNF_PULL_Pos)   |
    (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos)  |
    (GPIO_PIN_CNF_DIR_Input << GPIO_PIN_CNF_DIR_Pos);
Parents Reply Children
No Data
Related