lpcware

multi interrapt

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by mne_nado on Thu Feb 18 12:18:30 MST 2016
I settings one pin on interrapt 0
   
void PIN_INT0_IRQHandler(void)
{
uint32_t k;
k = Chip_PININT_GetIntStatus(LPC_PININT);
if (k & PININTCH0)
{
///my code
}
}
//////////////////////////////////////////// settings pin and interrapt
            Chip_SYSCTL_SetPinInterrupt(0, 17);
Chip_PININT_ClearIntStatus(LPC_PININT, PININTCH0);
Chip_PININT_SetPinModeEdge(LPC_PININT, PININTCH0);
Chip_PININT_EnableIntLow(LPC_PININT, PININTCH0);
NVIC_EnableIRQ(PIN_INT0_IRQn);
/////////////////////////////////////////

How to setup a few pins  on one the this  interrupt  ?

Outcomes