From zephyr-skills
Delivers Zephyr RTOS foundations: Embedded C patterns (BIT, CONTAINER_OF), concurrency primitives (mutexes, semaphores, spinlocks), devicetree hardware mapping, and defensive programming. For core logic, drivers, troubleshooting.
npx claudepluginhub beriberikix/zephyr-agent-skills --plugin zephyr-moduleThis skill uses the workspace's default tool permissions.
Mastering the bedrock of Zephyr is essential for writing efficient, robust, and idiomatic code.
Guides Zephyr RTOS hardware I/O: sensor fetching/triggers, pinctrl/GPIO with Devicetree specs, SoC configs. For sensor apps, pinmux, new peripherals.
Provides patterns for embedded software development including real-time systems, memory management, hardware abstraction, interrupt handling, and debugging techniques for resource-constrained environments.
Develops firmware for microcontrollers like STM32 and ESP32, implements FreeRTOS RTOS applications, configures peripherals, writes interrupt handlers and DMA transfers, optimizes power consumption in real-time systems.
Share bugs, ideas, or general feedback.
Mastering the bedrock of Zephyr is essential for writing efficient, robust, and idiomatic code.
Zephyr uses specific macros to manage memory and hardware-software mapping.
CONTAINER_OF, BIT(), GENMASK(), ARRAY_SIZE.Safe multi-threading and interrupt handling are critical for stability.
k_mutex, k_sem, k_spinlock, atomic_t, ISR safety rules.Understanding how code interacts with the hardware description.
Preventing crashes through defensive programming.
errno.h, BUILD_ASSERT, validation patterns, return code checking.int sensor_read_checked(const struct device *dev)
{
if (dev == NULL || !device_is_ready(dev)) {
return -ENODEV;
}
return 0;
}
BIT, GENMASK) instead of raw literals.errno codes.errno return statements in C/C++ code.zephyr_macros.md: Essential macros (BIT, CONTAINER_OF, etc.).concurrency.md: Mutexes, Semaphores, Spinlocks, and ISR safety.devicetree_basics.md: Devicetree syntax and overlay patterns.error_handling.md: Error codes and defensive programming.errno_return_check.py: Return-code sign checker.foundation_examples/: Working code templates for drivers and logic.