- prio = AO_LPC_NVIC_MED_PRIORITY;
- if (mode & AO_EXTI_PRIORITY_LOW)
- prio = AO_LPC_NVIC_LOW_PRIORITY;
- else if (mode & AO_EXTI_PRIORITY_HIGH)
- prio = AO_LPC_NVIC_HIGH_PRIORITY;
-
- /* Set priority and enable */
- lpc_nvic_set_priority(LPC_ISR_PIN_INT0_POS + pint, prio);
- lpc_nvic_set_enable(LPC_ISR_PIN_INT0_POS + pint);