comparison src/hwos.inc @ 561:9c54849b8d3b

Remove routine to fix corrupt dives made with v1.80
author heinrichsweikamp
date Sat, 03 Feb 2018 13:36:02 +0100
parents b7eb98dbd800
children 8b7ea27ea1fa
comparison
equal deleted inserted replaced
560:b7eb98dbd800 561:9c54849b8d3b
237 ; Compass display 237 ; Compass display
238 #DEFINE compass_fast_treshold .9 ; show new heading instantly if new and old > compass_fast_treshold 238 #DEFINE compass_fast_treshold .9 ; show new heading instantly if new and old > compass_fast_treshold
239 #DEFINE compass_averaging .10 ; numbers of extra averaging 239 #DEFINE compass_averaging .10 ; numbers of extra averaging
240 240
241 ; Hardware defines 241 ; Hardware defines
242 #DEFINE battery_gauge_available hardware_flag,0 ; OSTC has rechargeable battery with battery management chip 242 #DEFINE battery_gauge_available hardware_flag,0 ; OSTC has rechargeable battery with battery management chip
243 #DEFINE ambient_sensor hardware_flag,1 ; OSTC has an ambient sensor 243 #DEFINE ambient_sensor hardware_flag,1 ; OSTC has an ambient light sensor
244 #DEFINE analog_o2_input hardware_flag,2 ; OSTC has analog inputs and S8 digital 244 #DEFINE analog_o2_input hardware_flag,2 ; OSTC has analog inputs and S8 digital
245 #DEFINE optical_input hardware_flag,3 ; OSTC has an digital optical input 245 #DEFINE optical_input hardware_flag,3 ; OSTC has an digital optical input
246 #DEFINE ble_available hardware_flag,4 ; OSTC has an BLE module 246 #DEFINE ble_available hardware_flag,4 ; OSTC has an BLE module
247 #DEFINE ostc_rx_present hardware_flag,5 ; OSTC_RX circuity present 247 #DEFINE ostc_rx_present hardware_flag,5 ; OSTC_RX circuity present
248 ;unused 248 ;unused
249 ;unused 249 ;unused
250 250
251 ; Hardware flag byte:
252 ; BIT0 = OSTC has rechargeable battery with battery management chip
253 ; BIT1 = OSTC has an ambient light sensor
254 ; BIT2 = OSTC has analog inputs and S8 digital
255 ; BIT3 = OSTC has an digital optical input
256 ; BIT4 = OSTC has an BLE module
257 ; BIT5 = OSTC_RX circuity present
258 ; BIT6 = unused
259 ; BIT7 = unused
260
261
251 ;---------------------------- Macros ------------------------------------ 262 ;---------------------------- Macros ------------------------------------
252 263
253 TSTOSS macro opt_reg ; TeST Option Skip if not Zero 264 TSTOSS macro opt_reg ; TeST Option Skip if not Zero
254 movff opt_reg,WREG 265 movff opt_reg,WREG
255 tstfsz WREG,A 266 tstfsz WREG,A