Hi David,
You could use the pin sharing option to be able to use the same pin with your SPI and GPIO components, and use the set direction method of the GPIO component to set the pin as input before switching to low power modes.
Please take a look to the following post created by our colleague Erich Styger, it explains how to enable the pin sharing option:
Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------