Added 'volatile' keyword. Still there is a problem with 8bit registers.

Setting one 8 bit register with uint8_t* is affecting the rest of the
32bit register. PORTx pointers are not usable with this.