# rp-rs/rp-hal

A Rust Embedded-HAL for the rp series microcontrollers

Repository: https://github.com/rp-rs/rp-hal
Canonical: https://ross.abutalabs.com/products/rp-hal
Homepage: https://crates.io/crates/rp2040-hal
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-08-25T20:23:42+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 68, longevity 100
- inputs: {"age_days": 2049, "days_push": 8, "days_rel": 213, "gap_med": 15, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1919, forks 291 (observed 2026-08-28T04:05:55.053742+00:00)

## What it is
rp-hal is a Rust Hardware Abstraction Layer (HAL) implementing embedded-hal for the Raspberry Pi RP2040 and RP235x series microcontrollers. It provides high-level drivers and board support packages for programming Raspberry Pi Pico boards in Rust.

## Use cases
- write Rust firmware for Raspberry Pi Pico
- program RP2040 microcontroller in Rust
- blink LEDs and read GPIO on RP235x
- use PIO state machines on Pico
- build embedded Rust projects with embedded-hal traits
- flash UF2 images to Pico 2 via USB bootloader

## When to choose
- you want to develop Rust applications for RP2040 or RP235x microcontrollers
- you need a safe, high-level API over Raspberry Pi Pico hardware
- you want embedded-hal compatible drivers for Pico boards

## When to avoid
- you are programming a Raspberry Pi single-board computer (Linux) rather than the microcontrollers
- you need C/C++ SDK support or MicroPython instead of Rust
- your target microcontroller is not from the RP series

## Facets
- artifact type: library
- maturity: active
- function: embedded, sdk, developer-tools
- domain: embedded-systems, hardware, developer-tools
- platform: embedded, rust
- tags: raspberry-pi, rp2040, rp235x, embedded-hal, microcontroller, pico, no-std, bsp

## Member repositories
- rp-rs/rp-hal (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.053742+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:09:58.777376+00:00, confidence not recorded.
  - readme: https://github.com/rp-rs/rp-hal (fetched 2026-08-28T04:05:55.053742+00:00, sha a2e592464bae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
