eren-terzioglu opened a new pull request, #18896: URL: https://github.com/apache/nuttx/pull/18896
## Summary <!-- This field should contain a summary of the changes. It will be pre-filled with the commit's message and descriptions. Adjust it accordingly --> * Docs/platforms/esp32p4: Add touch sensor docs Add touch sensor docs for esp32[-p4] * boards/risc-v/esp32p4: Add touch sensor board support for esp32[-p4] Add touch sensor board support for esp32p4 * arch/risc-v/espressif: Add touch sensor support for esp32[-p4] Add touch sensor support for esp32p4 ## Impact <!-- Please fill the following sections with YES/NO and provide a brief explanation --> Impact on user: Yes, touch sensor can be used with esp32p4 <!-- Does it impact user's applications? How? --> Impact on build: No <!-- Does it impact on building NuttX? How? (please describe the required changes on the build system) --> Impact on hardware: Yes, touch sensor is supported for esp32p4 <!-- Does it impact a specific hardware supported by NuttX? --> Impact on documentation: Yes, related docs added <!-- Does it impact the existing documentation? Please provide additional documentation to reflect that --> Impact on security: No <!-- Does it impact NuttX's security? --> Impact on compatibility: No <!-- Does it impact compatibility between previous and current versions? Is this a breaking change? --> ## Testing <!-- Please provide all the testing procedure. Consider that upstream reviewers should be able to reproduce the same testing performed internally --> `esp32p4-function-ev-board:buttons` config used with these options ``` CONFIG_ESPRESSIF_TOUCH=y CONFIG_ESP_TOUCH_CHANNEL1=y CONFIG_ESP_TOUCH_IRQ=y ``` ### Building <!-- Provide how to build the test for each SoC being tested --> Command to build ``` make distclean && ./tools/configure.sh esp32p4-function-ev-board:buttons && kconfig-tweak -e CONFIG_ESPRESSIF_TOUCH && kconfig-tweak -e CONFIG_ESP_TOUCH_CHANNEL1 && kconfig-tweak -e CONFIG_ESP_TOUCH_IRQ && make olddefconfig && make -j && make download ESPTOOL_PORT=/dev/ttyUSB0 ``` ### Running <!-- Provide how to run the test for each SoC being tested --> `buttons` example run and then touched to the GPIO2 pin ### Results <!-- Provide tests' results and runtime logs --> Output should look like this: ``` nsh> buttons buttons_main: Starting the button_daemon btn_supported: NUM_BUTTONS: 02 board_buttons: Reading button 0 board_buttons: b=0 n=0 board_buttons: Reading button 1 board_buttons: b=0 n=0 btn_enable: press: 0f release: 0f handler: 0x40021da0 arg: 0x4ff2b6d0 board_button_irq: Attach 0x400218b0 to touch pad 1 btn_supported: NUM_BUTTONS: 02 btn_enable: press: 0f release: 0f handler: 0x40021da0 arg: 0x4ff2b6d0 board_button_irq: Attach 0x400218b0 to touch pad 1 buttons_main: button_daemon started button_daemon: Running button_daemon: Opening /dev/buttons button_daemon: Supported BUTTONs 0x03 nsh> board_buttons: Reading button 0 board_buttons: b=0 n=0 board_buttons: Reading button 1 board_buttons: b=0 n=0 btn_supported: NUM_BUTTONS: 02 BUTTON1 was pressed ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
