#risc-v #hal #micro-controller #embedded-hal #gd32v

no-std gd32vf103-hal

Hardware abstract layer (HAL) for RISC-V microcontroller GD32VF103

7 releases

0.0.6 Mar 14, 2021
0.0.5 Jun 16, 2020
0.0.4 May 1, 2020
0.0.3 Mar 2, 2020
0.0.0 Sep 9, 2019

#1755 in Embedded development

Download history 25/week @ 2024-07-23 9/week @ 2024-09-24

58 downloads per month

MulanPSL-2.0

145KB
2.5K SLoC

Rust 2K SLoC // 0.1% comments GNU Style Assembly 301 SLoC // 0.0% comments Shell 28 SLoC PowerShell 6 SLoC

Contains (static library, 20KB) bin/riscv32imac-unknown-none-elf.a

gd32vf103-hal

Hardware abstract layer (HAL) for the GD32VF103 RISC-V microcontroller

crates.io Released API docs

This project is under early stage development; you may find example project and images here.

Matrix: #gd32v-rust:matrix.org

See also: gd32vf103xx-hal

Use this project

To use this HAL project, you may need Rust installed. Checkout rustup.rs if you don't have one. You do not need to install GNU toolchain if you are an application developer.

Examples may be found at gd32vf103-example.

Helps on assembling

ALERT: this section is only for HAL project itself. If you are an application developer, you do not need to build this binary by yourself.

The assemble script requires you have riscv32imac-unknown-elf-gcc installed.

Configure and compile GNU toolchain using:

../configure --prefix=/opt/riscv32 --with-arch=rv32imac --with-abi=ilp32
make && make install

Run assemble script: (run on any path is okay)

./assemble.sh

License

This project is licensed under either of

Dependencies

~4MB
~106K SLoC