1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/native/include
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
..
architecture_arch.h cpu/native: define ARCHITECTURE_BREAKPOINT() 2023-04-27 13:19:17 +02:00
async_read.h tree wide: fix typos in comments found by codespell 2023-05-02 09:52:06 +02:00
atomic_utils_arch.h
backtrace.h
c11_atomics_compat_cpu.hpp
can_params.h
candev_linux.h
cpu_conf.h
cpu.h
eeprom_native.h
gpiodev_linux.h
mtd_native.h
native_cli_eui_provider.h
native_internal.h cpu/native: wire up more fs related syscalls 2023-04-25 13:28:20 +02:00
netdev_tap_params.h
netdev_tap.h
periph_conf.h
periph_cpu.h
socket_zep_params.h
socket_zep.h
spidev_linux.h
thread_arch.h
tty_uart.h