Replace Timer1 with periodic interrupt timer from the RTC

This commit is contained in:
Allen Hill
2023-08-02 21:56:59 -04:00
parent 49ceb1e5e8
commit 0a9bd4d988
2 changed files with 22 additions and 27 deletions
+2 -2
View File
@@ -33,8 +33,8 @@
//------------------------------------------------------------------------------
#include "GlobalDef.h"
#define STOPEvent cbi(TIMSK1, TOIE1); cbi(UCSR0B, RXCIE0);
#define STARTEvent sbi(TIMSK1, TOIE1); sbi(UCSR0B, RXCIE0);
#define STOPEvent cbi(RTC.PITINTCTRL, RTC_PI_bp); cbi(UCSR0B, RXCIE0);
#define STARTEvent sbi(RTC.PITINTCTRL, RTC_PI_bp); sbi(UCSR0B, RXCIE0);
#define CHECK_AVC_LINE if (INPUT_IS_SET) AVCLan_Read_Message();