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 cpu/*/atomic_utils_arch.h: Add volatile qualifier 2020-11-24 14:00:52 +01:00
backtrace.h cpu/native: rename trace -> backtrace 2020-06-04 14:37:01 +02:00
c11_atomics_compat_cpu.hpp native: fix c11_atomic sizes on FreeBSD 2020-01-23 13:23:02 +01:00
can_params.h boards/native: only one CAN_DLL by default 2022-04-20 14:40:06 +02:00
candev_linux.h boards/native: only one CAN_DLL by default 2022-04-20 14:40:06 +02:00
cpu_conf.h boards/native: Remove macOS as native target 2022-10-25 19:11:23 +02:00
cpu.h cpu: cpu_print_last_instruction() -> cpu_get_caller_pc() 2022-09-15 10:49:56 +02:00
eeprom_native.h native: pass eeprom file path via command line 2020-04-29 08:56:33 +02:00
gpiodev_linux.h cpu/native: add Linux GPIO implementation 2020-08-25 13:53:14 +02:00
mtd_native.h cpu/native: change mtd_native_dev_t parent name to base 2022-02-09 12:21:53 +01:00
native_cli_eui_provider.h socket_zep: allow to specify MAC address of ZEP device 2021-02-16 18:57:27 +01:00
native_internal.h cpu/native: wire up more fs related syscalls 2023-04-25 13:28:20 +02:00
netdev_tap_params.h cpu/native: fix doxygen grouping 2018-06-11 19:12:02 +02:00
netdev_tap.h native: Remove code used for __MACH__ target 2022-12-22 17:57:25 +01:00
periph_conf.h cpu/native: define default CLOCK_CORECLOCK constant 2021-12-15 12:41:36 +01:00
periph_cpu.h cpu/native: pm: fix build with pm_layered 2020-12-08 18:24:02 +01:00
socket_zep_params.h socket_zep: don't listen on local address by default 2020-10-29 12:46:10 +01:00
socket_zep.h ieee802154/hal: migrate to request_op and confirm_op 2022-01-10 13:57:02 +01:00
spidev_linux.h cpu/native: Adapt HW SPI for HW GPIO support 2020-08-25 13:53:14 +02:00
thread_arch.h cpu/native: fix doxygen grouping warnings 2021-09-11 12:45:15 +02:00
tty_uart.h cpu/native: fix doxygen grouping 2018-06-11 19:12:02 +02:00