随笔分类 - 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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号