/* Writes a data buffer in flash (data are 32-bit aligned).  */
uint32_t FLASH_If_Write(uint32_t Address, uint32_t Data)
/* Writes a data buffer in flash (data are 32-bit aligned).  */
uint32_t FLASH_If_Write(uint32_t Address, uint32_t Data)
{
  if(Address <= (uint32_t) USER_FLASH_LAST_PAGE_ADDRESS)
  {
    if(HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, Address, Data)!= HAL_OK)
      return (1);
  }
  else
  {
    return (1);
  }
  return (0);
}