Mercurial > public > hwos_code
comparison src/ostc3.inc @ 50:ec4d8503ec45
NEW: user-selectable color schemes
author | heinrichsweikamp |
---|---|
date | Fri, 27 Sep 2013 23:45:57 +0200 |
parents | 1492cfcff7c9 |
children | 2825f1d2262f |
comparison
equal
deleted
inserted
replaced
49:fe01bbaf6014 | 50:ec4d8503ec45 |
---|---|
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 |
22 #DEFINE softwareversion_y d'02' ; Software version XX.YY | 22 #DEFINE softwareversion_y d'03' ; Software version XX.YY |
23 #DEFINE softwareversion_beta 1 ; (and 0 for release) | 23 #DEFINE softwareversion_beta 1 ; (and 0 for release) |
24 | 24 |
25 #DEFINE comm_service_key 0xABCDEF | 25 #DEFINE comm_service_key 0xABCDEF |
26 | 26 |
27 ;----------------------------------------------------------------------------- | 27 ;----------------------------------------------------------------------------- |
512 opt_GF_high res 1 ; GF HIGH | 512 opt_GF_high res 1 ; GF HIGH |
513 opt_GF_low res 1 ; GF LOW | 513 opt_GF_low res 1 ; GF LOW |
514 opt_enable_aGF res 1 ; =1: aGF can be selected underwater | 514 opt_enable_aGF res 1 ; =1: aGF can be selected underwater |
515 opt_compass_gain res 1 ; 0-7 (230LSB/Gauss to 1370LSB/Gaus) | 515 opt_compass_gain res 1 ; 0-7 (230LSB/Gauss to 1370LSB/Gaus) |
516 opt_sampling_rate res 1 ; =1: 10s, =0: 2s | 516 opt_sampling_rate res 1 ; =1: 10s, =0: 2s |
517 opt_dive_color_scheme res 1 ; 0-3 | |
517 | 518 |
518 ;-----------------------------EEPROM DATA ------------------------------------ | 519 ;-----------------------------EEPROM DATA ------------------------------------ |
519 ; Automatic reset of all options when this is changed: | 520 ; Automatic reset of all options when this is changed: |
520 #define eeprom_opt_serial 0x0005 ; Version 0.5 | 521 #define eeprom_opt_serial 0x0005 ; Version 0.5 |
521 | 522 |
592 #DEFINE adc_running flag8,5 ; =1: The ADC is in use | 593 #DEFINE adc_running flag8,5 ; =1: The ADC is in use |
593 #DEFINE comm_service_enabled flag8,6 ; =1: COMM Service mode unlocked | 594 #DEFINE comm_service_enabled flag8,6 ; =1: COMM Service mode unlocked |
594 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active | 595 #DEFINE compass_enabled flag8,7 ; =1: The compass and accelerometer chip is active |
595 | 596 |
596 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode | 597 #DEFINE compass_fast_mode flag9,0 ; =1: The compass is in fast mode |
598 #DEFINE in_color_menu flag9,1 ; =1: In the color scheme menu | |
597 | 599 |
598 ;============================================================================= | 600 ;============================================================================= |
599 ; C-code Routines | 601 ; C-code Routines |
600 ; PART 2 | 602 ; PART 2 |
601 extern deco_calc_CNS_decrease_15min | 603 extern deco_calc_CNS_decrease_15min |