title: Structure and memcpy warning
body: <p>I would like copy data from flas into RAM (microcontroller) in structure. And I have structure initialization:</p>
  
  <pre><code>typedef struct Day{
      long AM : 24;
      long PM : 24;
  }Day;
  
  struct Data{
      unsigned long Lang   : 8;
      struct Day dawt[7];
  
  }Data;
  </code></pre>
  
  <p>Load from flash into RAM I have with this function</p>
  
  <pre><code>void LoadFromFlash(){
      int count;
  
      memcpy(Data.Lang, F_DATA, 1);
      for(count = 0; count &lt; 7;  count++){
  
          memcpy(Data.dawt[count].AM, F_DATA, 3);
          memcpy(Data.dawt[count].PM, F_DATA, 3);
      }
  }
  </code></pre>
  
  <p>I get warning: </p>
  
  <pre><code>passing argument 1 of 'memcpy' makes pointer from integer without a cast
  </code></pre>
  
  <p>for all mempcy function </p>
  
  <p>and </p>
  
  <pre><code>passing argument 2 of 'memcpy' makes pointer from integer without a cast
  </code></pre>
  
  <p>for #define statement</p>
  
  <pre><code>#define F_DATA      0x00006000
  </code></pre>
  
  <p>What's wrong. </p>