
Write an RTC Driver Using the RTC Framework
Write a Linux 6.12 RTC driver with rtc_class_ops, read_time and set_time using 64-bit time, range limits, and test it with hwclock and sysfs.
Tag
362 posts

Write a Linux 6.12 RTC driver with rtc_class_ops, read_time and set_time using 64-bit time, range limits, and test it with hwclock and sysfs.

Stream continuous data on an STM32 with circular DMA, process each half buffer on the half-transfer and complete events, and detect a missed deadline.

Write a Linux 6.12 watchdog driver with watchdog_device and watchdog_ops, handle the timeout and nowayout options, and see it through /dev/watchdog and wdctl.

Write a Linux 6.12 LED class driver with led_classdev, brightness_set_blocking, max_brightness and triggers, and see it appear under /sys/class/leds.

Configure and start an RP2040 DMA transfer with dma_channel_get_default_config and dma_channel_configure in Pico SDK 2.1, including fills, rings and completion.

Write a Linux 6.12 input driver for a GPIO button: devm_input_allocate_device, capability bits, a threaded IRQ, debounce, and events visible to evtest.

Fix the Too many open files error on Linux. Read RLIMIT_NOFILE, raise the soft limit in C, set systemd LimitNOFILE, and find the leak that caused it.

Request, configure and drive GPIO lines from a Linux 6.12 platform driver with devm_gpiod_get and the descriptor API, including active-low handling.

Copy and fill memory blocks with the STM32F4 DMA2 controller using HAL_DMA_Start_IT or polling, with the FIFO setting it requires and the common mistakes.

Open files with O_CLOEXEC so exec closes them automatically. Shows the leak into a child, the race with fcntl, and the flags for socket, pipe2 and dup3.

Understand what a DMA controller does, how it moves data as a bus master, and why one interrupt per buffer instead of per byte frees the CPU.

Run a web server on an ESP32 with esp_http_server in ESP-IDF v5.4: register GET and POST handlers, embed an HTML file and return JSON.