Mercurial > public > hwos_code
comparison src/comm.asm @ 299:6c4800af27ac
Make char_I_bottom_usage and char_I_deco_usage configurable from PC
author | heinrichsweikamp |
---|---|
date | Sun, 31 May 2015 20:25:12 +0200 |
parents | 653a3ab08062 |
children | 9b1b0b32e7d5 |
comparison
equal
deleted
inserted
replaced
298:2fe34fc0e2ae | 299:6c4800af27ac |
---|---|
19 #include "external_flash.inc" | 19 #include "external_flash.inc" |
20 #include "tft_outputs.inc" | 20 #include "tft_outputs.inc" |
21 #include "surfmode.inc" | 21 #include "surfmode.inc" |
22 #include "rtc.inc" | 22 #include "rtc.inc" |
23 #include "adc_lightsensor.inc" | 23 #include "adc_lightsensor.inc" |
24 #include "shared_definitions.h" | |
24 | 25 |
25 extern new_battery_menu,restart,option_reset_all | 26 extern new_battery_menu,restart,option_reset_all |
26 extern char_I_dil_change, char_I_setpoint_cbar, char_I_setpoint_change | |
27 extern char_I_deco_model, char_I_extra_time, char_I_saturation_multiplier, char_I_desaturation_multiplier | |
28 extern option_check_all, gaslist_cleanup_list, get_first_gas_to_WREG, get_first_dil_to_WREG | 27 extern option_check_all, gaslist_cleanup_list, get_first_gas_to_WREG, get_first_dil_to_WREG |
29 extern vault_decodata_into_eeprom | 28 extern vault_decodata_into_eeprom |
30 | 29 |
31 #DEFINE timeout_comm_pre_mode .120 ; Pre-loop | 30 #DEFINE timeout_comm_pre_mode .120 ; Pre-loop |
32 #DEFINE timeout_comm_mode .120 ; Download mode | 31 #DEFINE timeout_comm_mode .120 ; Download mode |
950 movff opt_flip_screen, TXREG1 ; RCREG1=0x39 | 949 movff opt_flip_screen, TXREG1 ; RCREG1=0x39 |
951 dcfsnz WREG | 950 dcfsnz WREG |
952 movff opt_cR_button_left, TXREG1 ; RCREG1=0x3A | 951 movff opt_cR_button_left, TXREG1 ; RCREG1=0x3A |
953 dcfsnz WREG | 952 dcfsnz WREG |
954 movff opt_cR_button_right, TXREG1 ; RCREG1=0x3B | 953 movff opt_cR_button_right, TXREG1 ; RCREG1=0x3B |
954 dcfsnz WREG | |
955 movff char_I_bottom_usage, TXREG1 ; RCREG1=0x3C | |
956 dcfsnz WREG | |
957 movff char_I_deco_usage, TXREG1 ; RCREG1=0x3D | |
958 | |
955 | 959 |
956 comm_read_abort: | 960 comm_read_abort: |
957 comm_read_done: | 961 comm_read_done: |
958 bra comm_download_mode0 ; Done. Loop with timeout reset | 962 bra comm_download_mode0 ; Done. Loop with timeout reset |
959 | 963 |
1226 movff RCREG1, opt_flip_screen ; RCREG1=0x39 | 1230 movff RCREG1, opt_flip_screen ; RCREG1=0x39 |
1227 dcfsnz WREG | 1231 dcfsnz WREG |
1228 movff RCREG1, opt_cR_button_left ; RCREG1=0x3A | 1232 movff RCREG1, opt_cR_button_left ; RCREG1=0x3A |
1229 dcfsnz WREG | 1233 dcfsnz WREG |
1230 movff RCREG1, opt_cR_button_right ; RCREG1=0x3B | 1234 movff RCREG1, opt_cR_button_right ; RCREG1=0x3B |
1235 dcfsnz WREG | |
1236 movff RCREG1, char_I_bottom_usage ; RCREG1=0x3C | |
1237 dcfsnz WREG | |
1238 movff RCREG1, char_I_deco_usage ; RCREG1=0x3D | |
1239 | |
1231 | 1240 |
1232 comm_write_abort: | 1241 comm_write_abort: |
1233 ; Check Options, gases and diluents | 1242 ; Check Options, gases and diluents |
1234 call option_check_all ; Check all options (and reset if not within their min/max boundaries) | 1243 call option_check_all ; Check all options (and reset if not within their min/max boundaries) |
1235 bsf ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") | 1244 bsf ccr_diluent_setup ; =1: Setting up Diluents ("Gas6-10") |