This patch adds to the nucleo-wl55jc previously implemented EXTI support. Button support with nuttx's button driver is added. I've written small example to show how to use GPIO EXTI. B3 button can be used (selectable via Kconfig) to toggle Red LED. I've added new defconfig for demo purposes. I've included there config and enabled example programs that are meant to demonstrate functions of the board and does not really have a place in real world project. Like Red LED can be toggled with B3 button, or LED example that flashes LEDS, or button example to show which button has been pressed. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl> -- v1 -> v2: Suggested by: Petro Karashchenko - Change (1 << 0) to (1 << BUTTON1_BIT (and similar) v2 -> v3: - Fix invalid BUTTON3_BIT value v3 -> v4: Suggested by: Petro Karashchenko - Change 0/1 to false/true
21 lines
590 B
Plaintext
21 lines
590 B
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
if ARCH_BOARD_NUCLEO_WL55JC
|
|
|
|
config ARCH_BOARD_NUCLEO_WL55JC_DEMO_LED_IRQ
|
|
bool "[demo] LED on button interrupt"
|
|
depends on ARCH_BUTTONS
|
|
depends on NSH_ARCHINIT
|
|
---help---
|
|
When enabled, pressing B3 button will toggle red LED.
|
|
This options is mostly for demo purposes of how one
|
|
can install GPIO interrupt.
|
|
|
|
comment "[demo] LED on button interrupt requires NSH_ARCHINIT"
|
|
depends on !NSH_ARCHINIT || !ARCH_BUTTONS
|
|
|
|
endif # ARCH_BOARD_NUCLEO_WL55JC
|