rust nuttx
1.0.0
อ่านบทความ ...
"Rust Talks i2c บน Apache nuttx rtos"
"Rust on Apache Nuttx OS"
นี่คือห้องสมุดต้นขั้วรหัสสนิมที่แท้จริงอยู่ที่ ...
LUPYUEN/RUST-I2C-NUTTX
lupyuen/rust_test
เพื่อเพิ่ม repo นี้ในโครงการ nuttx ของคุณ ...
pushd nuttx/nuttx/libs
git submodule add https://github.com/lupyuen/rust-nuttx librust
popdอัปเดตต่อไป makefiles และ kconfig ...
kconfig
เครื่องมือ/directories.mk
เครื่องมือ/flatlibs.mk
เครื่องมือ/kernellibs.mk
เครื่องมือ/libtargets.mk
เครื่องมือ/protectedlibs.mk
จากนั้นอัปเดตการกำหนดค่า build 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 เปิดใช้งานห้องสมุดสนิมภายใต้ "ห้องสมุดกิจวัตร"