Skip to content

Commit

Permalink
fix robus init raising PTP IRQ depending on user config.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Mar 12, 2024
1 parent 7e920c6 commit 9ce0f91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network/robus_network/HAL/STM32F0/robus_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ static void RobusHAL_GPIOInit(void)
RobusHAL_RegisterPTP();
for (uint8_t i = 0; i < NBR_PORT; i++) /*Configure GPIO pins : PTP_Pin */
{
// Disable IT for PTP
HAL_NVIC_DisableIRQ(PTP[i].IRQ);
GPIO_InitStruct.Pin = PTP[i].Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
Expand Down

0 comments on commit 9ce0f91

Please sign in to comment.