/* Deinitialize SPI peripheral. Turn off the SPI peripheral and disable SPI GPIO pins.  */
void MICROSD_Deinit(void)
/* Deinitialize SPI peripheral. Turn off the SPI peripheral and disable SPI GPIO pins.  */
void MICROSD_Deinit(void)
{
  USART_Reset(MICROSD_USART);
  GPIO_PinModeSet(MICROSD_GPIOPORT, MICROSD_MOSIPIN, gpioModeDisabled, 0);
  GPIO_PinModeSet(MICROSD_GPIOPORT, MICROSD_MISOPIN, gpioModeDisabled, 0);
  GPIO_PinModeSet(MICROSD_GPIOPORT, MICROSD_CSPIN,   gpioModeDisabled, 0);
  GPIO_PinModeSet(MICROSD_GPIOPORT, MICROSD_CLKPIN,  gpioModeDisabled, 0);
}