1分钟内可阅读完
译文 · 基于 The Embedded Rust Book
原文链接: https://doc.rust-lang.org/stable/embedded-book/design-patterns/hal/
这是一套在 Rust 中为微控制器编写硬件抽象层(HAL,Hardware Abstraction Layers)时常见且推荐的模式。编写微控制器 HAL 时,这些模式应作为现有 Rust API 指南 的补充使用。
检查清单
检查清单(Checklist)
命名(Naming)
互操作性(Interoperability)
可预测性(Predictability)
GPIO