menu "Waveshare ESP32-S3 TouchLCD Configuration"
  choice WS_S3_TOUCH_VERSION
  prompt "TouchLCD Version"
  default WS_S3_TOUCH_VERSION_NEW
  help
    Select the version of the Waveshare ESP32-S3 TouchLCD you are using.
    This will determine which pins the driver configures.

  config WS_S3_TOUCH_VERSION_NEW
  bool "New Version"
  help
    The new version of the Waveshare ESP32-S3 TouchLCD uses different pins
    for the touch controller.

  config WS_S3_TOUCH_VERSION_OLD
  bool "Old Version"
  help
    The old version of the Waveshare ESP32-S3 TouchLCD uses different pins
    for the touch controller.
  endchoice

  config WS_S3_TOUCH_INTERRUPT_STACK_SIZE
  int "Interrupt stack size"
  default 4096
  help
    Size of the stack used for the interrupt handler. Used by the touch
    callback.

  config WS_S3_TOUCH_INTERRUPT_PRIORITY
  int "Interrupt task priority"
  default 0
  range 0 25
  help
    FreeRTOS priority of the GPIO interrupt handler task (0 = lowest). Raise it
    if interrupt callbacks must run promptly relative to other tasks.

  config WS_S3_TOUCH_INTERRUPT_CORE_ID
  int "Interrupt task core ID"
  default -1
  range -1 1
  help
    Core to pin the GPIO interrupt handler task to (-1 = not pinned to any core).
endmenu
