Can our #NuttX App directly call the SPI Interface? Let's find out! 🤔
https://github.com/lupyuen/incubator-nuttx-apps/blob/spi_test/examples/spi_test/spi_test_main.c
Build, Flash and Run #NuttX OS on #BL602 ... Here's the script I use for macOS
https://gist.github.com/lupyuen/cc21385ecc66b5c02d15affd776a64af
#NuttX SPI Interface is defined here ... Let's call it from our "spi_test" app
https://github.com/apache/incubator-nuttx/blob/master/include/nuttx/spi/spi.h
Our #NuttX Demo App "spi_test" ... Runs OK on #BL602
https://github.com/lupyuen/incubator-nuttx-apps/blob/newapp/examples/spi_test/spi_test_main.c
1️⃣ make distclean 2️⃣ configure.sh 3️⃣ make menuconfig ... Our #NuttX App "spi_test" magically appears!
https://github.com/lupyuen/incubator-nuttx-apps/tree/newapp/examples/spi_test
In our #NuttX App "spi_test", change all "hello" to "spi_test" ... Remember to Preserve Case!
https://github.com/lupyuen/incubator-nuttx-apps/commit/0e19613b3059882f002eee948c0a79f622eccb74
Fixing our "spi_test" app for #NuttX ... Rename "hello_main.c" to "spi_test_main.c"
https://github.com/lupyuen/incubator-nuttx-apps/commit/a4f884c67dc4c1042831d0554aed1d55a0e28b40
We create the "spi_test" Demo App in #NuttX ... By copying the "hello" Demo App
https://github.com/lupyuen/incubator-nuttx-apps/commit/9af4ad6cab225d333ce0dae98c65a2a48621b3b4
Let's test the #NuttX SPI Driver for #BL602
https://nuttx.apache.org/docs/latest/components/drivers/special/spi.html
Building Apache #NuttX OS on macOS ... Yep it works! 👍
https://lupyuen.github.io/articles/nuttx?88#appendix-build-flash-and-run-nuttx
History of #NuttX on #BL602 ... How it started 1 year ago 👍
https://www.mail-archive.com/dev@nuttx.apache.org/msg05124.html
Here's why GPIO Output doesn't work on #BL602 #NuttX ... And how we fixed it
https://lupyuen.github.io/articles/nuttx?24#appendix-fix-gpio-output
BASIC Interpreter on #BL602 #NuttX 🥲
https://lupyuen.github.io/articles/nuttx?20#basic-interpreter
IoT Techie and Educator / Apache NuttX PMC