Условный
__attribute__((interrupt("WCH-Interrupt-fast"))) void TIM4_IRQHandler(void);
только раз использовать.