title: Can I pass an IO port as a parameter to a function?
body: <p>I try to make function that take IO register parameter (AVR 32 PORTA) to manipulate it .but it doesn't work .</p>
  
  <pre><code>/*my function */
  U8_t set_bits( U8_t port, U8_t mask)
  {
  port |= mask;
  return port ;
  }
  
  
  /*call of function*/
  PORTA=set_bits(PORTA , 0xF0);
  </code></pre>