I'm trying to communicate my MCU with VESC4 via SPI (VESC is the master). The communication should be triggered by an external signal. Therefore I think the best way to achieve this is to connect the trigger signal to a VESC interrput pin. But I'm not sure which pins could be used as interrupt pins because I need SCK_ADC_EXT and MISO_ADC_EXT2 (PA5 and PA6) pins for communication.
Right now my code does not use the SERVO and TEMP_MOTOR pins. Can they be configured as the interrupt pins?
Besides, it would be great if this interrupt configuration is also compatiable with VESC6.