Crates.io | embassy-rp |
lib.rs | embassy-rp |
version | 0.2.0 |
source | src |
created_at | 2021-04-21 18:32:25.661045 |
updated_at | 2024-08-05 10:13:59.781284 |
description | Embassy Hardware Abstraction Layer (HAL) for the Raspberry Pi RP2040 microcontroller |
homepage | |
repository | https://github.com/embassy-rs/embassy |
max_upload_size | |
id | 387788 |
size | 498,058 |
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 driverIf 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.
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.
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.