Mercurial > public > hwos_code
comparison src/ostc3.inc @ 77:131e6dd9e201
BUGFIX: Potential bug to freeze the OSTC3 after battery change or update
author | heinrichsweikamp |
---|---|
date | Thu, 20 Feb 2014 10:12:45 +0100 |
parents | a5ea132770db |
children | 668b432dcae9 |
comparison
equal
deleted
inserted
replaced
76:a5ea132770db | 77:131e6dd9e201 |
---|---|
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'21' ; Software version XX.YY | 22 #DEFINE softwareversion_y d'22' ; Software version XX.YY |
23 #DEFINE softwareversion_beta 0 ; (and 0 for release) | 23 #DEFINE softwareversion_beta 0 ; (and 0 for release) |
24 | 24 |
25 #DEFINE comm_service_key 0xABCDEF | 25 #DEFINE comm_service_key 0xABCDEF |
26 | 26 |
27 ;----------------------------------------------------------------------------- | 27 ;----------------------------------------------------------------------------- |
149 #DEFINE aa_15v_low .1100 ; [mV] According to Energizer Datasheet EBC-4201R, Page 2 | 149 #DEFINE aa_15v_low .1100 ; [mV] According to Energizer Datasheet EBC-4201R, Page 2 |
150 #DEFINE color_code_battery_low .10 ; [%] | 150 #DEFINE color_code_battery_low .10 ; [%] |
151 #DEFINE battery_show_level .24 ; [%] | 151 #DEFINE battery_show_level .24 ; [%] |
152 | 152 |
153 ; 3,6V battery sensing data points at 55mA load | 153 ; 3,6V battery sensing data points at 55mA load |
154 #DEFINE lithium_36v_75 .3200 ; [mV] | 154 #DEFINE lithium_36v_75 .3100 ; [mV] |
155 #DEFINE lithium_36v_50 .3100 ; [mV] | 155 #DEFINE lithium_36v_50 .3000 ; [mV] |
156 #DEFINE lithium_36v_25 .2900 ; [mV] | 156 #DEFINE lithium_36v_25 .2900 ; [mV] |
157 #DEFINE lithium_36v_10 .2600 ; [mV] | 157 #DEFINE lithium_36v_10 .2600 ; [mV] |
158 | 158 |
159 #DEFINE current_sleepmode .62 | 159 #DEFINE current_sleepmode .62 |
160 #DEFINE current_backlight_multi .115 ; *CCPR1L+current_backlight_offset | 160 #DEFINE current_backlight_multi .115 ; *CCPR1L+current_backlight_offset |