Skip to content

GPIO driver code jumbled up and unnecessarily invoking trigger #10

@NavadeepGaneshU

Description

@NavadeepGaneshU

The tutorial shows it correctly, but the committed code has issues. I was confused by this mismatch while comparing the code. This is as shown in the tutorial:

/*********************************************************
 * @fn		- GPIO_IRQHandling
 * @brief		- Interrupt handling
 *
 * @param[in]	-
 * @param[in]	-
 *
 * @return		- 
 *
 * @notes		-
 * /
void GPIO_IRQHandling(uint8_t PinNumber)
{
 //clear the EXTIPR register
	if(EXTI ->PR |= (1 << PinNumber))
	{
		//clear
		EXTI ->PR &= ~(1 << PinNumber);
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions