Mercurial > public > hwos_code
diff src/adc_lightsensor.asm @ 235:23311219dacc
under construction: new hardware_flag to configure different hardware versions
author | heinrichsweikamp |
---|---|
date | Wed, 25 Feb 2015 16:49:59 +0100 |
parents | effd7259f5a5 |
children | e2ea74646127 |
line wrap: on
line diff
--- a/src/adc_lightsensor.asm Wed Feb 25 13:57:30 2015 +0100 +++ b/src/adc_lightsensor.asm Wed Feb 25 16:49:59 2015 +0100 @@ -27,7 +27,7 @@ global get_battery_voltage get_battery_voltage: ; starts ADC and waits until fnished - btfss cr_hardware + btfss rechargeable bra get_battery_voltage1 ; Normal ostc3 hardware call lt2942_get_accumulated_charge @@ -234,7 +234,7 @@ btfsc adc_running ; ADC in use? return ; Yes, return - btfss cr_hardware + btfss rechargeable bra get_ambient_level1 ; Normal ostc3 hardware banksel isr_backup ; Back to Bank0 ISR data @@ -303,7 +303,7 @@ banksel common ; flag is in bank1 movlw ambient_light_max_high_cr; cR hardware brightest setting - btfss cr_hardware + btfss rechargeable movlw ambient_light_max_high_15V; 1,5V battery brightest setting btfsc battery_is_36v ; 3,6V battery in use? movlw ambient_light_max_high_36V ; 3,6V battery brightest setting