title: How do you transfer single byte into word in C for Cortex?
body: <p>Without resorting to typedef union, is there working macro for Cortex-M0 in C where it copy byte data into word within 31 to 23.</p>
  
  <p>I have recieved data from spi and need to copy this data into word.</p>
  
  <p>The SRAM does not work with bit manipulation, so I use "How do you set, clear and toggle a single bit in C?" but what about the byte.</p>
  
  <p>thanks</p>
  
  <p>Riscy</p>