External interrupt in esp32

I have ESP32 module,i needed to configure external inetrrupt source as stm32 microcontroller .

so that interrupt is generated by this stm32 micro controller .

how can i write code in esp32 for configure the stm32 as external interrupt ?

please give me some code examples

Thanks..

Not sure I get the question nor the relevance of what type of device is on the other side of the interrupt signal as long as voltage are compatible.

You just need to configure an external interrupt - there are tons of doc if you google “esp32 external interrupt“... start there and test code “manually” (pulling the pin low or high)