I've been trying to find a way of temporarily disabling SPI in at ATMEGA 328P-PU.
What I want to do is have the AVR boot, disable SPI, do a level check on the SS (PB2) pin (usually used by SPI), then re-enables SPI.
I don't want to disable SPI permanently (so cannot use the fuse). Looking through the data sheet I cannot seem to find a way of doing this. Does anyone know if this is possible?