Skip to content
Snippets Groups Projects
Commit 89916e83 authored by patacongo's avatar patacongo
Browse files

Make irq init function a weak function

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3031 42af7a65-404d-4744-a932-0658087f49c3
parent d8725381
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@ EXTERN bool at91uc3_gpioread(uint16_t pinset);
****************************************************************************/
#ifdef CONFIG_AVR32_GPIOIRQ
EXTERN void gpio_irqinitialize(void);
EXTERN void weak_function gpio_irqinitialize(void);
#endif
/****************************************************************************
......
......@@ -230,7 +230,12 @@ void up_irqinitialize(void)
/* Initialize GPIO interrupt facilities */
#ifdef CONFIG_AVR32_GPIOIRQ
gpio_irqinitialize();
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
if (gpio_irqinitialize != NULL)
#endif
{
gpio_irqinitialize();
}
#endif
/* And finally, enable interrupts */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment