2022-08-03 07:59 PM
The chip I am using is the stm32H743IIT series. I want to detect the frequency of a signal through GPIOD1, but the external trigger cannot be performed normally. The configuration code is as follows
GPIO_InitTypeDef GPIO_InitStruct = {0};
__HAL_RCC_GPIOD_CLK_ENABLE();
GPIO_InitStruct.Pin = GPIO_PIN_1;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
HAL_NVIC_SetPriority(EXTI1_IRQn,2,1);
HAL_NVIC_EnableIRQ(EXTI1_IRQn);
2022-08-24 02:02 AM
Hi @pwang.2
Can you please provide more information about the issue and if it possible your cubeMx file
Ghofrane