/* Writes a Half-word buffer to the FSMC SRAM memory.  */
void SRAM_WriteBuffer(uint16_t *pBuffer, uint32_t WriteAddr, uint32_t NumHalfwordToWrite)
/* Writes a Half-word buffer to the FSMC SRAM memory.  */
void SRAM_WriteBuffer(uint16_t *pBuffer, uint32_t WriteAddr, uint32_t NumHalfwordToWrite)
{
  for(; NumHalfwordToWrite != 0; NumHalfwordToWrite--)
  {
    *(uint16_t *) (Bank1_SRAM3_ADDR + WriteAddr) = *pBuffer++;  
    WriteAddr += 2;
  }   
}