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); ///////////////////////////////////////// |