HAL crates
许多微控制器的 HAL crate 为各种外围设备提供了封装容器。通常,这些封装容器可以实现 embedded-hal
中的各种 trait。
Speaker Notes
set_low
和set_high
是embedded_hal
OutputPin
trait 上的方法。- HAL crate 被广泛用于许多 Cortex-M 和 RISC-V 设备,包括各种 STM32、GD32、nRF、NXP、MSP430、AVR 和 PIC 微控制器。
使用以下命令运行该示例:
cargo embed --bin hal