I am looking at the implementation of wiced_spi_init and wiced_spi_deinit and they are the same in wiced_platform_common.c... Is this a bug or design feature? I would have expected wiced_spi_deinit to call platform_spi_deinit and I would also have expected platform_spi_deinit to at least return WICED_SUCCESS if it has no current work to do.
I looked into this more and this is not by design. This API needs to be repaired. Also the interface needs to have some more insides added to it to handle multiple devices being connected to the bus that is not currently present