1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/cortexm_common
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 cpu/cortexm_common: define ARCHITECTURE_BREAKPOINT() 2023-04-27 13:19:17 +02:00
ldscripts cpu: Add TLS symbols for newer picolibc to linker scripts 2023-03-02 22:55:22 -08:00
periph periph/flashpage: fix wrong doxygen group 2021-11-15 17:25:59 +01:00
cortexm_init.c cortexm: initialise fpu early 2021-04-29 13:19:47 +02:00
Kconfig cpu/cortexm_common: enable FPU on cortexm33 2022-05-05 21:16:10 +02:00
Makefile cpu/cortexm_common: Drop LTO workaround for Cortex M thread_arch.c 2020-07-15 10:37:15 +02:00
Makefile.dep cpu: make newlib_nano a DEFAULT_MODULE 2021-05-04 12:12:36 +02:00
Makefile.features cpu/cortexm_common: enable FPU on cortexm33 2022-05-05 21:16:10 +02:00
Makefile.include sys/riotboot: common default NUM_SLOT, SLOT_* config 2023-04-18 06:20:14 +02:00
mpu.c cpu/cortexm_common: add support for Cortex-M33 2020-10-06 17:11:26 +02:00
panic.c cpu*: fix doxygen grouping 2018-06-11 19:12:02 +02:00
thread_arch.c cpu/cortexm: clear FPU state in cpu_switch_context_exit() 2022-10-05 22:17:26 +02:00
vectors_cortexm.c cpu/cortexm_common: allow to overwrite nmi_handler 2022-06-20 18:22:22 +02:00