2 unstable releases

0.1.0 Jan 11, 2024
0.0.0 Apr 21, 2021

#748 in Embedded development

Download history 45/week @ 2024-01-08 73/week @ 2024-01-15 99/week @ 2024-01-22 100/week @ 2024-01-29 78/week @ 2024-02-05 156/week @ 2024-02-12 1051/week @ 2024-02-19 512/week @ 2024-02-26 1086/week @ 2024-03-04 1333/week @ 2024-03-11 856/week @ 2024-03-18 839/week @ 2024-03-25 570/week @ 2024-04-01 732/week @ 2024-04-08 542/week @ 2024-04-15

2,719 downloads per month
Used in 6 crates

MIT/Apache

1MB
19K SLoC

Embassy RP HAL

HALs implement safe, idiomatic Rust APIs to use the hardware capabilities, so raw register manipulation is not needed.

The embassy-rp HAL targets the Raspberry Pi RP2040 microcontroller. The HAL implements both blocking and async APIs for many peripherals. The benefit of using the async APIs is that the HAL takes care of waiting for peripherals to complete operations in low power mode and handling interrupts, so that applications can focus on more important matters.

embassy-time time driver

If the time-driver feature is enabled, the HAL uses the TIMER peripheral as a global time driver for embassy-time, with a tick rate of 1MHz.

Embedded-hal

The embassy-rp HAL implements the traits from embedded-hal (v0.2 and 1.0) and embedded-hal-async, as well as embedded-io and embedded-io-async.

Interoperability

This crate can run on any executor.

Optionally, some features requiring embassy-time can be activated with the time feature. If you enable it, you must link an embassy-time driver in your project.

Dependencies

~10–21MB
~281K SLoC