
Simplify I2C and SPI Register Access With regmap
Replace hand-written register accessors with regmap: one config for I2C or SPI, read and write, update_bits, caching and a debugfs register dump on Linux 6.12.
Tag
255 posts

Replace hand-written register accessors with regmap: one config for I2C or SPI, read and write, update_bits, caching and a debugfs register dump on Linux 6.12.

Type gui in LLDB to open a full-screen terminal interface with source, variables and threads windows, and learn the keys that step, resume and quit it.

Learn the z/Architecture registers, the program status word and the main instruction formats, with a hand-decoded example of how an HLASM line becomes bytes.

Build a complete I2C client driver for a TMP102-style sensor on Linux 6.12: id tables, probe, SMBus reads, a sysfs attribute, device tree node and test output.

Find what writes a variable with LLDB watchpoint set variable and expression, choose read, write or both, set a size, add conditions and know the limits.

Make a microcontroller a class-compliant USB MIDI device with TinyUSB: the 4-byte event packet, note and control change messages, and receiving from the host.

A GDB-to-LLDB command map by task: running, breakpoints, stepping, variables, memory, registers, threads and settings, with the cases where the two differ.

Control hyperfine 1.19 with --warmup, --prepare, --setup, --cleanup and --parameter-scan to measure cold and warm runs and sweep threads or compilers.

Extract a recipe's source into a Git tree with devtool modify on Yocto 5.0, edit and rebuild it, then turn your commits into patches with devtool finish.

Move a NASM boot sector into 32-bit protected mode, set up a flat GDT and a stack, then call a freestanding C function that writes to VGA text memory.

Run a function at task level from a FreeRTOS interrupt with xTimerPendFunctionCallFromISR: arguments, config flags, failure modes and alternatives.

Run a USB CDC serial port on the ESP32-S3 native USB pins with esp_tinyusb in ESP-IDF 5, and know what happens to the built-in USB serial and JTAG.