Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/definitions.asm @ 598:f3735da18809
NEW: CF65: Show a safety stop for no-deco dives
Texts 194 and 227 need translation
author | heinrichsweikamp |
---|---|
date | Sun, 24 Jun 2012 12:45:34 +0200 |
parents | 8172a7ce6db1 |
children | f1860c1237cc |
comparison
equal
deleted
inserted
replaced
597:8172a7ce6db1 | 598:f3735da18809 |
---|---|
24 #DEFINE softwareversion_x d'2' ; Software version XX.YY | 24 #DEFINE softwareversion_x d'2' ; Software version XX.YY |
25 #DEFINE softwareversion_y d'25' ; Software version XX.YY | 25 #DEFINE softwareversion_y d'25' ; Software version XX.YY |
26 | 26 |
27 #DEFINE softwareversion_beta 1 ; (and 0 for release) | 27 #DEFINE softwareversion_beta 1 ; (and 0 for release) |
28 | 28 |
29 #DEFINE max_custom_number d'64' ; Number of last used custom function | 29 #DEFINE max_custom_number d'65' ; Number of last used custom function |
30 | 30 |
31 ; International extension. Selecting messages source: | 31 ; International extension. Selecting messages source: |
32 #DEFINE ENGLISH ; Use english_text.asm | 32 #DEFINE ENGLISH ; Use english_text.asm |
33 ;#DEFINE FRENCH ; Use french_text.asm | 33 ;#DEFINE FRENCH ; Use french_text.asm |
34 ;#DEFINE GERMAN ; Use german_text.asm | 34 ;#DEFINE GERMAN ; Use german_text.asm |
60 #DEFINE SPEED_32MHz | 60 #DEFINE SPEED_32MHz |
61 | 61 |
62 #DEFINE FT_SMALL .0 | 62 #DEFINE FT_SMALL .0 |
63 #DEFINE FT_MEDIUM .1 | 63 #DEFINE FT_MEDIUM .1 |
64 #DEFINE FT_LARGE .2 | 64 #DEFINE FT_LARGE .2 |
65 | |
66 ; Safety stop parameters | |
67 #DEFINE safety_stop_length .180 ; [s] | |
68 #DEFINE safety_stop_start .500 ; [mbar] | |
69 #DEFINE safety_stop_end .300 ; [mbar] | |
70 #DEFINE safety_stop_reset .1000 ; [mbar] | |
65 | 71 |
66 ; "Better Gas" behavior | 72 ; "Better Gas" behavior |
67 ; better_gas_window <= minimum_change_depth ! | 73 ; better_gas_window <= minimum_change_depth ! |
68 ; minimum_change_depth >=5 ! | 74 ; minimum_change_depth >=5 ! |
69 #DEFINE minimum_change_depth .3 ; [m] | 75 #DEFINE minimum_change_depth .3 ; [m] |
347 convert_value_temp res 3 ; used in menu_battery_state_convert_date | 353 convert_value_temp res 3 ; used in menu_battery_state_convert_date |
348 time_correction_value res 1 ; Adds to Seconds on midnight | 354 time_correction_value res 1 ; Adds to Seconds on midnight |
349 gaslist_active res 1 ; Holds flags for active gases | 355 gaslist_active res 1 ; Holds flags for active gases |
350 desaturation_time_buffer res 2 ; buffer for desat time | 356 desaturation_time_buffer res 2 ; buffer for desat time |
351 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.) | 357 total_divetime_seconds res 2 ; counts dive seconds regardless of CF01 (18h max.) |
358 | |
359 safety_stop_countdown res 1 ; counts seconds of safety stop | |
352 | 360 |
353 ASSERT_BANK1 MACRO tag | 361 ASSERT_BANK1 MACRO tag |
354 Ifdef __DEBUG | 362 Ifdef __DEBUG |
355 local @end | 363 local @end |
356 movlw 1 | 364 movlw 1 |
432 #DEFINE onesecupdate flag2,0 ;=1 after any second | 440 #DEFINE onesecupdate flag2,0 ;=1 after any second |
433 #DEFINE divemode flag2,1 ;=1 if in divemode | 441 #DEFINE divemode flag2,1 ;=1 if in divemode |
434 #DEFINE oneminupdate flag2,2 ;=1 after any minute | 442 #DEFINE oneminupdate flag2,2 ;=1 after any minute |
435 #DEFINE realdive flag2,3 ; dive was longer then one minute? | 443 #DEFINE realdive flag2,3 ; dive was longer then one minute? |
436 #DEFINE sleepmode flag2,4 ;=1 if in sleepmode | 444 #DEFINE sleepmode flag2,4 ;=1 if in sleepmode |
437 #DEFINE same_row flag2,5 ;=1 if pixel pair is in same row (display_profile) | 445 #DEFINE safety_stop_active flag2,5 ;=1 The safety stop is currently displayed |
438 #DEFINE premenu flag2,6 ; Premenu/Divemenu selected | 446 #DEFINE premenu flag2,6 ; Premenu/Divemenu selected |
439 #DEFINE menubit flag2,7 ; menu | 447 #DEFINE menubit flag2,7 ; menu |
440 | 448 |
441 #DEFINE menubit2 flag3,0 ; menu | 449 #DEFINE menubit2 flag3,0 ; menu |
442 #DEFINE menubit3 flag3,1 ; menu | 450 #DEFINE menubit3 flag3,1 ; menu |
495 #DEFINE rs232_recieve_overflow flag8,7 ;=1: An RS232 timeout overflow occoured | 503 #DEFINE rs232_recieve_overflow flag8,7 ;=1: An RS232 timeout overflow occoured |
496 | 504 |
497 #DEFINE nofly_active flag9,0 ;=1: Do not fly! | 505 #DEFINE nofly_active flag9,0 ;=1: Do not fly! |
498 #DEFINE ppO2_display_active flag9,1 ;=1: ppO2 value is displayed | 506 #DEFINE ppO2_display_active flag9,1 ;=1: ppO2 value is displayed |
499 #DEFINE ppO2_show_value flag9,2 ;=1: show ppO2 value! | 507 #DEFINE ppO2_show_value flag9,2 ;=1: show ppO2 value! |
500 #DEFINE uart_reset_battery_stats flag9,3 ;=1: Reset the battery statistics (UART String FFF) | 508 #DEFINE uart_reset_battery_stats flag9,3;=1: Reset the battery statistics (UART String FFF) |
501 #DEFINE ignore_digit3 flag9,4 ;=1: ignores digits 3-5 in valconv | 509 #DEFINE ignore_digit3 flag9,4 ;=1: ignores digits 3-5 in valconv |
502 #DEFINE ppO2_warn_value flag9,5 ;=1: warn about ppO2! | 510 #DEFINE show_safety_stop flag9,5 ;=1: Show the safety stop |
503 #DEFINE output_to_postinc_only flag9,6 ;=1: Do not call wordprocessor in output | 511 #DEFINE output_to_postinc_only flag9,6 ;=1: Do not call wordprocessor in output |
504 #DEFINE uart_send_hash flag9,7 ;=1: Send the MD2 hash via UART | 512 #DEFINE uart_send_hash flag9,7 ;=1: Send the MD2 hash via UART |
505 | 513 |
506 #DEFINE last_ceiling_gf_shown flag10,0 ;=1: Last stop already shown | 514 #DEFINE last_ceiling_gf_shown flag10,0 ;=1: Last stop already shown |
507 #DEFINE uart_send_int_eeprom flag10,1 ;=1: Send internal EEPROM BANK 0 | 515 #DEFINE uart_send_int_eeprom flag10,1 ;=1: Send internal EEPROM BANK 0 |