changeset 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 2fe34fc0e2ae
children 5ad479f2a868 be341d0df3ee
files doc/hwos_interface.odt src/comm.asm
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
Binary file doc/hwos_interface.odt has changed
--- a/src/comm.asm	Sun May 31 16:19:56 2015 +0200
+++ b/src/comm.asm	Sun May 31 20:25:12 2015 +0200
@@ -21,10 +21,9 @@
 #include "surfmode.inc"
 #include "rtc.inc"
 #include "adc_lightsensor.inc"
+#include "shared_definitions.h"
 
 	extern  new_battery_menu,restart,option_reset_all
-    extern  char_I_dil_change, char_I_setpoint_cbar, char_I_setpoint_change
-    extern  char_I_deco_model, char_I_extra_time, char_I_saturation_multiplier, char_I_desaturation_multiplier
     extern  option_check_all, gaslist_cleanup_list, get_first_gas_to_WREG, get_first_dil_to_WREG
     extern  vault_decodata_into_eeprom
 
@@ -952,6 +951,11 @@
     movff   opt_cR_button_left, TXREG1      ; RCREG1=0x3A
     dcfsnz  WREG
     movff   opt_cR_button_right, TXREG1     ; RCREG1=0x3B
+    dcfsnz  WREG
+    movff   char_I_bottom_usage, TXREG1     ; RCREG1=0x3C
+    dcfsnz  WREG
+    movff   char_I_deco_usage, TXREG1       ; RCREG1=0x3D
+
 
 comm_read_abort:
 comm_read_done:
@@ -1228,6 +1232,11 @@
     movff   RCREG1, opt_cR_button_left      ; RCREG1=0x3A
     dcfsnz  WREG
     movff   RCREG1, opt_cR_button_right     ; RCREG1=0x3B
+    dcfsnz  WREG
+    movff   RCREG1, char_I_bottom_usage     ; RCREG1=0x3C
+    dcfsnz  WREG
+    movff   RCREG1, char_I_deco_usage       ; RCREG1=0x3D
+
 
 comm_write_abort:
     ; Check Options, gases and diluents