sifli-hal 0.1.0

Hardware Abstraction Layer (HAL) for SiFli MCUs
Documentation

SiFli HAL

Crates.io Crates.io docs.rs Support status

中文 | English

Rust Hardware Abstraction Layer (HAL) and Embassy driver for SiFli MCUs.

[!WARNING]

This project is working-in-progress and not ready for production use.

Let's GO!

Introduction to Embedded Rust

Get Started

Flash and Debug Guide

Status

Features

  • defmt, log: Debug log output.

  • sf32lb52x: Target chip selection. Currently, only sf32lb52x is supported.

  • set-msplim: Set the MSPLIM register in __pre_init. This register must be set before the main function’s stack setup (since the bootloader may have already configured it to a different value), otherwise, it will cause a HardFault SiFli-SDK #32.

    This feature will be removed after cortex-m-rt #580 is released.

  • time-driver-xxx: Timer configuration for time-driver. It requires at least two capture/compare channels. For the sf32lb52x hcpu, only atim1 (TODO: #5), gptim1, and gptim2 are available.

  • unchecked-overclocking: Enable this feature to disable the overclocking check. DO NOT ENABLE THIS FEATURE UNLESS YOU KNOW WHAT YOU'RE DOING.

License

This project is under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).