# HG changeset patch # User Mychaela Falconia # Date 1619123607 0 # Node ID 96c7a4eed1dfe5c22e7cf30e214a09756b6a0204 # Parent 7e225a4cd53757c92b271fa93c093c39d37fc0aa .../power/board/power.c: rm trailing white space diff -r 7e225a4cd537 -r 96c7a4eed1df src/cs/drivers/drv_app/power/board/power.c --- a/src/cs/drivers/drv_app/power/board/power.c Thu Apr 22 07:30:26 2021 +0000 +++ b/src/cs/drivers/drv_app/power/board/power.c Thu Apr 22 20:33:27 2021 +0000 @@ -2,15 +2,15 @@ * * power.c * -* Purpose: This file contains the functions used for power on and off +* Purpose: This file contains the functions used for power on and off * management of the board. -* In case of RVM_PWR_SWE, this file contains also the -* functions used for charger plug and unplug management. +* In case of RVM_PWR_SWE, this file contains also the +* functions used for charger plug and unplug management. * They are all called after the occurence of the ABB interrupt. -* -* Author: Candice Bazanegue (c-brille@ti.com) -* -* +* +* Author: Candice Bazanegue (c-brille@ti.com) +* +* * (C) Texas Instruments 2001 * ******************************************************************************/ @@ -33,8 +33,8 @@ #ifdef RVM_PWR_SWE #include "spi/spi_task.h" #ifndef _WINDOWS - #include "l1sw.cfg" - #include "chipset.cfg" + #include "l1sw.cfg" + #include "chipset.cfg" #endif // _WINDOWS #include "pwr/pwr_messages.h" #include "pwr/pwr_liion_cha.h" @@ -59,7 +59,7 @@ ** ** Function Power_ON_Button ** -** Description: Informs the Protocol Stack that the Power ON key has been +** Description: Informs the Protocol Stack that the Power ON key has been ** pressed, and thus allows it to start. ** *******************************************************************************/ @@ -69,7 +69,7 @@ SPI_GBL_INFO_PTR->is_gsm_on = TRUE; /* - When we build for ACI, we have no MMI, so there's no point waiting + When we build for ACI, we have no MMI, so there's no point waiting for a keypress. See CR 17958. */ @@ -99,7 +99,7 @@ ** ** Function Power_OFF_Button ** -** Description: Informs the Protocol Stack that the Power OFF key has been +** Description: Informs the Protocol Stack that the Power OFF key has been ** pressed, and thus allows it to stop. ** *******************************************************************************/ @@ -142,7 +142,7 @@ ** ** Function Switch_ON ** -** Description This function is called by the spi task after the board is +** Description This function is called by the spi task after the board is ** switched ON. It calls the appropriate function according ** to the ABB status register. ** @@ -166,13 +166,13 @@ } #if ((ANLG_FAM == 1) || (ANLG_FAM == 2)) - else if (Power_abb_status & ONRSTS) + else if (Power_abb_status & ONRSTS) #elif (ANLG_FAM == 3) else if (Power_abb_status & RPSTS) #endif { /* Switch on Condition on ON REM transition 0->1 */ - rvf_send_trace("ON Remote",9, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID); + rvf_send_trace("ON Remote",9, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID); Power_ON_Remote(); #ifdef RVM_PWR_SWE pwr_handle_discharge(); @@ -183,7 +183,7 @@ else if (Power_abb_status & CHGSTS) { /* Switch on Condition on CHARGER IC PLUG */ - rvf_send_trace("PWR: Charger Plug",17, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID); + rvf_send_trace("PWR: Charger Plug",17, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID); if (Power_abb_status & CHGPRES) { /* charger still present */ @@ -195,7 +195,7 @@ else { // The reset should run the SW in the same way than a Power ON - rvf_send_trace("Start from reset",16, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID); + rvf_send_trace("Start from reset",16, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID); Power_ON_Button(); #ifdef RVM_PWR_SWE pwr_handle_discharge(); @@ -209,7 +209,7 @@ ** ** Function Power_ON_Remote ** -** Description +** Description ** ** *******************************************************************************/ @@ -223,7 +223,7 @@ ** ** Function Power_OFF_Remote ** -** Description +** Description ** ** *******************************************************************************/ @@ -237,7 +237,7 @@ ** ** Function Power_IT_WakeUp ** -** Description +** Description ** ** *******************************************************************************/ @@ -252,7 +252,7 @@ ** ** Function PWR_Charger_Plug ** -** Description +** Description ** ** *******************************************************************************/ @@ -285,21 +285,21 @@ ** ** Function PWR_Charger_Unplug ** -** Description +** Description ** ** *******************************************************************************/ void PWR_Charger_Unplug(void) { /* informs the upper layer that the charger has been unplugged */ - pwr_send_charger_unplug_event(); + pwr_send_charger_unplug_event(); rvf_send_trace("Charger unplug", 14, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, LCC_USE_ID ); pwr_stop_charging(); if (SPI_GBL_INFO_PTR->is_gsm_on == FALSE) /* GSM OFF */ { #ifndef _WINDOWS - #if (ANLG_FAM == 1) + #if (ANLG_FAM == 1) ABB_Write_Register_on_page(PAGE0, VRPCCTL2, 0x00EE); #elif ((ANLG_FAM == 2) || (ANLG_FAM == 3)) ABB_Write_Register_on_page(PAGE0, VRPCDEV, 0x0001);