随笔分类 -  STM32 / RUST版

摘要:main.rs #![no_std] #![no_main] use core::ptr; use cortex_m_rt::entry; use panic_halt as _; // 当发生 panic 时停止执行 // 定义寄存器地址 const RCC_BASE: u32 = 0x40021 阅读全文
posted @ 2024-08-18 17:27 navysummer_hardware 阅读(54) 评论(0) 推荐(0)
摘要:1. 安装rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 2.添加stm32需要的工具链 rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumb 阅读全文
posted @ 2024-03-08 21:01 navysummer_hardware 阅读(713) 评论(0) 推荐(0)