diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-12-19 20:56:34 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-12-23 22:15:26 -0500 |
commit | 88325b6c9334bb87702ab80ac6895f0b6cea8398 (patch) | |
tree | e1f741cd14f7952566c7a457fc56b0767bd04462 /src/stm32/spi.c | |
parent | 20ac48f68011007b0a5e47c51eb7e5dda30e2994 (diff) | |
download | kutter-88325b6c9334bb87702ab80ac6895f0b6cea8398.tar.gz kutter-88325b6c9334bb87702ab80ac6895f0b6cea8398.tar.xz kutter-88325b6c9334bb87702ab80ac6895f0b6cea8398.zip |
stm32: Rework register access on stm32f0_adc.c
Avoid read-modify-write operations where possible. The register
values are in a known state so prefer absolute writes.
Improve handling of race conditions with hardware updates.
Remove the adc reference from "struct gpio_adc" as it is a constant.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/spi.c')
0 files changed, 0 insertions, 0 deletions