1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00
RIOT/core/lib
bors[bot] 718a4513b5
Merge #19368 #19529 #19531
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>
2023-05-02 18:08:42 +00:00
..
include Merge #19368 #19529 #19531 2023-05-02 18:08:42 +00:00
assert.c core/assert: set breakpoint on failed assertion 2023-04-27 13:19:17 +02:00
atomic_c11.c core: split out library code 2022-03-09 21:43:05 +01:00
atomic_sync.c core: split out library code 2022-03-09 21:43:05 +01:00
bitarithm.c bitarithm: Move extern const out of static inline functions 2022-05-29 13:59:39 +02:00
clist.c core: split out library code 2022-03-09 21:43:05 +01:00
init.c core/init: allow to run callback on main exit 2023-01-20 17:41:30 +01:00
Makefile core: split out library code 2022-03-09 21:43:05 +01:00
panic.c core/assert: print last instruction in assert() 2022-06-12 14:18:53 +02:00
priority_queue.c core: split out library code 2022-03-09 21:43:05 +01:00
ringbuffer.c core: split out library code 2022-03-09 21:43:05 +01:00
rmutex.c core: split out library code 2022-03-09 21:43:05 +01:00