Line 104... |
Line 104... |
104 |
#define REF_INIT REF_DDR |= _BV(REF) |
104 |
#define REF_INIT REF_DDR |= _BV(REF) |
105 |
|
105 |
|
106 |
#define ADC_ON ADCSRA |= _BV(ADEN) |
106 |
#define ADC_ON ADCSRA |= _BV(ADEN) |
107 |
#define ADC_OFF ADCSRA &= ~(_BV(ADEN)) |
107 |
#define ADC_OFF ADCSRA &= ~(_BV(ADEN)) |
108 |
|
108 |
|
- |
|
109 |
#define USART_PC_ON UCSR1B = _BV(RXCIE1) | _BV(RXEN1) | _BV(TXEN1) |
- |
|
110 |
#define USART_PC_OFF UCSR1B = 0 |
- |
|
111 |
|
109 |
#define KEY1 0 |
112 |
#define KEY1 0 |
110 |
#define KEY2 1 |
113 |
#define KEY2 1 |
111 |
#define KEY3 2 |
114 |
#define KEY3 2 |
112 |
|
115 |
|
113 |
#define KEY1_LONG 1 |
116 |
#define KEY1_LONG 1 |