我在定时器中断里软件触发EXTI2,
void TIM1_UP_TIM16_IRQHandler(void)
{
/* USER CODE BEGIN TIM1_UP_TIM16_IRQn 0 */
/* USER CODE END TIM1_UP_TIM16_IRQn 0 */
HAL_TIM_IRQHandler(&htim1);
/* USER CODE BEGIN TIM1_UP_TIM16_IRQn 1 */
EXTI->SWIER1 |=0x0004;
/* USER CODE END TIM1_UP_TIM16_IRQn 1 */
}