uint8_t photoFlag=0; void __ISR(_CHANGE_NOTICE_A_VECTOR, ipl6AUTO) _IntHandlerChangeNotification_PortA(void) { uint32_t portBits=0; /* Read port to clear mismatch on change notice pins */ portBits = PLIB_PORTS_Read(PORTS_ID_0, PORT_CHANNEL_A); if( !((1 << PORTS_BIT_POS_0) & portBits)) { photoFlag = 1; appData.state = APP_STATE_CAPTURE; } if((1 << PORTS_BIT_POS_1) & portBits) { DRV_CAMERA_OVM7690_HsyncEventHandler(sysObj.drvOvm7690); } PLIB_INT_SourceFlagClear(INT_ID_0,INT_SOURCE_CHANGE_NOTICE_A); }