title: Is it possible to read and/or write ports via a C variable instead of using GPIO_Pin_N values?
body: <p>All the sample code I can find accesses ports like so:</p>
  
  <pre><code>GPIO_SetBits(GPIOE, GPIO_Pin_9 | GPIO_Pin_13);
  </code></pre>
  
  <p>Which looked OK at first, until I tried to reference LEDs (my port E) by index (0-7). A <code>switch</code> or a LUT is a solution, but I don't like either. Is it possible to declare e. g. <code>uint8_t</code> and map it to the specific range of pins of a certain port?</p>