rust nuttx
1.0.0
閱讀文章...
“ Rust在Apache nuttx RTO上談論I2C”
“ Aust on Apache nuttx OS”
這是一個存根庫,實際的生鏽代碼在...
lupyuen/rust-i2c-nuttx
lupyuen/rust_test
將此存儲庫添加到您的NutTX項目...
pushd nuttx/nuttx/libs
git submodule add https://github.com/lupyuen/rust-nuttx librust
popd接下來更新Makefiles和Kconfig ...
KCONFIG
工具/目錄
工具/flatlibs.mk
工具/kernellibs.mk
工具/libtargets.mk
工具/protectedlibs.mk
然後更新nuttx構建配置...
# # TODO: Change this to the path of our "incubator-nuttx" folder
cd nuttx/nuttx
# # Preserve the Build Config
cp .config ../config
# # Erase the Build Config
make distclean
# # For BL602: Configure the build for BL602
./tools/configure.sh bl602evb:nsh
# # For ESP32: Configure the build for ESP32.
# # TODO: Change "esp32-devkitc" to our ESP32 board.
./tools/configure.sh esp32-devkitc:nsh
# # Restore the Build Config
cp ../config .config
# # Edit the Build Config
make menuconfig 在Menuconfig,在“圖書館例程”下啟用Rust庫。