Mercurial > public > hwos_code
comparison src/comm.asm @ 242:df8beb913ade
expand hardware_flag to 4 bytes
author | heinrichsweikamp |
---|---|
date | Tue, 03 Mar 2015 12:09:24 +0100 |
parents | 49512af55afc |
children | 416723c8ccd8 |
comparison
equal
deleted
inserted
replaced
241:613e42d4cdff | 242:df8beb913ade |
---|---|
256 | 256 |
257 comm_send_firmware_abort: | 257 comm_send_firmware_abort: |
258 | 258 |
259 movlw 0xFF ; send ABORTED byte. | 259 movlw 0xFF ; send ABORTED byte. |
260 movwf TXREG1 | 260 movwf TXREG1 |
261 call rs232_wait_tx ; Wait for UART | |
262 bra comm_download_mode0 ; Done. | 261 bra comm_download_mode0 ; Done. |
263 | 262 |
264 ;----------------------------------------------------------------------------- | 263 ;----------------------------------------------------------------------------- |
265 ; Reset to Dive 1 in logbook | 264 ; Reset to Dive 1 in logbook |
266 | 265 |
736 movlw "j" ; send echo | 735 movlw "j" ; send echo |
737 movwf TXREG1 | 736 movwf TXREG1 |
738 call rs232_wait_tx ; wait for UART | 737 call rs232_wait_tx ; wait for UART |
739 movff hardware_flag,TXREG1 | 738 movff hardware_flag,TXREG1 |
740 call rs232_wait_tx ; wait for UART | 739 call rs232_wait_tx ; wait for UART |
740 movlw 0x00 ; unused 1 | |
741 movwf TXREG1 | |
742 call rs232_wait_tx ; wait for UART | |
743 movlw 0x00 ; unused 2 | |
744 movwf TXREG1 | |
745 call rs232_wait_tx ; wait for UART | |
746 movlw 0x00 ; unused 3 | |
747 movwf TXREG1 | |
741 bra comm_download_mode0 ; Done. | 748 bra comm_download_mode0 ; Done. |
742 | 749 |
743 ;----------------------------------------------------------------------------- | 750 ;----------------------------------------------------------------------------- |
744 | 751 |
745 comm_send_dive: | 752 comm_send_dive: |
948 comm_read_setting_wait: | 955 comm_read_setting_wait: |
949 call rs232_wait_tx ; Wait for UART | 956 call rs232_wait_tx ; Wait for UART |
950 return | 957 return |
951 | 958 |
952 comm_read_done: | 959 comm_read_done: |
953 rcall comm_read_setting_wait ; Wait for UART | |
954 bra comm_download_mode0 ; Done. Loop with timeout reset | 960 bra comm_download_mode0 ; Done. Loop with timeout reset |
955 | 961 |
956 comm_read_gas1: | 962 comm_read_gas1: |
957 movff opt_gas_O2_ratio+0, TXREG1 | 963 movff opt_gas_O2_ratio+0, TXREG1 |
958 rcall comm_read_setting_wait ; Wait for UART | 964 rcall comm_read_setting_wait ; Wait for UART |