rust nuttx
1.0.0
記事を読む...
「RustはApache nuttx rtosでi2cを話します」
「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
Tools/Directories.mk
Tools/Flatlibs.mk
ツール/kernellibs.mk
ツール/libtargets.mk
Tools/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ライブラリを有効にします。