qmk_firmware/quantum
Stefan Kerkmann 5478051d74
[Core] quantum: util: add bit and bitmask helpers (#24229)
quantum: util: add bit and bitmask helpers

These helpers are handy and can prevent off-by-one errors when working
with registers and general low level bit manipulation tasks. The macros
themself are inspired by the bits.h macros from the linux kernel source
code.

Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
Co-authored-by: Pascal Getreuer <50221757+getreuer@users.noreply.github.com>
2024-10-12 18:48:00 +02:00
..
audio
backlight
bootmagic
debounce
encoder/tests
keymap_extras
led_matrix
logging
midi
os_detection/tests
painter
pointing_device
process_keycode
rgb_matrix
rgblight
send_string
sequencer
split_common
unicode
wear_leveling
action.c
action.h
action_code.h
action_layer.c
action_layer.h
action_tapping.c
action_tapping.h
action_util.c
action_util.h
basic_profiling.h
bits.h [Core] quantum: util: add bit and bitmask helpers (#24229) 2024-10-12 18:48:00 +02:00
bitwise.c
bitwise.h Migrate some tmk_core files to quantum (#11791) 2021-02-07 23:16:15 +00:00
caps_word.c
caps_word.h
color.c
color.h
command.c
command.h
crc.c
crc.h
debounce.h
deferred_exec.c
deferred_exec.h
digitizer.c
digitizer.h
dip_switch.c
dip_switch.h
dynamic_keymap.c
dynamic_keymap.h
eeconfig.c
eeconfig.h
encoder.c
encoder.h
haptic.c
haptic.h
joystick.c
joystick.h
keyboard.c
keyboard.h
keycode.h
keycode_config.c
keycode_config.h
keycodes.h
keymap_common.c
keymap_common.h
keymap_introspection.c
keymap_introspection.h
leader.c
leader.h
led.c
led.h
led_tables.c
led_tables.h
main.c
matrix.c
matrix.h
matrix_common.c
modifiers.h
mousekey.c
mousekey.h
os_detection.c
os_detection.h
pointing_device_internal.h
programmable_button.c Programmable Button API refactor and improve docs (#18641) 2022-10-15 14:33:24 +11:00
programmable_button.h
quantum.c
quantum.h
quantum_keycodes.h
quantum_keycodes_legacy.h
raw_hid.h
repeat_key.c
repeat_key.h
ring_buffer.h
secure.c
secure.h
steno_keycodes.h
sync_timer.c
sync_timer.h
tri_layer.c
tri_layer.h
util.h [Core] quantum: util: add bit and bitmask helpers (#24229) 2024-10-12 18:48:00 +02:00
variable_trace.c
variable_trace.h
via.c
via.h
virtser.h
wpm.c
wpm.h