stm32: Update register read/write to the register definition.