comparison src/hwos.inc @ 650:bc214815deb2

3.19/10.75 release
author heinrichsweikamp
date Sun, 28 Aug 2022 13:13:38 +0200
parents ef2ed7e3a895
children 75e90cd0c2c3
comparison
equal deleted inserted replaced
649:ef2ed7e3a895 650:bc214815deb2
110 110
111 ; ---- External O2 Sensors 111 ; ---- External O2 Sensors
112 #DEFINE min_mv .70 ; = 7 mV 112 #DEFINE min_mv .70 ; = 7 mV
113 #DEFINE max_mv .2500 ; = 250 mV 113 #DEFINE max_mv .2500 ; = 250 mV
114 #DEFINE ignore_mv_above .3500 ; = 350 mV (to suppress ghost readings on long open cables) 114 #DEFINE ignore_mv_above .3500 ; = 350 mV (to suppress ghost readings on long open cables)
115 #DEFINE ignore_mv_below .19 ; = 1.9 mv (to suppress noise readings on open cabled) 115 #DEFINE ignore_mv_below .19 ; = 1.9 mv (to suppress noise readings on open cables)
116 116
117 117
118 ; ---- Profile Recording Parameters 118 ; ---- Profile Recording Parameters
119 #DEFINE logbook_profile_version 0x40+0x24 ; logbook recording format: internal (2 bit) + external (6 bit) 119 #DEFINE logbook_profile_version 0x40+0x24 ; logbook recording format: internal (2 bit) + external (6 bit)
120 #DEFINE samplingrate_apnoe .1 ; [seconds] 120 #DEFINE samplingrate_apnoe .1 ; [seconds]
321 321
322 322
323 ; ---- Brightness Thresholds (between zero (off) and 255 (max. power consumption)) 323 ; ---- Brightness Thresholds (between zero (off) and 255 (max. power consumption))
324 #DEFINE ambient_light_max_high_36V .170 324 #DEFINE ambient_light_max_high_36V .170
325 #DEFINE ambient_light_max_high_cr .240 325 #DEFINE ambient_light_max_high_cr .240
326 #DEFINE ambient_light_max_high_15V .140 326 #DEFINE ambient_light_max_high_15V .100
327 #DEFINE ambient_light_min_high .35 327 #DEFINE ambient_light_min_high .35
328 #DEFINE ambient_light_max_medium .125 328 #DEFINE ambient_light_max_medium .90
329 #DEFINE ambient_light_min_medium .25 329 #DEFINE ambient_light_min_medium .25
330 #DEFINE ambient_light_max_eco .70 330 #DEFINE ambient_light_max_eco .50
331 #DEFINE ambient_light_min_eco .10 ; must be the lowest value! 331 #DEFINE ambient_light_min_eco .10 ; must be the lowest value!
332 332
333 333
334 ; ---- IR Link Timeout 334 ; ---- IR Link Timeout
335 #DEFINE ir_timeout_value .128 ; in multiples of 62.5 ms 335 #DEFINE ir_timeout_value .128 ; in multiples of 62.5 ms
517 #DEFINE i2c_busy_temperature HW_flags_state2,7 ; =1: Currently updating temperature from MS5837 517 #DEFINE i2c_busy_temperature HW_flags_state2,7 ; =1: Currently updating temperature from MS5837
518 518
519 ;---- Hardware - States 3 (stored in access RAM, NOT cleared on restart) 519 ;---- Hardware - States 3 (stored in access RAM, NOT cleared on restart)
520 #DEFINE ms5837_state HW_flags_state3,0 ; =1: result of pressure is in the ADC 520 #DEFINE ms5837_state HW_flags_state3,0 ; =1: result of pressure is in the ADC
521 #DEFINE i2c_busy_pressure HW_flags_state3,1 ; =1: Currently updating pressure from MS5837 521 #DEFINE i2c_busy_pressure HW_flags_state3,1 ; =1: Currently updating pressure from MS5837
522 ; HW_flags_state3,2 ; --- unused 522 #DEFINE eeprom_write_error_flag HW_flags_state3,2 ; =1: an EEPROM write error occurred (Reset only in a Reboot/POR)
523 ; HW_flags_state3,3 ; --- unused 523 ; HW_flags_state3,3 ; --- unused
524 ; HW_flags_state3,4 ; --- unused 524 ; HW_flags_state3,4 ; --- unused
525 ; HW_flags_state3,5 ; --- unused 525 ; HW_flags_state3,5 ; --- unused
526 ; HW_flags_state3,6 ; --- unused 526 ; HW_flags_state3,6 ; --- unused
527 ; HW_flags_state3,7 ; --- unused 527 ; HW_flags_state3,7 ; --- unused
1456 ;---- wait.asm 1456 ;---- wait.asm
1457 wait_counter res 1 1457 wait_counter res 1
1458 1458
1459 ;---- tft_outputs.asm 1459 ;---- tft_outputs.asm
1460 pressure_update_lag_counter res 1 ; lag time counter for fast surface pressure display updating 1460 pressure_update_lag_counter res 1 ; lag time counter for fast surface pressure display updating
1461 1461 gp_debug res 2 ; General Purpose debug registers
1462 1462
1463 ; 201 byte used, 7 byte free (208 byte total) 1463 ; 203 byte used, 5 byte free (208 byte total)
1464 1464
1465 1465
1466 ;----------------------------------------------------------------------------- 1466 ;-----------------------------------------------------------------------------
1467 ; LOCAL DATA 1467 ; LOCAL DATA
1468 ;----------------------------------------------------------------------------- 1468 ;-----------------------------------------------------------------------------
1663 opt_fw_version_minor res 1 ; firmware version, minor | 1663 opt_fw_version_minor res 1 ; firmware version, minor |
1664 opt_fw_version_beta res 1 ; firmware version, beta | 1664 opt_fw_version_beta res 1 ; firmware version, beta |
1665 opt_surface_interval res 1 ; surface interval, used by deco calculator 1665 opt_surface_interval res 1 ; surface interval, used by deco calculator
1666 opt_brightness_divemode res 1 ; =0: Eco, =1:Medium, =2:Full 1666 opt_brightness_divemode res 1 ; =0: Eco, =1:Medium, =2:Full
1667 opt_brightness_surface res 1 ; =0: Eco, =1:Medium, =2:Full 1667 opt_brightness_surface res 1 ; =0: Eco, =1:Medium, =2:Full
1668 opt_use_AmbientSensor res 1 ; =1: Use the ambient sensor
1668 opt_salinity res 1 ; 0-5% 1669 opt_salinity res 1 ; 0-5%
1669 opt_language res 1 ; current language: 0=EN, 1=DE, 2=FR, 3=SP 1670 opt_language res 1 ; current language: 0=EN, 1=DE, 2=FR, 3=SP
1670 opt_units res 1 ; 0:m/°C, 1:ft/°F 1671 opt_units res 1 ; 0:m/°C, 1:ft/°F
1671 opt_dateformat res 1 ; =0:MMDDYY, =1:DDMMYY, =2:YYMMDD 1672 opt_dateformat res 1 ; =0:MMDDYY, =1:DDMMYY, =2:YYMMDD
1672 opt_dive_color_scheme res 1 ; dive mode color scheme selection 1673 opt_dive_color_scheme res 1 ; dive mode color scheme selection
1719 opt_cave_mode res 1 ; =1: cave mode switched on 1720 opt_cave_mode res 1 ; =1: cave mode switched on
1720 opt_gas_density_check res 1 ; =1: gas density is checked (effective in CCR / pSCR modes only) 1721 opt_gas_density_check res 1 ; =1: gas density is checked (effective in CCR / pSCR modes only)
1721 opt_comm_timeout res 1 ; comm RX timeout in multiples of 10 ms 1722 opt_comm_timeout res 1 ; comm RX timeout in multiples of 10 ms
1722 opt_fallback res 1 ; unused dummy option for compatibility with 3rd party tools 1723 opt_fallback res 1 ; unused dummy option for compatibility with 3rd party tools
1723 opt_conservatism res 1 ; unused dummy option for compatibility with 3rd party tools 1724 opt_conservatism res 1 ; unused dummy option for compatibility with 3rd party tools
1725 opt_warning_level_divemode res 1 ; warning verbose level (divemode) =0: Less, =1: All
1724 1726
1725 ;---- RX Function Settings 1727 ;---- RX Function Settings
1726 opt_transmitter_id_1 res 2 ; 16 bit transmitter ID for Gas 1 1728 opt_transmitter_id_1 res 2 ; 16 bit transmitter ID for Gas 1
1727 opt_transmitter_id_2 res 2 ; 16 bit transmitter ID for Gas 2 1729 opt_transmitter_id_2 res 2 ; 16 bit transmitter ID for Gas 2
1728 opt_transmitter_id_3 res 2 ; 16 bit transmitter ID for Gas 3 1730 opt_transmitter_id_3 res 2 ; 16 bit transmitter ID for Gas 3