update
This commit is contained in:
48
relay.c
48
relay.c
@@ -25,64 +25,64 @@ bool ptt_is_pressed(void) {
|
||||
}
|
||||
|
||||
|
||||
/* D4 PD4: Set input relay 5 output */
|
||||
void relaytx_init(void) {
|
||||
/* D4 PD4: Set input filter 5 output */
|
||||
void ampl_init(void) {
|
||||
REG_SETUP_BIT(DDRD, PD4);
|
||||
}
|
||||
void relaytx_on(void) {
|
||||
void ampl_on(void) {
|
||||
REG_SETUP_BIT(PORTD, PD4);
|
||||
}
|
||||
void relaytx_off(void) {
|
||||
void ampl_off(void) {
|
||||
REG_SETDOWN_BIT(PORTD, PD4);
|
||||
}
|
||||
void relaytx_onoff(void) {
|
||||
void ampl_onoff(void) {
|
||||
if (REG_BIT_VALUE(PIND, PD4)) {
|
||||
relaytx_off();
|
||||
ampl_off();
|
||||
} else {
|
||||
relaytx_on();
|
||||
ampl_on();
|
||||
}
|
||||
}
|
||||
/* D6 PD6: Set 10M relay 1 output */
|
||||
void relay10m_init(void) {
|
||||
/* D6 PD6: Set 10M filter 1 output */
|
||||
void filter10m_init(void) {
|
||||
REG_SETUP_BIT(DDRD, PD6);
|
||||
}
|
||||
void relay10m_on(void) {
|
||||
void filter10m_on(void) {
|
||||
REG_SETUP_BIT(PORTD, PD6);
|
||||
}
|
||||
void relay10m_off(void) {
|
||||
void filter10m_off(void) {
|
||||
REG_SETDOWN_BIT(PORTD, PD6);
|
||||
}
|
||||
|
||||
/* D7 PD7: Set 20M relay 2 output */
|
||||
void relay20m_init(void) {
|
||||
/* D7 PD7: Set 20M filter 2 output */
|
||||
void filter20m_init(void) {
|
||||
REG_SETUP_BIT(DDRD, PD7);
|
||||
}
|
||||
void relay20m_on(void) {
|
||||
void filter20m_on(void) {
|
||||
REG_SETUP_BIT(PORTD, PD7);
|
||||
}
|
||||
void relay20m_off(void) {
|
||||
void filter20m_off(void) {
|
||||
REG_SETDOWN_BIT(PORTD, PD7);
|
||||
}
|
||||
|
||||
/* D8 PB0: Set 40M relay 3 output */
|
||||
void relay40m_init(void) {
|
||||
/* D8 PB0: Set 40M filter 3 output */
|
||||
void filter40m_init(void) {
|
||||
REG_SETUP_BIT(DDRB, PB0);
|
||||
}
|
||||
void relay40m_on(void) {
|
||||
void filter40m_on(void) {
|
||||
REG_SETUP_BIT(PORTB, PB0);
|
||||
}
|
||||
void relay40m_off(void) {
|
||||
void filter40m_off(void) {
|
||||
REG_SETDOWN_BIT(PORTB, PB0);
|
||||
}
|
||||
|
||||
/* D9 PB1: Set 80M relay 4 output */
|
||||
void relay80m_init(void) {
|
||||
/* D9 PB1: Set 80M filter 4 output */
|
||||
void filter80m_init(void) {
|
||||
REG_SETUP_BIT(DDRB, PB1);
|
||||
}
|
||||
void relay80m_on(void) {
|
||||
void filter80m_on(void) {
|
||||
REG_SETUP_BIT(PORTB, PB1);
|
||||
}
|
||||
void relay80m_off(void) {
|
||||
void filter80m_off(void) {
|
||||
REG_SETDOWN_BIT(PORTB, PB1);
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ bool fan_is_on(void) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* D13 PB5: Set attenuator relay output */
|
||||
/* D13 PB5: Set attenuator filter output */
|
||||
void atten_init(void) {
|
||||
REG_SETUP_BIT(DDRB, PB5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user