#peripheral #pac #py32 #metadata #version #chips

py32-metapac

Peripheral Access Crate (PAC) for all PY32 chips, including metadata

4 releases

new 0.1.1 Dec 1, 2024
0.1.0 Nov 21, 2024
0.0.1 Nov 6, 2024
0.0.0 Mar 12, 2024

#271 in Hardware support

Download history 6/week @ 2024-09-23 132/week @ 2024-11-04 3/week @ 2024-11-11 133/week @ 2024-11-18 122/week @ 2024-11-25

390 downloads per month
Used in py32-hal

MIT/Apache

1.5MB
40K SLoC

py32-data & py32-metapac

Crates.io Crates.io docs.rs

All-in-one Rust PAC(Peripheral Access Crate) for Puya MCU Series.

This repo is adapted from embassy-rs/stm32-data.

Contributions are welcome!

You can check the peripheral version corresponding to the microcontroller here.

Families

Date: 20240312

  • Low Cost
    • PY32F002A
    • PY32F002B
    • PY32F003
  • Mainstream
    • PY32F030
    • PY32F031
    • PY32F040
    • PY32F071
    • PY32F072
    • PY32F403
  • Low Power
    • PY32L020
  • Moter Control
    • PY32M010
    • PY32M020
    • PY32M030
    • PY32M031
    • PY32M070
    • PY32MD
  • Touch Control
    • PY32T020

TODOs

  • Configure the additional registers for peripherals like USART and I2C on the PY32F072, which has more registers compared to version 1 (F030).

  • Set up configurations for cut-down variants such as PY32F003, PY32F002A, and PY32F040.

Contirbute

You can refer to the relevant descriptions and explanations inembassy-rs/stm32-data repo.

The difference is that our data sources are fewer. In addition to the content already present in this repo, the data can come from the processing of the PY32 C SDK header files, datasheets, and Reference Manual, etc.

In fact, the IPs of peripherals in different PY32 series may be consistent, and different series can refer to each other.

Moreover, some series use the same die(e.g. F003, F002A, F030 use same die), so support a new serie might not require much work.

Reference:

License

This project is licensed under either of

at your option.

Dependencies

~710KB