sipeed / bl602-pac

Embedded Rust's Peripheral Access Crate for BL602 microcontrollers
MIT License
19 stars 9 forks source link

Allow hard float abi #12

Closed parkero closed 2 years ago

parkero commented 2 years ago

The default for the bl602-pac is currently targeting the tier 2 riscv32imac-unknown-none-elf which uses soft float. The bl602 hardware itself supports the f extension as well through an FPU.

We can allow custom targets (e.g. riscv32imafc-unknown-none-elf) to use the hard float abi by updating the dependencies for riscv and (optional) riscv-rt to the latest versions.

Working example here: parkero / bl602-hardfloat