py32csdk-hal-sys

Crates.iopy32csdk-hal-sys
lib.rspy32csdk-hal-sys
version0.4.0
sourcesrc
created_at2024-07-19 11:06:16.635049
updated_at2024-08-15 07:06:54.477386
descriptionPY32 HAL bindings
homepagehttps://github.com/decaday/py32csdk-hal-sys
repositoryhttps://github.com/decaday/py32csdk-hal-sys
max_upload_size
id1308531
size16,123,472
Decaday (decaday)

documentation

README

py32csdk-hal-sys

Crates.io

This is a crate that generates bindings using the C SDK for PY32F0.

This package is used by bind-hal, you can use bind-hal's rust API.

bind-hal - crates.io

Supported MCU:

---PY32F0xx Series---

Puya PY32F002A, PY32F003, PY32F030

Xinlinggo XL32F003*, XL32F002A*

Luat AIR001

Build

This library uses precompiled static libraries and pregenerated bindings by default.

When using a debug build, this crate uses -Og -g, and when using a release build, uses -Ofast.

These two static libraries are ready for you if you don't want to bother!

--features=recompile

Generate Bindings

To handle macros with type conversions, this library requires using this Pull Request. However, to compile this PR, you need to set the dependency address of cmacro to https://github.com/reitermarkus/cmacro-rs. You might be able to achieve this using [patch.crates-io] or by directly fetching the library.

Compile

This crate use Clang and cc to compile CSDK.

New Chips:

Some content needs to be processed manually or by script

  1. (*(uint32_t *)
  2. __HAL_RCC_xxx
  3. Interrupt
Commit count: 0

cargo fmt