forked from espressif/esp-idf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/touch_driver_ng_on_p4' into 'master'
feat(touch_sensor): touch driver ng on p4 Closes IDF-7477 See merge request espressif/esp-idf!25941
- Loading branch information
Showing
76 changed files
with
4,272 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
idf_build_get_property(target IDF_TARGET) | ||
|
||
if(${target} STREQUAL "linux") | ||
return() # This component is not supported by the POSIX/Linux simulator | ||
endif() | ||
|
||
set(srcs) | ||
set(public_inc) | ||
|
||
if(CONFIG_SOC_TOUCH_SENSOR_SUPPORTED) | ||
if(CONFIG_SOC_TOUCH_SENSOR_VERSION EQUAL 3) | ||
list(APPEND srcs "hw_ver3/touch_version_specific.c" | ||
"common/touch_sens_common.c") | ||
list(APPEND public_inc "include" "hw_ver3/include") | ||
endif() | ||
endif() | ||
|
||
idf_component_register(SRCS ${srcs} | ||
PRIV_REQUIRES esp_driver_gpio | ||
INCLUDE_DIRS ${public_inc} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
menu "ESP-Driver:Touch Sensor Configurations" | ||
depends on SOC_TOUCH_SENSOR_SUPPORTED | ||
config TOUCH_CTRL_FUNC_IN_IRAM | ||
bool "Place touch sensor control functions into IRAM" | ||
default n | ||
help | ||
Place touch sensor oneshot scanning and continuous scanning functions into IRAM, | ||
so that these function can be IRAM-safe and able to be called when the flash cache is disabled. | ||
Enabling this option can improve driver performance as well. | ||
|
||
config TOUCH_ISR_IRAM_SAFE | ||
bool "Touch sensor ISR IRAM-Safe" | ||
default n | ||
help | ||
Ensure the touch sensor interrupt is IRAM-Safe by allowing the interrupt handler to be | ||
executable when the cache is disabled (e.g. SPI Flash write). | ||
|
||
config TOUCH_ENABLE_DEBUG_LOG | ||
bool "Enable debug log" | ||
default n | ||
help | ||
Whether to enable the debug log message for touch driver. | ||
Note that, this option only controls the touch driver log, won't affect other drivers. | ||
|
||
endmenu # Touch Sensor Configuration |
Oops, something went wrong.