We would like Dev A board to have Nuttx Status LED enabled (CONFIG_ARCH_LEDS)
Dev A only has a RGB led, so we should use it for status only, not for user.
For Nuttx internal, the control API is
board_autoled_initialize()
board_autoled_on() and board_autoled_off()
which are enabled by CONFIG_ARCH_LEDS, depending on CONFIG_ARCH_HAVE_LEDS
That is to say, if we want to disable autoled function, controlled by Nuttx, we should turn off CONFIG_ARCH_LEDS. This should be the setting for Dev C, as the number of leds are limited.
Proposed work:
- Dev A will have the right-hand side red and green led assigned as Nuttx Status LEDs
- Dev C will NOT be assigned with any Nuttx Status LEDs (
ARCH_HAVE_LEDS deselected)
- Both boards will support user leds (
CONFIG_ARCH_HAVE_LEDS selected)
We would like Dev A board to have Nuttx Status LED enabled (CONFIG_ARCH_LEDS)
Dev A only has a RGB led, so we should use it for status only, not for user.
For Nuttx internal, the control API is
board_autoled_initialize()board_autoled_on()andboard_autoled_off()which are enabled by
CONFIG_ARCH_LEDS, depending onCONFIG_ARCH_HAVE_LEDSThat is to say, if we want to disable autoled function, controlled by Nuttx, we should turn off
CONFIG_ARCH_LEDS. This should be the setting for Dev C, as the number of leds are limited.Proposed work:
ARCH_HAVE_LEDSdeselected)CONFIG_ARCH_HAVE_LEDSselected)