Skip to content
systemcoding.dev

Tag

beginner

445 posts

Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, Raspberry Pi and Debian logos.
Embedded Linux

Describe an I2C Sensor in a Device Tree Node

Add a TMP102 temperature sensor to an I2C bus in a device tree with compatible, reg and status, then check that Linux bound the driver and exposes a reading.

6 min read
Flat illustration of RTOS tasks taking turns on a timeline, with the C, Rust and Arm logos.
RTOS

Run Periodic Code With Zephyr k_timer

Run code every N milliseconds in Zephyr with k_timer, including one-shot and periodic modes, the expiry callback rules and how to wake a thread from it.

7 min read
Flat illustration of user space above the system call boundary, the kernel and the hardware, with the C, Linux and GNU logos.
Systems Programming

Common errno Values and What They Mean

A cheat sheet of the errno values you meet most on Linux, such as ENOENT, EACCES, EINTR and EAGAIN, with the cause, the reaction and when not to retry.

6 min read