Zephyr RTOS Cookbook: Build portable and scalable embedded systems through hands-on recipes
暫譯: Zephyr RTOS 食譜:透過實作食譜構建可攜式和可擴展的嵌入式系統

Jamil, Roy, Bourjilat, Ayoub, Nashif, Anas

  • 出版商: Packt Publishing
  • 出版日期: 2026-06-26
  • 售價: $1,740
  • 貴賓價: 9.5$1,653
  • 語言: 英文
  • 頁數: 226
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1807429172
  • ISBN-13: 9781807429171
  • 相關分類: 嵌入式系統
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Zephyr RTOS Cookbook delivers hands-on recipes for tackling real-world challenges in portable, scalable Zephyr application development

Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*

Key Features:

- Build and organize Zephyr applications using West to enable clean, reproducible, multi-repo workflows

- Configure features with Kconfig and describe hardware with DeviceTree

- Develop portable, scalable systems for industrial and IoT devices using Zephyr subsystems and the device driver model

Book Description:

Adopting Zephyr RTOS can feel very different from working with bare-metal systems, traditional RTOSes, or embedded Linux. Instead of tightly coupled board-specific code, Zephyr follows a platform-oriented approach built around reusable components, standardized subsystems, and configuration-driven behavior. This shift can be unfamiliar at first, especially for developers moving to Zephyr for real-world products.

Zephyr RTOS Cookbook is a recipe-led guide designed to help you make that transition with confidence. Rather than treating Zephyr as just a kernel, the book shows how to work with it as a complete platform. You'll learn how to structure projects using West-managed, multi-repo workspaces, enable and customize system features with Kconfig, and describe hardware cleanly using devicetree to keep applications portable across boards.

Each recipe focuses on a practical task you'll encounter when building Zephyr-based systems, from integrating drivers and subsystems to reasoning about initialization order, device availability, and permissions at runtime. By the end of the book, you'll be able to develop maintainable Zephyr applications, adapt them to different hardware configurations, and confidently scale your codebase across projects and teams.

What You Will Learn:

- Set up a reproducible Zephyr development environment and West workspace

- Structure apps and modules

- Navigate the Zephyr build flow and inspect key generated outputs

- Configure features with Kconfig

- Describe and customize hardware using devicetree

- Use common subsystems: GPIO, I2C, ADC, logging, and shell

- Apply user mode to enforce security

- Control peripherals from applications using drivers

Who this book is for:

This book is for embedded developers and engineers transitioning to Zephyr from traditional RTOSes, bare-metal environments, or embedded Linux. It is aimed at readers with experience in embedded C who want to adopt Zephyr as a scalable platform for building portable systems that can be deployed consistently across multiple boards and development teams.

Table of Contents

- Introducing the Zephyr Project

- Structuring and Building Zephyr Applications

- Configuring Zephyr Applications with Kconfig

- Using Devicetree to Describe Hardware

- Exploring Zephyr's Device Driver Model

- System Initialization and Multithreading

- Working with Zephyr Subsystems

- User Mode in Zephyr

商品描述(中文翻譯)

**Zephyr RTOS 食譜** 提供了針對可攜式、可擴展的 Zephyr 應用開發中實際挑戰的實用食譜。

**購書附贈:無 DRM 的 PDF 版本 + Packt 下一代閱讀器的訪問權限**

**主要特點:**
- 使用 West 建立和組織 Zephyr 應用,以實現乾淨、可重複的多倉庫工作流程
- 使用 Kconfig 配置功能,並使用 DeviceTree 描述硬體
- 利用 Zephyr 子系統和設備驅動模型開發工業和物聯網設備的可攜式、可擴展系統

**書籍描述:**
採用 Zephyr RTOS 的感覺與使用裸金屬系統、傳統 RTOS 或嵌入式 Linux 非常不同。Zephyr 採用以平台為導向的方法,圍繞可重用組件、標準化子系統和基於配置的行為構建,而不是緊密耦合的特定板卡代碼。這種轉變在一開始可能會讓人感到陌生,特別是對於那些為實際產品轉向 Zephyr 的開發者來說。

**Zephyr RTOS 食譜** 是一本以食譜為導向的指南,旨在幫助您自信地完成這一過渡。這本書不僅僅將 Zephyr 視為一個內核,而是展示如何將其作為一個完整的平台來使用。您將學會如何使用 West 管理的多倉庫工作區來結構化項目,使用 Kconfig 啟用和自定義系統功能,並使用 devicetree 乾淨地描述硬體,以保持應用在不同板卡之間的可攜性。

每個食譜都專注於您在構建基於 Zephyr 的系統時會遇到的實際任務,從整合驅動程序和子系統到考慮初始化順序、設備可用性和運行時權限。到書籍結束時,您將能夠開發可維護的 Zephyr 應用,將其適應不同的硬體配置,並自信地在項目和團隊之間擴展您的代碼庫。

**您將學到的內容:**
- 設置可重複的 Zephyr 開發環境和 West 工作區
- 結構化應用和模組
- 瀏覽 Zephyr 構建流程並檢查關鍵生成輸出
- 使用 Kconfig 配置功能
- 使用 devicetree 描述和自定義硬體
- 使用常見子系統:GPIO、I2C、ADC、日誌和 shell
- 應用用戶模式以強化安全性
- 使用驅動程序從應用控制外圍設備

**本書適合的人群:**
本書適合從傳統 RTOS、裸金屬環境或嵌入式 Linux 轉向 Zephyr 的嵌入式開發者和工程師。它針對有嵌入式 C 經驗的讀者,這些讀者希望將 Zephyr 作為可擴展的平台,用於構建可在多個板卡和開發團隊之間一致部署的可攜式系統。

**目錄:**
- 介紹 Zephyr 專案
- 結構化和構建 Zephyr 應用
- 使用 Kconfig 配置 Zephyr 應用
- 使用 Devicetree 描述硬體
- 探索 Zephyr 的設備驅動模型
- 系統初始化和多線程
- 使用 Zephyr 子系統
- Zephyr 中的用戶模式