The Embedded Rust Book(2022)
首页 白天 夜间 BookChat 小程序 小程序 下载 阅读记录
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

8.1. HALs

来源 rust-embedded 浏览 1 扫码 打印 2026-10-24 14:36:37
  • HAL Design Patterns

HAL Design Patterns

This is a set of common and recommended patterns for writing hardware abstraction layers (HALs) for microcontrollers in Rust. These patterns are intended to be used in addition to the existing Rust API Guidelines when writing HALs for microcontrollers.

Checklist

  • Naming
  • Interoperability
  • Predictability
  • GPIO
上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • 1. Introduction
    • 1.1. Hardware
    • 1.2. no_std
    • 1.3. Tooling
    • 1.4. Installation
      • 1.4.1. Linux
      • 1.4.2. MacOS
      • 1.4.3. Windows
      • 1.4.4. Verify Installation
  • 2. Getting started
    • 2.1. QEMU
    • 2.2. Hardware
    • 2.3. Memory-mapped Registers
    • 2.4. Semihosting
    • 2.5. Panicking
    • 2.6. Exceptions
    • 2.7. Interrupts
    • 2.8. IO
  • 3. Peripherals
    • 3.1. A first attempt in Rust
    • 3.2. The Borrow Checker
    • 3.3. Singletons
  • 4. Static Guarantees
    • 4.1. Typestate Programming
    • 4.2. Peripherals as State Machines
    • 4.3. Design Contracts
    • 4.4. Zero Cost Abstractions
  • 5. Portability
  • 6. Concurrency
  • 7. Collections
  • 8. Design Patterns
    • 8.1. HALs
      • 8.1.1. Checklist
      • 8.1.2. Naming
      • 8.1.3. Interoperability
      • 8.1.4. Predictability
      • 8.1.5. GPIO
  • 9. Tips for embedded C developers
  • 10. Interoperability
    • 10.1. A little C with your Rust
    • 10.2. A little Rust with your C
  • 11. Unsorted topics
    • 11.1. Optimizations: The speed size tradeoff
    • 11.2. Performing Math Functionality
  • Appendix A: Glossary
暂无相关搜索结果!

    本文档使用 WanXiangYunDang 构建

    展开/收起文章目录

    思维导图备注

    文章二维码

    手机扫一扫,轻松掌上读

    文档下载

    请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
    PDF文档 EPUB文档 MOBI文档

    微信小程序阅读

    BookChat 微信小程序阅读
    微信扫一扫,知识掌上学

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度