1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core
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 core: move macros/math.h to core/lib/include/macros 2023-05-02 14:02:15 +02:00
lib Merge #19368 #19529 #19531 2023-05-02 18:08:42 +00:00
cond.c core/*: realign ENABLE_DEBUG 2020-10-23 00:45:56 +02:00
doc.txt core/doc: fix alignment 2020-04-21 15:10:56 +02:00
Kconfig core: add core_mutex_debug to aid debugging deadlocks 2023-04-25 15:10:34 +02:00
Makefile core/thread, mutex: provide dummy implementation for riotboot 2022-05-02 13:18:39 +02:00
mbox.c core/mbox: fix race condition 2022-11-22 22:35:13 +01:00
msg_bus.c core: Access internal vars via helper funcs 2020-08-06 16:47:33 +02:00
msg.c core: replace RIOT_FILE_RELATIVE with __FILE__ 2022-11-19 01:48:42 +01:00
mutex.c core: add core_mutex_debug to aid debugging deadlocks 2023-04-25 15:10:34 +02:00
sched.c core/sched.c: fix undefined behavior on 8-bit/16-bit 2022-09-09 21:55:17 +02:00
thread_flags.c core: apply uncrustify patches 2021-02-02 22:21:14 +01:00
thread.c core/thread: Fix up stack and TLS alignments 2023-03-04 01:18:36 -08:00