not working, fix at home, init hal from C was removed

This commit is contained in:
Filipriec
2025-12-02 18:00:49 +01:00
parent ab932d1698
commit b44ede04cb
2 changed files with 38 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
// build.rs
use std::env;
use std::path::PathBuf;
fn main() {
@@ -25,6 +26,7 @@ fn main() {
"stm32u5xx_hal_ramcfg.c",
"stm32u5xx_hal_rtc.c",
"stm32u5xx_hal_rtc_ex.c",
"stm32u5xx_hal_iwdg.c",
];
let mut build = cc::Build::new();
@@ -42,6 +44,7 @@ fn main() {
.include(&example_inc)
.define("USE_HAL_DRIVER", None)
.define("STM32U575xx", None)
.define("HAL_IWDG_MODULE_ENABLED", None)
.flag("-mthumb")
.flag("-march=armv8-m.main+fp.dp")
.flag("-mfloat-abi=hard")