/* Puts the Flash chip in deep power down mode.  */
void BOARD_flashDeepPowerDown(void)
/* Puts the Flash chip in deep power down mode.  */
void BOARD_flashDeepPowerDown(void)
{
   flashSPIInit();
   GPIO_PinOutClear( BOARD_FLASH_PORT_SPI_CS, BOARD_FLASH_PIN_SPI_CS );
   UTIL_delay( 10 );
   GPIO_PinOutSet( BOARD_FLASH_PORT_SPI_CS, BOARD_FLASH_PIN_SPI_CS );
   GPIO_PinOutClear( BOARD_FLASH_PORT_SPI_CS, BOARD_FLASH_PIN_SPI_CS );
   USART_SpiTransfer( BOARD_FLASH_USART, 0xB9 );
   GPIO_PinOutSet( BOARD_FLASH_PORT_SPI_CS, BOARD_FLASH_PIN_SPI_CS );
   USART_Reset( BOARD_FLASH_USART );
   GPIO_PinModeSet( gpioPortC, 6, gpioModeDisabled, 0 );
   GPIO_PinModeSet( gpioPortC, 7, gpioModeDisabled, 0 );
   GPIO_PinModeSet( gpioPortC, 8, gpioModeDisabled, 0 );
   return;
}