3 releases (breaking)

0.2.0 Aug 5, 2024
0.1.0 Jan 11, 2024
0.0.0 Apr 21, 2021

#218 in Embedded development

Download history 1661/week @ 2024-08-18 6084/week @ 2024-08-25 6082/week @ 2024-09-01 4825/week @ 2024-09-08 4268/week @ 2024-09-15 4520/week @ 2024-09-22 1163/week @ 2024-09-29 1105/week @ 2024-10-06 1970/week @ 2024-10-13 2138/week @ 2024-10-20 1596/week @ 2024-10-27 1911/week @ 2024-11-03 1921/week @ 2024-11-10 1933/week @ 2024-11-17 2124/week @ 2024-11-24 1821/week @ 2024-12-01

8,048 downloads per month
Used in 11 crates

MIT/Apache

1MB
22K 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-driver feature. If you enable it, you must link an embassy-time driver in your project.

Dependencies

~9–19MB
~255K SLoC