FreeCalypso > hg > fc-magnetite
changeset 136:0b3338d36367
src/condat2/com/src/driver/light.c: tab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 08 Oct 2016 05:08:37 +0000 |
parents | c7f1d5598508 |
children | 1974d7cacf84 |
files | src/condat2/com/src/driver/light.c |
diffstat | 1 files changed, 53 insertions(+), 53 deletions(-) [+] |
line wrap: on
line diff
--- a/src/condat2/com/src/driver/light.c Sat Oct 08 04:54:29 2016 +0000 +++ b/src/condat2/com/src/driver/light.c Sat Oct 08 05:08:37 2016 +0000 @@ -18,21 +18,21 @@ +----------------------------------------------------------------------------- - Apr 26, 2005 REF : CRR 30627 xpradipg - Bug : Replace the ABB APIs with Audio Service APIs - Fix : Remove the LT_ function calls + Apr 26, 2005 REF : CRR 30627 xpradipg + Bug : Replace the ABB APIs with Audio Service APIs + Fix : Remove the LT_ function calls *******************************************************************************/ /* - June 03, 2005 REF: GSM-ENH-31636 xpradipg - Description: Change the board ID for Isample to 71 and add new defination - for the CALLISTO with baord ID 70 - Solution: Add the definition of ALLISTO with board ID 70 and change the - board Id to 71 for Isample + June 03, 2005 REF: GSM-ENH-31636 xpradipg + Description: Change the board ID for Isample to 71 and add new defination + for the CALLISTO with baord ID 70 + Solution: Add the definition of ALLISTO with board ID 70 and change the + board Id to 71 for Isample - CRR 28825: xpradipg - 11 Feb 2005 - Description:Extension of GDI-for display of ISample and code cleanup - Solution: The code replication for D_Sample and E_sample are removed and a new - flag is added for the ISample currently the BOARD ID is set to 60 for ISample. + CRR 28825: xpradipg - 11 Feb 2005 + Description:Extension of GDI-for display of ISample and code cleanup + Solution: The code replication for D_Sample and E_sample are removed and a new + flag is added for the ISample currently the BOARD ID is set to 60 for ISample. */ #ifndef DRV_LT_C @@ -138,15 +138,15 @@ switch (in_NewStatus) { case LIGHT_STATUS_OFF: - light_setBacklightOff(); -// Apr 26, 2005 REF : CRR 30627 xpradipg -#ifndef FF_MMI_SERVICES_MIGRATION + light_setBacklightOff(); +// Apr 26, 2005 REF : CRR 30627 xpradipg +#ifndef FF_MMI_SERVICES_MIGRATION LT_Disable (); #endif break; default: - light_setBacklightOn(); -// Apr 26, 2005 REF : CRR 30627 xpradipg + light_setBacklightOn(); +// Apr 26, 2005 REF : CRR 30627 xpradipg #ifndef FF_MMI_SERVICES_MIGRATION LT_Enable (); LT_Level (255); @@ -229,77 +229,77 @@ #endif enum { - BACKLIGHT_OFF, - BACKLIGHT_ON, - BACKLIGHT_IDLE1 + BACKLIGHT_OFF, + BACKLIGHT_ON, + BACKLIGHT_IDLE1 }; UBYTE backLightState= BACKLIGHT_OFF; /******************************************************************************* - $Function: setBacklightOn + $Function: setBacklightOn - $Description: switches backlight on. Called on powerup or on a key press. - Should also be called on incoming call, SMS etc ? + $Description: switches backlight on. Called on powerup or on a key press. + Should also be called on incoming call, SMS etc ? - $Returns: none. + $Returns: none. - $Arguments: none. + $Arguments: none. *******************************************************************************/ void light_setBacklightOn( void ) { - if (backLightState == BACKLIGHT_OFF) - { + if (backLightState == BACKLIGHT_OFF) + { //#ifdef DSAMPLE_COLOUR - lls_switch_on(LLS_BACKLIGHT); //Switch backlight on + lls_switch_on(LLS_BACKLIGHT); //Switch backlight on //#endif - } - backLightState = BACKLIGHT_ON; + } + backLightState = BACKLIGHT_ON; } /******************************************************************************* - $Function: setBacklightOff + $Function: setBacklightOff - $Description: switches backlight off. + $Description: switches backlight off. - $Returns: none. + $Returns: none. - $Arguments: none. + $Arguments: none. *******************************************************************************/ void light_setBacklightOff( void ) { - if ((backLightState == BACKLIGHT_ON) || - (backLightState == BACKLIGHT_IDLE1)) - { - backLightState = BACKLIGHT_OFF; + if ((backLightState == BACKLIGHT_ON) || + (backLightState == BACKLIGHT_IDLE1)) + { + backLightState = BACKLIGHT_OFF; //#ifdef DSAMPLE_COLOUR - lls_switch_off(LLS_BACKLIGHT); //Switch backlight on + lls_switch_off(LLS_BACKLIGHT); //Switch backlight on //#endif - } + } } /******************************************************************************* - $Function: setBacklightIdle + $Function: setBacklightIdle - $Description: switches backlight off (on second call). Called when the 1 minute timer expires. - If no key press since the last call, the backlight is switched off. + $Description: switches backlight off (on second call). Called when the 1 minute timer expires. + If no key press since the last call, the backlight is switched off. - $Returns: none. + $Returns: none. - $Arguments: none. + $Arguments: none. *******************************************************************************/ void light_setBacklightIdle( void ) { - if (backLightState == BACKLIGHT_ON) - { - backLightState = BACKLIGHT_IDLE1; - } - else - { - light_setBacklightOff(); - } + if (backLightState == BACKLIGHT_ON) + { + backLightState = BACKLIGHT_IDLE1; + } + else + { + light_setBacklightOff(); + } }