|
@@ -215,8 +215,8 @@ void halInt1(void) {
|
|
|
if (flagIgnoreRlsInt1) {
|
|
|
flagIgnoreRlsInt1 = false;
|
|
|
} else {
|
|
|
- Int0Time = 0;
|
|
|
- Int0Timer.stop();
|
|
|
+ Int1Time = 0;
|
|
|
+ Int1Timer.stop();
|
|
|
halSendSignal(SigInt1Rls);
|
|
|
}
|
|
|
} else if(!halGetInt1() && pinState[1]) {
|
|
@@ -364,9 +364,15 @@ void halSendSignal(HalSig val) {
|
|
|
|
|
|
switch (val) {
|
|
|
case SigInt0Psh:
|
|
|
+ case SigInt1Psh:
|
|
|
+ idleCounter = 0;
|
|
|
+ if (idle) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+
|
|
|
case SigInt0Rls:
|
|
|
case SigInt0RlsLong:
|
|
|
- case SigInt1Psh:
|
|
|
case SigInt1Rls:
|
|
|
case SigInt1RlsLong:
|
|
|
idleCounter = 0;
|
|
@@ -374,7 +380,10 @@ void halSendSignal(HalSig val) {
|
|
|
halLeaveIdle();
|
|
|
return;
|
|
|
}
|
|
|
+ break;
|
|
|
|
|
|
+ default:
|
|
|
+ break;
|
|
|
}
|
|
|
sigval value = { 0 };
|
|
|
value.sival_int = (int) val;
|