Here are the Pin Definitions for #BL602 #NuttX ... We'll change this in a while
https://github.com/apache/incubator-nuttx/blob/master/boards/risc-v/bl602/bl602evb/include/board.h
Let's enable the "help" and "ls" Shell Commands in #BL602 #NuttX
https://nuttx.apache.org/docs/latest/quickstart/configuring.html
Let's test GPIO on #BL602 #NuttX ... By enabling the GPIO Driver
https://nuttx.apache.org/docs/latest/quickstart/configuring.html
After the GPIO Driver has been enabled, select the GPIO Demo in #BL602 #NuttX
https://nuttx.apache.org/docs/latest/quickstart/configuring.html
"help" shows the commands available on #BL602 #NuttX ... "ls /dev" reveals the GPIO Pins that we may control ... Yep everything looks like a file!
https://acassis.wordpress.com/2021/01/24/how-to-install-nuttx-on-bl602/
GPIO Demo calls "ioctl" to control the GPIO Pins on #BL602 #NuttX
https://github.com/apache/incubator-nuttx-apps/blob/master/examples/gpio/gpio_main.c
#NuttX writes correctly to the GPIO 11 Output Register at 0x40000188 (BL602_GPIO_CFGCTL32)
https://github.com/apache/incubator-nuttx/blob/master/arch/risc-v/src/bl602/bl602_gpio.c#L190-L209
#NuttX configures #BL602 GPIO 11 (0x40000114) with GPIO Input Disabled ... But it doesn't Enable GPIO Output 🤔
https://github.com/apache/incubator-nuttx/blob/master/arch/risc-v/src/bl602/bl602_gpio.c#L59-L133
#BL602 Reference Manual says we should set the GPIO Output Enable Register ... But it's missing from the docs ... Where is the register? 🤔
https://github.com/bouffalolab/bl_docs/tree/main/BL602_RM/en
Blinking the #BL602 LED ... Works on #NuttX BASIC too! 🎉
https://github.com/lupyuen/incubator-nuttx-apps/tree/master/interpreters/bas
As we've seen, #NuttX has its own HAL for #BL602 ... Which differs from BL602 IoT SDK ... So we expect some quirks
https://github.com/apache/incubator-nuttx/tree/master/arch/risc-v/src/bl602
How we enable "help" and "ls" in #NuttX #BL602
https://lupyuen.github.io/articles/nuttx?7#enable-help-and-ls
Enabling the GPIO Driver for #NuttX #BL602
https://lupyuen.github.io/articles/nuttx?8#enable-gpio-driver
History of #NuttX on #BL602 ... How it started 1 year ago 👍
https://www.mail-archive.com/dev@nuttx.apache.org/msg05124.html
Here's how we build, flash and test Apache #NuttX OS ... On #RISCV #BL602 and BL604
https://lupyuen.github.io/articles/nuttx