apache / nuttx

Apache NuttX is a mature, real-time embedded operating system (RTOS)
https://nuttx.apache.org/
Apache License 2.0
2.62k stars 1.11k forks source link

Is it possible to control the integrated LED on a Raspberry Pi Pico W board? #11651

Open tsjavaloyes opened 7 months ago

tsjavaloyes commented 7 months ago

I am a newcomer to the RTOS world and I am learning how to use NuttX.

I am following some introductory articles to Nuttx written by Alan C. Assis (You can see here) and I have used a Raspberry Pi Pico W creating the configuration with:

./tools/configure.sh raspberrypi-pico-w:nsh

and then with make menuconfig I wanted to load the example of turning on the LED integrated on the board via GPIO (GPIO Driver Example).

And it doesn't work because as I understand it in the official documentation, that LED is controlled by the WIFI chip (it is controlled by _WLGPIO0 pin) and not by the GPIO25.

Does that mean that the configuration for that board version does not have that feature implemented?

acassis commented 7 months ago

Hi @tsjavaloyes seems like it is already implemented on NuttX (I wasn't aware of it), please Xiang Xiao comment here: https://github.com/apache/nuttx/pull/11648

Actually it is already commented on our official page: https://nuttx.apache.org/docs/latest/platforms/arm/rp2040/boards/raspberrypi-pico-w/index.html

"LED controlled by GPIO0 of the wireless chip (not the RP2040 processor). Use rp2040_extra_gpio_put(0,value) to control this LED."