title: error: conflicting types for 'SpimodFlashWrite'
body: <p>i am getting error in function when i call this function to another function may be second argument int u16 address i am passing wrong </p>
  
  <pre><code>int SpimodFlashWrite(XSpi *SpiPtr, u16 Address, u16 ByteCount)
  {
  u16 Index;
  
  /*
   * Setup the write command with the specified address, and data to be
   * written to the flash.
   */
  WriteBuffer[MOD_COMMAND_OFFSET]       = MOD_COMMAND_WRITE;
  WriteBuffer[MOD_ADDRESS_BYTE1_OFFSET] = (u8) (Address &gt;&gt; 16);
  WriteBuffer[MOD_ADDRESS_BYTE2_OFFSET] = (u8) (Address &gt;&gt; 8);
  WriteBuffer[MOD_ADDRESS_BYTE3_OFFSET] = (u8) (Address);
  
  /*
   * Prepare the write buffer. Fill in the data that is to be written into
   * the Flash.
   */
  for(Index = 4; Index &lt; (ByteCount + MOD_READ_WRITE_EXTRA_BYTES);Index++)
  {
      WriteBuffer[Index] = (u8)(MOD_TEST_BYTE + Index);
  }
  
  /*
   * Send the write command, address, and data to the Flash.
   * No receive buffer is specified since there is nothing to receive.
   */
  TransferInProgress = TRUE;
  XSpi_Transfer(SpiPtr, WriteBuffer, NULL,
          ByteCount + MOD_READ_WRITE_EXTRA_BYTES)
                          ;
  
  /*
   * Wait till the Transfer is complete and check if there are any errors
   * in the transaction.
   */
  while (TransferInProgress);
  if(ErrorCount != 0) {
      ErrorCount = 0;
      return XST_FAILURE;
  }
  
  return XST_SUCCESS;
  </code></pre>
  
  <p>}</p>
  
  <p>if i am using this function like this </p>
  
  <pre><code> `int express_configure( void )
    {
  
   int Status;
   unsigned char b[3];
    b[0] = 0xD4;
   b[1]=29;b[2]=0x80;
   Status = SpimodFlashWrite(&amp;Spi, b, 3);
  </code></pre>
  
  <p>`</p>
  
  <p>error: conflicting types for 'SpimodFlashWrite'</p>
  
  <p>Thanks</p>