diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-01-27 21:15:33 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-02-02 15:17:14 -0500 |
commit | 95eb00740b9582772d6e5584d2cee2085c49016f (patch) | |
tree | 119df70f274366ceebb4eda806fda62dca6e6bf7 /src/ctr.h | |
parent | c0371c94c899a86cfe63492ff9693fd3229f04e0 (diff) | |
download | kutter-95eb00740b9582772d6e5584d2cee2085c49016f.tar.gz kutter-95eb00740b9582772d6e5584d2cee2085c49016f.tar.xz kutter-95eb00740b9582772d6e5584d2cee2085c49016f.zip |
stm32: Avoid read+write modify instructions in can.c
Prefer explicitly setting the hardware registers and avoid using C
read and modify instructions where possible. This avoids race
conditions where an interrupt or hardware change could cause subtle
corruption of the register state.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/ctr.h')
0 files changed, 0 insertions, 0 deletions