Mercurial > public > hwos_code
comparison src/comm.asm @ 255:ad62dff7739a
add bearing option to compass
author | heinrichsweikamp |
---|---|
date | Mon, 23 Mar 2015 17:07:57 +0100 |
parents | d912fb71d606 |
children | 1207cf9a9408 |
comparison
equal
deleted
inserted
replaced
254:5fe7aff622f3 | 255:ad62dff7739a |
---|---|
939 movff opt_cR_button_left, TXREG1 ; RCREG1=0x3A | 939 movff opt_cR_button_left, TXREG1 ; RCREG1=0x3A |
940 dcfsnz WREG | 940 dcfsnz WREG |
941 movff opt_cR_button_right, TXREG1 ; RCREG1=0x3B | 941 movff opt_cR_button_right, TXREG1 ; RCREG1=0x3B |
942 | 942 |
943 comm_read_abort: | 943 comm_read_abort: |
944 bra comm_download_mode0 ; Done. Loop with timeout reset | |
945 | |
946 comm_read_setting_wait: | |
947 call rs232_wait_tx ; Wait for UART | |
948 return | |
949 | |
950 comm_read_done: | 944 comm_read_done: |
951 bra comm_download_mode0 ; Done. Loop with timeout reset | 945 bra comm_download_mode0 ; Done. Loop with timeout reset |
946 | |
947 comm_read_setting_wait: | |
948 goto rs232_wait_tx ; Wait for UART (and return!) | |
952 | 949 |
953 comm_read_gas1: | 950 comm_read_gas1: |
954 movff opt_gas_O2_ratio+0, TXREG1 | 951 movff opt_gas_O2_ratio+0, TXREG1 |
955 rcall comm_read_setting_wait ; Wait for UART | 952 rcall comm_read_setting_wait ; Wait for UART |
956 movff opt_gas_He_ratio+0, TXREG1 | 953 movff opt_gas_He_ratio+0, TXREG1 |