#include #include #include #include "alarmhw.h" #include "rs485.h" #include "eb.h" uint8_t reedstate; uint8_t buzzerstate; uint8_t waitforack; uint8_t waitforsend; uint8_t acktimer; int main(void) { uint8_t i; init_rs485(); DDRD |= (1< 1) && (rchannel < 6))) { ADMUX = (ADMUX & ~(0x1F)) | (rchannel - 2); ADCSRA |= (1<