mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
718a4513b5
19368: debug: add DEBUG_BREAKPOINT() macro, set breakpoint on failed assertion r=benpicco a=benpicco 19529: cpu/stm32/periph/dac: optimize setting DAC r=benpicco a=Enoch247 ### Contribution description The current implmentation right shifted the 16 bit value passed into `dac_set()` down to the 12 bits that the DAC is actually capable of. This patch drops the shift and instead writes the 16 bit value to the DAC's left aligned 12 bit wide data holding register. ### Testing procedure do something like: ``` c #include "perip/dac.h" int main(void) { dac_set(DAC_LINE(0), 0xffff/2); return 0; } ``` - observe DAC's output is half of vref ### Issues/PRs references - none known 19531: tests/unittests: allow passing `UNIT_TESTS` via env r=benpicco a=kaspar030 Co-authored-by: Benjamin Valentin <benpicco@beuth-hochschule.de> Co-authored-by: Joshua DeWeese <jdeweese@primecontrols.com> Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de> |
||
---|---|---|
.. | ||
include | ||
ldscripts | ||
periph | ||
cortexm_init.c | ||
Kconfig | ||
Makefile | ||
Makefile.dep | ||
Makefile.features | ||
Makefile.include | ||
mpu.c | ||
panic.c | ||
thread_arch.c | ||
vectors_cortexm.c |