comparison src/ostc3.inc @ 98:24b3fd59e61f

add event "bailout" in profile
author heinrichsweikamp
date Thu, 01 May 2014 21:16:31 +0200
parents 53a99a2dc6a1
children 87cc1adfe4da
comparison
equal deleted inserted replaced
97:53a99a2dc6a1 98:24b3fd59e61f
11 11
12 ;============================================================================= 12 ;=============================================================================
13 13
14 LIST P=18F87K22 ; change also: Configure->SelectDevice from Mplab 14 LIST P=18F87K22 ; change also: Configure->SelectDevice from Mplab
15 15
16 ;#DEFINE __DEBUG 16 #DEFINE __DEBUG
17 17
18 #include <p18f87k22.inc> 18 #include <p18f87k22.inc>
19 #include <ports.inc> ; Portmap 19 #include <ports.inc> ; Portmap
20 20
21 #DEFINE softwareversion_x d'1' ; Software version XX.YY 21 #DEFINE softwareversion_x d'1' ; Software version XX.YY
424 average_divesecs res 2 ; For the resettable stopwatch 424 average_divesecs res 2 ; For the resettable stopwatch
425 decodata res 2 425 decodata res 2
426 apnoe_timeout_counter res 1 426 apnoe_timeout_counter res 1
427 apnoe_surface_mins res 1 427 apnoe_surface_mins res 1
428 apnoe_surface_secs res 1 428 apnoe_surface_secs res 1
429 tft_gaslist_temp res 1
429 430
430 ; Profile storing 431 ; Profile storing
431 AlarmType res 1 432 AlarmType res 1
432 samplesecs res 1 433 samplesecs res 1
433 EventByte res 1 434 EventByte res 1
435 EventByte2 res 1
434 ProfileFlagByte res 1 436 ProfileFlagByte res 1
435 437
436 ; External flash 438 ; External flash
437 ext_flash_address res 3 ; 24bit Address 439 ext_flash_address res 3 ; 24bit Address
438 ext_flash_log_pointer res 3 ; 24bit Address for logbook profile storing 440 ext_flash_log_pointer res 3 ; 24bit Address for logbook profile storing
439 ext_flash_dive_counter res 3 ; 24bit Counter for dive length (increased in write_byte_ext_flash_plus) 441 ext_flash_dive_counter res 3 ; 24bit Counter for dive length (increased in write_byte_ext_flash_plus)
440 442
441 ; I2C 443 ; I2C
442 i2c_temp res 1 ; Temp 444 i2c_temp res 1 ; Temp
443
444 ; MCP
445 mcp_temp res 4 ; For RX
446 445
447 ; O2 Sensor data 446 ; O2 Sensor data
448 o2_mv_sensor1 res 2 ; in 0.1mV steps 447 o2_mv_sensor1 res 2 ; in 0.1mV steps
449 o2_mv_sensor2 res 2 ; in 0.1mV steps 448 o2_mv_sensor2 res 2 ; in 0.1mV steps
450 o2_mv_sensor3 res 2 ; in 0.1mV steps 449 o2_mv_sensor3 res 2 ; in 0.1mV steps
596 #DEFINE comm_service_enabled flag8,6 ; =1: COMM Service mode unlocked 595 #DEFINE comm_service_enabled flag8,6 ; =1: COMM Service mode unlocked
597 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active 596 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active
598 597
599 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode 598 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode
600 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu 599 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu
601 600 #DEFINE bailoutgas_event flag9,2 ; =1: bailout was selected or a gaschange during bailout
601 #DEFINE event2_occured flag9,3 ; =1: An event in the Eventbyte2 occured, store it!
602 ;============================================================================= 602 ;=============================================================================
603 ; C-code Routines 603 ; C-code Routines
604 ; PART 2 604 ; PART 2
605 extern deco_calc_CNS_decrease_15min 605 extern deco_calc_CNS_decrease_15min
606 extern deco_calc_CNS_fraction 606 extern deco_calc_CNS_fraction