When are you allowed to change regs using |= and &= and when are you not?
Posted on March 22, 2016 at 10:12 I have recently reversed-engineer some HAL source code and I see that sometimes a temporary variable is used to manipulate a register, for example uint32_t tmp = 0; tmp = hdma->Instance->CR; tmp |= hd...