Co-authored-by: anecdata <16617689+anecdata@users.noreply.github.com>
This is in preparation for ESP32-S3 support and potentially others. Related to #4363