请教朋友们F28M35x的哪些管脚可以作为输入中断管脚?谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hongyue,
关于M3的中断,我看了相关的API函数,发现可以设置GPIO作为M3的中断源。
// Register the port-level interrupt handler. This handler is the
// first level interrupt handler for all the pin interrupts.
GPIOPortIntRegister(GPIO_PORTA_BASE, PortAIntHandler);
// Enable the pin interrupts.
GPIOPinIntEnable(GPIO_PORTA_BASE, GPIO_PIN_2 | GPIO_PIN_4 | GPIO_PIN_5);
//使用这个GPIOIntTypeSet来配置中断电平
void GPIOIntTypeSet (unsigned long ulPort, unsigned char ucPins, unsigned long ulIntType)
//使用IntEnable使能GPIO port中断
void IntEnable (INT_GPIOA);
//最后使能M3中断
IntMasterEnable (void);
所以通过例程可以看到有Int_GPIOA、B、C、D、F、G、H这几个中断可以配置外部电平产生GPIO中断。