1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/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
..
bhp sys/bhp_msg: add IPC based Bottom Half Processor 2022-08-19 12:01:30 +02:00
can drivers/mcp2515: apply the filter to a target mailbox 2022-06-30 10:07:24 +02:00
checksum sys/checksum: update CRC-16 documentation 2022-10-07 13:01:38 +02:00
coding sys/coding: add XOR based coding module 2023-02-06 16:21:57 +01:00
congure congure_abe: initial import of TCP ABE congestion control 2022-10-17 16:44:39 +02:00
cppunit core/irq: Add C++ wrapper 2023-01-13 13:58:07 +01:00
crypto sys/crypto: make AES_KEY struct private 2023-02-20 18:22:00 +01:00
ecc doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00
embUnit sys/embUnit: replace RIOT_FILE_RELATIVE with __FILE__ 2022-11-19 01:48:42 +01:00
entropy_source
event sys/event: add event sources 2023-01-19 13:05:15 +01:00
fido2 fido2/ctap: uncrustify files 2022-09-23 16:42:52 +02:00
fs cpu/native: add host fs access via VFS 2023-04-26 00:53:14 +02:00
hashes sys/hash/pbkdf2: Accept passwd as void * instead of uint8_t * 2022-11-18 13:51:32 +01:00
isrpipe
net Merge #18620 #19296 #19504 #19506 2023-04-25 15:46:11 +00:00
riotboot bootloaders: fix bootloader button logic 2023-03-08 13:07:42 +01:00
senml sys/phydat: Fix unit confusion 2023-02-23 16:44:24 +01:00
suit suit: start worker thread on demand 2022-09-05 07:46:56 +02:00
sys
test_utils sys/test_utils: mark expect() condition as likely true 2023-01-18 01:17:31 +01:00
usb usbus: remove deprecated USBUS_HANDLER_FLAG_TR_FAIL flag 2023-04-19 20:54:30 +02:00
xtimer doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00
ztimer ztimer/ztimer64: uncrustify code 2023-03-15 15:13:48 +01:00
ztimer64 ztimer(64): make xtimer_compat documetation visible (defgroup) 2022-08-09 14:26:49 +02:00
analog_util.h
app_metadata.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
architecture.h debug: add DEBUG_BREAKPOINT() macro 2023-04-27 13:19:17 +02:00
atomic_utils.h core/lib: Add macros/utils.h header 2023-01-07 09:47:44 +01:00
auto_init_utils.h sys/includes: replace kernel_defines.h 2022-11-22 13:39:35 +01:00
auto_init.h pkg/lwip: Start rework of netif initialisation 2021-08-20 14:56:46 +02:00
base64.h
bcd.h
benchmark.h sys/benchmark: make use of ztimer stopwatch 2023-03-06 14:31:09 +01:00
bhp.h sys/bhp: add initial support for generic Bottom Half Processor 2022-08-11 10:57:53 +02:00
bit.h sys/bit: add bit_checkXX() functions 2021-06-02 14:07:17 +02:00
bitfield.h sys/bitfield: don't set unrelated bits in bf_{set, clear}_all() 2023-03-17 00:08:10 +01:00
bloom.h codespell: fix remaining issues 2022-09-16 14:00:35 +02:00
byteorder.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
c11_atomics_compat.hpp doc: Improve C++ documentation 2021-12-15 18:58:23 +01:00
cb_mux.h
chunked_ringbuffer.h sys/chunked_ringbuffer: move config to CONFIG_ namespace 2022-03-04 09:35:39 +01:00
clif.h sys/clif: Fixing out of bounds read under certain conditions 2023-02-23 15:45:03 +01:00
clk.h sys: introduce coreclk utility function 2021-12-15 12:41:36 +01:00
color.h
congure.h congure_test: initial import of CongURE test framework 2021-02-26 10:08:12 +01:00
cppunit.hpp core/irq: Add C++ wrapper 2023-01-13 13:58:07 +01:00
dbgpin.h sys/includes: replace kernel_defines.h 2022-11-22 13:39:35 +01:00
debug_irq_disable.h cpu/cortexm_common: measure time spent with IRQ disabled 2022-11-24 21:27:20 +01:00
div.h
eepreg.h
embUnit.h sys/include: remove kernel_defines.h where not needed 2022-11-22 13:39:35 +01:00
entropy_source.h
event.h sys/event: ensure that a queue has a waiter before waiting for flags 2022-04-14 17:10:24 +02:00
evtimer_mbox.h
evtimer_msg.h
evtimer.h sys/includes: replace kernel_defines.h 2022-11-22 13:39:35 +01:00
flash_utils.h sys/flash_utils: add helpers for placing variables in flash 2023-02-27 12:31:03 +01:00
fmt_table.h
fmt.h sys/fmt: add print_bytes_hex() 2022-11-15 22:05:42 +01:00
frac.h
fuzzing.h fuzzing: Add uri_parser fuzzer setup 2022-12-19 13:03:45 +01:00
hashes.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
iolist.h sys/iolist: introduce iolist_to_buffer() 2022-05-02 23:23:52 +02:00
irq.hpp core/irq: Add C++ wrapper 2023-01-13 13:58:07 +01:00
isrpipe.h sys/isrpipe: add isrpipe_write 2021-12-07 13:00:58 +01:00
luid.h
matstat.h
memarray.h
mineplex.h
od.h
phydat.h sys/phydat: use flash_utils 2023-02-27 12:31:03 +01:00
pipe.h
pm_layered.h sys/pm_layered: align pm_blocker_t for speed 2022-11-04 16:50:52 +01:00
progress_bar.h sys/progress_bar: add Konfig configuration 2021-04-07 12:05:00 +02:00
ps.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
ptrtag.h
puf_sram.h sys/puf_sram: cleanup header 2022-12-05 16:13:21 +01:00
random.h random: use void * in random_bytes() 2022-07-26 19:46:14 +02:00
rtc_utils.h sys/rtc_utils: small doc fix of rtc_mktime 2022-06-12 15:49:01 +02:00
saul_reg.h drivers/saul: use const qualifier for data to write 2022-05-23 08:35:27 +02:00
sched_round_robin.h sys/sched_round_robin: Add a round robin scheduler module 2021-11-11 13:18:52 +01:00
schedstatistics.h schedstatistics: Convert to ztimer 2021-12-07 16:31:15 +01:00
sema_inv.h
sema.h sys/sema: use sema_ztimer64 to implement old sema api 2022-03-10 14:19:44 +01:00
senml.h sys/includes: replace kernel_defines.h 2022-11-22 13:39:35 +01:00
seq.h
shell_lock.h sys/shell: add pseudomodule shell_lock_auto_locking 2022-06-08 12:53:48 +02:00
shell.h sys/shell: use flash_utils 2023-02-27 12:31:03 +01:00
stdio_base.h sys/includes: replace kernel_defines.h 2022-11-22 13:39:35 +01:00
stdio_nimble.h doc: sort all stdio implementations into sys_stdio group 2023-01-13 11:08:22 +01:00
stdio_rtt.h sys/stdio_rtt: move documentation in doc.txt 2023-02-05 15:49:20 +01:00
stdio_semihosting.h doc: sort all stdio implementations into sys_stdio group 2023-01-13 11:08:22 +01:00
stdio_uart.h doc: sort all stdio implementations into sys_stdio group 2023-01-13 11:08:22 +01:00
string_utils.h sys/includes: replace kernel_defines.h 2022-11-22 13:39:35 +01:00
suit.h suit: replace SUIT_URL_MAX with CONFIG_SOCK_URLPATH_MAXLEN 2022-06-01 13:00:51 +02:00
time_units.h sys/include/time_units.h: add more constants 2022-05-05 11:31:45 +02:00
timex.h sys: factor out US_PER_SEC etc from timex.h into time_units.h 2021-12-15 14:33:20 +01:00
tiny_strerror.h sys/tiny_strerror: add tiny_strerror_minimal 2022-10-18 23:30:15 +02:00
tm.h sys/include: remove kernel_defines.h where not needed 2022-11-22 13:39:35 +01:00
trace.h
trickle.h sys/trickle: Remove xtimer and only use ztimer 2023-03-17 12:04:44 +01:00
tsrb.h sys/tsrb: add tsrb_clear 2021-12-06 11:53:59 +01:00
unaligned.h
universal_address.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
uri_parser.h sys/uri_parser: Adding the port as uint16 2022-09-08 11:32:49 +02:00
usb_board_reset_internal.h
usb_board_reset.h
usb.h usbus: Add functions to query max packet sizes 2023-03-31 16:43:44 +02:00
ut_process.h ut_process: initial import of a URI template processor 2021-09-16 18:18:48 +02:00
utlist.h sys/utlist: include stddef.h 2022-02-12 18:30:58 +01:00
uuid.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
vfs_default.h cpu/native: add host fs access via VFS 2023-04-26 00:53:14 +02:00
vfs_util.h sys/vfs_util: add recursive unlink 2022-08-03 22:09:21 +02:00
vfs.h sys/vfs: add force option to vfs_umount() 2023-02-28 17:24:03 +01:00
volatile_utils.h
xtimer.h sys/xtimer: add missing "modules.h" include to xtimer.h 2023-05-02 13:52:48 +02:00
zptr.h
ztimer64.h sys/ztimer: add ztimer64_xtimer_compat 2022-02-24 09:10:58 +01:00
ztimer.h Merge #19392 #19398 #19399 2023-03-16 12:09:46 +00:00