mirror of
https://codeberg.org/SiB64/turbo_weather.git
synced 2026-06-28 23:49:51 +02:00
Compare commits
No commits in common. "c2823eded9308dfba7963bb8155bb57a4108d37f" and "b50205b62b2c887b2250b47a782de8a99dd27c30" have entirely different histories.
c2823eded9
...
b50205b62b
4 changed files with 0 additions and 25 deletions
10
src/bate.c
10
src/bate.c
|
|
@ -496,9 +496,6 @@ int main()
|
|||
send_calib_adc(i);
|
||||
send_eol();
|
||||
}
|
||||
if (config.send & (SEND_ADC_VOLT|SEND_ADC_HEX))
|
||||
if (config.power & POWER_LINE)
|
||||
send_cks();
|
||||
}
|
||||
|
||||
command();
|
||||
|
|
@ -563,8 +560,6 @@ int main()
|
|||
continue;
|
||||
}
|
||||
|
||||
uart_cks = 0;
|
||||
|
||||
if (config.send & SEND_CONFIG && !config_clock--) {
|
||||
send_config = 1;
|
||||
config_clock = config.confp;
|
||||
|
|
@ -623,11 +618,6 @@ int main()
|
|||
DEBUG_PRINT(0x77, trigger);
|
||||
}
|
||||
|
||||
if (config.power & POWER_LINE) {
|
||||
send_cks();
|
||||
uart_cks = 0;
|
||||
}
|
||||
|
||||
uart_tick();
|
||||
trigger = TRIGGER_CONT;
|
||||
send_config = 0;
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ uint8_t uart_tx[256];
|
|||
volatile uint8_t uart_tx_w;
|
||||
volatile uint8_t uart_tx_r;
|
||||
volatile uint8_t uart_tx_busy;
|
||||
uint8_t uart_cks;
|
||||
|
||||
#if 0
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,3 @@ void send_hex_long(uint32_t b)
|
|||
send_hex_word(b >> 16);
|
||||
send_hex_word(b);
|
||||
}
|
||||
|
||||
extern uint8_t uart_cks;
|
||||
void send_cks();
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
.global send_str
|
||||
.global uart_busy
|
||||
.global send_hex
|
||||
.global send_cks
|
||||
.global send_eol
|
||||
.global command
|
||||
|
||||
|
|
@ -35,9 +34,6 @@ put_char:
|
|||
sbci r31, hi8(-(uart_tx))
|
||||
st Z, r22
|
||||
sts uart_tx_w, r19
|
||||
lds r19, uart_cks
|
||||
add r19, r22
|
||||
sts uart_cks, r19
|
||||
1:
|
||||
// r22 preserved
|
||||
// r23 full when zero
|
||||
|
|
@ -93,13 +89,6 @@ uart_busy:
|
|||
9:
|
||||
ret
|
||||
|
||||
; send_hex('Q', &uart_cks, 1, 0);
|
||||
send_cks:
|
||||
ldi r24, 'Q'
|
||||
ldi r18, 0
|
||||
ldi r20, 1
|
||||
ldi r22, lo8(uart_cks)
|
||||
ldi r23, hi8(uart_cks)
|
||||
send_hex:
|
||||
movw r26, r22
|
||||
rcall send_char
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue