multi interrapt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

multi interrapt

332 Views
lpcware
NXP Employee
NXP Employee
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  ?
Labels (1)
0 Kudos
Reply
0 Replies