rlvgl-chips-stm

Crates.iorlvgl-chips-stm
lib.rsrlvgl-chips-stm
version0.1.0
created_at2025-08-25 19:07:27.403658+00
updated_at2025-08-25 19:07:27.403658+00
descriptionSTM32 Chip Database for use in code generation.
homepagehttps://github.com/softoboros/rlvgl
repositoryhttps://github.com/softoboros/rlvgl
max_upload_size
id1809954
size1,274,323
Ira Abbott (iraabbott)

documentation

https://docs.rs/rlvgl

README

rlvgl-chips-stm

Provides a board database for STMicroelectronics devices used by rlvgl-creator.

Usage

The published crate embeds a zstd-compressed chip database generated by tools/build_vendor.sh. Consumers simply link the crate; the archive is decompressed at runtime by rlvgl-creator.

When building from a git checkout, run tools/build_vendor.sh first to produce the assets/chipdb.bin.zst file used by the build script:

VENDOR_DIR=chips/stm CRATE_DIR=chipdb/rlvgl-chips-stm OUT_DIR=build/chipdb/stm \
    bash tools/build_vendor.sh

If assets/chipdb.bin.zst is absent, the build script falls back to the RLVGL_CHIP_SRC environment variable to locate uncompressed JSON definitions.

The library exposes helper functions for consumers:

  • vendor() – returns "stm".
  • boards() – lists supported boards as BoardInfo entries.
  • find(name) – looks up a board by its exact name.

rlvgl-creator integrates this crate to populate vendor and board drop-downs. Other vendor crates follow the same layout and API.

BoardInfo format

Each BoardInfo describes a board with at least a human-friendly board name and associated chip. Future versions may include package information and pin configuration offsets.

Features

  • Optional serde support for serialising the board database: enable the serde feature if integration with external tooling requires it.
Commit count: 139

cargo fmt