/* Prepares the picture to be saved in microSD.  */
static void Prepare_Picture(void)
/* Prepares the picture to be saved in microSD.  */
static void Prepare_Picture(void)
{ 
  uint32_t x_counter = 0, y_counter = 0;
  uint32_t address = SRAM_DEVICE_ADDR;
  uint16_t tmp = 0;
  address += (((BSP_LCD_GetXSize() - 80) * (BSP_LCD_GetYSize() - 81)) * 2);  
  BSP_SRAM_Init();
  for(y_counter = 10; y_counter < (BSP_LCD_GetYSize() - 70); y_counter++)
  { 
    for(x_counter = 70; x_counter < (BSP_LCD_GetXSize() - 10); x_counter++)
    {
      tmp = BSP_LCD_ReadPixel(x_counter, y_counter);
      BSP_SRAM_WriteData(address, &tmp, 1);
      address += 2;      
    }
    address -= 4*(BSP_LCD_GetXSize() - 80);
  }
}