enhering

Interlock1

Sep 16th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. void SCM::ManagePCAEnable() {
  2. if (m_bPCAOutputEnabled) {
  3. GPIO1_HIGH;
  4. m_bPCAOutputEnabled = false;
  5. OCR1A = 155;
  6. }
  7. else {
  8. m_nPCAEnableWindowCountdown--;
  9.  
  10. // Protection against loss of communication from COM module.
  11. if (m_nPCAEnableWindowCountdown > 0) {
  12. GPIO1_LOW;
  13. m_bPCAOutputEnabled = true;
  14. }
  15. OCR1A = 15;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment