comparison src/ostc3.inc @ 235:23311219dacc

under construction: new hardware_flag to configure different hardware versions
author heinrichsweikamp
date Wed, 25 Feb 2015 16:49:59 +0100
parents 57155164faad
children 6c4ad243cb44
comparison
equal deleted inserted replaced
234:57155164faad 235:23311219dacc
201 #DEFINE gaslist_sp_min .50 ; Min. Setpoint [cbar] 201 #DEFINE gaslist_sp_min .50 ; Min. Setpoint [cbar]
202 202
203 ; Compass display 203 ; Compass display
204 #DEFINE compass_fast_treshold .9 ; show new heading instantly if new and old > compass_fast_treshold 204 #DEFINE compass_fast_treshold .9 ; show new heading instantly if new and old > compass_fast_treshold
205 #DEFINE compass_averaging .10 ; numbers of extra averaging 205 #DEFINE compass_averaging .10 ; numbers of extra averaging
206
207 ; Hardware defines
208 #DEFINE rechargeable hardware_flag,0 ; OSTC has rechargeable battery with battery management chip
209 #DEFINE ambient_sensor hardware_flag,1 ; OSTC has an ambient sensor
210 #DEFINE analog_o2_input hardware_flag,2 ; OSTC has analog inputs and S8 digital
211 #DEFINE optical_input hardware_flag,3 ; OSTC has an digital optical input
212 #DEFINE ble_available hardware_flag,4 ; OSTC has an BLE module
213 ;unused
214 ;unused
215 ;unused
206 216
207 ;---------------------------- Macros ------------------------------------ 217 ;---------------------------- Macros ------------------------------------
208 218
209 TSTOSS macro opt_reg ; TeST Option Skip if not Zero 219 TSTOSS macro opt_reg ; TeST Option Skip if not Zero
210 movff opt_reg,WREG 220 movff opt_reg,WREG
338 flag8 res 1 348 flag8 res 1
339 flag9 res 1 349 flag9 res 1
340 flag10 res 1 350 flag10 res 1
341 flag11 res 1 351 flag11 res 1
342 352
353 hardware_flag res 1 ; hardware descriptor flag
354
343 temp1 res 1 355 temp1 res 1
344 temp2 res 1 356 temp2 res 1
345 357
346 ;---- Interface to wait macros 358 ;---- Interface to wait macros
347 wait_temp res 1 359 wait_temp res 1
442 average_divesecs res 2 ; For the resettable stopwatch 454 average_divesecs res 2 ; For the resettable stopwatch
443 decodata res 2 455 decodata res 2
444 apnoe_timeout_counter res 1 456 apnoe_timeout_counter res 1
445 apnoe_surface_mins res 1 457 apnoe_surface_mins res 1
446 apnoe_surface_secs res 1 458 apnoe_surface_secs res 1
447 tft_gaslist_temp res 1
448 459
449 ; Profile storing 460 ; Profile storing
450 AlarmType res 1 461 AlarmType res 1
451 samplesecs res 1 462 samplesecs res 1
452 EventByte res 1 463 EventByte res 1
628 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout 639 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout
629 #DEFINE win_invert flag9,3 ; =1: Invert font output 640 #DEFINE win_invert flag9,3 ; =1: Invert font output
630 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop 641 #DEFINE show_safety_stop flag9,4 ; =1: Show the safety stop
631 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed 642 #DEFINE safety_stop_active flag9,5 ; =1: The safety stop is currently displayed
632 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved 643 #DEFINE new_s8_data_available flag9,6 ; =1: New data frame recieved
633 #DEFINE cr_hardware flag9,7; =1: OSTC cR hardware 644 ; unused
634 645
635 #DEFINE s8_digital flag10,0; =1: Digital I/O 646 #DEFINE s8_digital flag10,0; =1: Digital I/O
636 #DEFINE menu_show_sensors2 flag10,1; =1: Update mV data in calibration menu 647 #DEFINE menu_show_sensors2 flag10,1; =1: Update mV data in calibration menu
637 #DEFINE use_O2_sensor1 flag10,2; =1: Use this sensor for deco 648 #DEFINE use_O2_sensor1 flag10,2; =1: Use this sensor for deco
638 #DEFINE use_O2_sensor2 flag10,3; =1: Use this sensor for deco 649 #DEFINE use_O2_sensor2 flag10,3; =1: Use this sensor for deco