Subversion Repositories EngineBay2

Rev

Rev 48 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 48 Rev 52
Line 72... Line 72...
72
 
72
 
73
    blink = !blink;
73
    blink = !blink;
74
    HAL_GPIO_WritePin(LED_Blink_GPIO_Port, LED_Blink_Pin,
74
    HAL_GPIO_WritePin(LED_Blink_GPIO_Port, LED_Blink_Pin,
75
                      blink ? GPIO_PIN_SET : GPIO_PIN_RESET);
75
                      blink ? GPIO_PIN_SET : GPIO_PIN_RESET);
76
 
76
 
77
    TimerFlag = 1;
-
 
78
    if (NoSerialInCTR < 5)
-
 
79
    {
-
 
80
      NoSerialInCTR++;
-
 
81
      if (NoSerialInCTR == 5)
-
 
82
      {
-
 
83
        NoSerialIn = 1;
-
 
84
      }
-
 
85
    }
-
 
86
 
77
 
87
    if (periodPulse == 1)
78
    if (periodPulse == 1)
88
    {
79
    {
89
      triggerTim3();
80
      triggerTim3();
90
    }
81
    }
Line 92... Line 83...
92
    periodPulse = 1;
83
    periodPulse = 1;
93
 
84
 
94
    chtTimer++;
85
    chtTimer++;
95
  }
86
  }
96
}
87
}
97
 
-
 
98
void resetSerialTimeout(void)
-
 
99
{
-
 
100
  __disable_irq();
-
 
101
  NoSerialInCTR = 0;
-
 
102
  NoSerialIn = 0;
-
 
103
  __enable_irq();
-
 
104
}
-