14 releases (8 breaking)

0.12.1 Oct 23, 2024
0.11.0 Apr 7, 2024
0.10.1 Jul 31, 2023
0.8.0 Jan 1, 2023
0.4.1 Oct 11, 2021

#110 in Hardware support

Download history 517/week @ 2024-08-20 671/week @ 2024-08-27 669/week @ 2024-09-03 814/week @ 2024-09-10 937/week @ 2024-09-17 793/week @ 2024-09-24 841/week @ 2024-10-01 1092/week @ 2024-10-08 1096/week @ 2024-10-15 1357/week @ 2024-10-22 641/week @ 2024-10-29 464/week @ 2024-11-05 912/week @ 2024-11-12 704/week @ 2024-11-19 663/week @ 2024-11-26 574/week @ 2024-12-03

2,932 downloads per month
Used in 2 crates

MIT/Apache

315KB
7.5K SLoC

Rust 6K SLoC // 0.0% comments GNU Style Assembly 1K SLoC // 0.1% comments Alex 434 SLoC Python 2 SLoC // 1.0% comments

pic32-hal

Crates.io docs.rs

A hardware abstraction layer for some PIC32 microcontrollers.

This crate provides a thin low-level API on top of the register access API implemented by the PAC crate. The following HAL functionality is available

  • basic clock control, including reference clock generator
  • GPIO
  • UART
  • USB
  • access to the MIPS core timer
  • DMA channels
  • I2C peripheral
  • SPI peripheral
  • interrupt controller
  • Peripheral Pin Select (PPS)
  • 10-bit analog-to-digital converter (ADC)
  • Timer
  • Output Compare

Some of the modules implement the embedded-hal API so that device drivers (e. g. for displays) using this API can access PIC32 peripherals.

Everything here is work in progress. Examples can be found in the git repository.

Dependencies

~0.4–14MB
~437K SLoC