changeset 259:365833d1d186

drv_app/spi/*: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 May 2021 01:30:13 +0000
parents 45cc81cc6230
children 34b7059b9337
files src/cs/drivers/drv_app/spi/spi_api.c src/cs/drivers/drv_app/spi/spi_api.h src/cs/drivers/drv_app/spi/spi_env.c src/cs/drivers/drv_app/spi/spi_process.c src/cs/drivers/drv_app/spi/spi_process.h src/cs/drivers/drv_app/spi/spi_task.c src/cs/drivers/drv_app/spi/spi_task.h
diffstat 7 files changed, 47 insertions(+), 47 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/spi/spi_api.c	Fri May 14 00:11:30 2021 +0000
+++ b/src/cs/drivers/drv_app/spi/spi_api.c	Fri May 14 01:30:13 2021 +0000
@@ -2,7 +2,7 @@
 *
 *	File Name: spi_api.c
 *
-*	Bridge functions used to send events to the SPI task 
+*	Bridge functions used to send events to the SPI task
 *
 *	(C) Texas Instruments, all rights reserved
 *
@@ -10,7 +10,7 @@
 *
 *	History: 0.1 - Created by Candice Bazanegue
 *
-*	Author: 
+*	Author:
 *
 *********************************************************************************/
 
@@ -34,19 +34,19 @@
    /* check if the driver has been started */
    if (SPI_GBL_INFO_PTR == NULL)
    {
-      rvf_send_trace("ABB read not possible. Reason: SPI task not started",51, NULL_PARAM, 
+      rvf_send_trace("ABB read not possible. Reason: SPI task not started",51, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
 
    if(SPI_GBL_INFO_PTR->SpiTaskReady == FALSE)
    {
-      rvf_send_trace("ABB read not possible. Reason: SPI Task not ready",49, NULL_PARAM, 
+      rvf_send_trace("ABB read not possible. Reason: SPI Task not ready",49, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
 
-   rvf_send_trace("SPI_ABB_READ",12, NULL_PARAM, 
+   rvf_send_trace("SPI_ABB_READ",12, NULL_PARAM,
                   RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
 
    if (rvf_get_buf (SPI_GBL_INFO_PTR->prim_id, sizeof (T_SPI_READ),(void **) &msgPtr) == RVF_RED)
@@ -87,14 +87,14 @@
    /* check if the driver has been started */
    if (SPI_GBL_INFO_PTR == NULL)
    {
-      rvf_send_trace("ABB write not possible. Reason: SPI task not started",52, NULL_PARAM, 
+      rvf_send_trace("ABB write not possible. Reason: SPI task not started",52, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
 
    if(SPI_GBL_INFO_PTR->SpiTaskReady == FALSE)
    {
-      rvf_send_trace("ABB write not possible. Reason: SPI Task not ready",50, NULL_PARAM, 
+      rvf_send_trace("ABB write not possible. Reason: SPI Task not ready",50, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
@@ -137,19 +137,19 @@
    /* check if the driver has been started */
    if (SPI_GBL_INFO_PTR == NULL)
    {
-      rvf_send_trace("ABB conf ADC not possible. Reason: SPI task not started",55, NULL_PARAM, 
+      rvf_send_trace("ABB conf ADC not possible. Reason: SPI task not started",55, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
 
    if(SPI_GBL_INFO_PTR->SpiTaskReady == FALSE)
    {
-      rvf_send_trace("ABB conf ADC not possible. Reason: SPI Task not ready",53, NULL_PARAM, 
+      rvf_send_trace("ABB conf ADC not possible. Reason: SPI Task not ready",53, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
 
-   rvf_send_trace("SPI_ABB_CONF_ADC",16, NULL_PARAM, 
+   rvf_send_trace("SPI_ABB_CONF_ADC",16, NULL_PARAM,
                   RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
 
    if (rvf_get_buf (SPI_GBL_INFO_PTR->prim_id, sizeof (T_SPI_ABB_CONF_ADC),(void **) &msgPtr) == RVF_RED)
@@ -188,19 +188,19 @@
    /* check if the driver has been started */
    if (SPI_GBL_INFO_PTR == NULL)
    {
-      rvf_send_trace("ABB read ADC not possible. Reason: SPI task not started",55, NULL_PARAM, 
+      rvf_send_trace("ABB read ADC not possible. Reason: SPI task not started",55, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
 
    if(SPI_GBL_INFO_PTR->SpiTaskReady == FALSE)
    {
-      rvf_send_trace("ABB conf ADC not possible. Reason: SPI Task not ready",53, NULL_PARAM, 
+      rvf_send_trace("ABB conf ADC not possible. Reason: SPI Task not ready",53, NULL_PARAM,
                      RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
       return (RVM_NOT_READY);
    }
 
-   rvf_send_trace("SPI_ABB_READ_ADC",16, NULL_PARAM, 
+   rvf_send_trace("SPI_ABB_READ_ADC",16, NULL_PARAM,
                   RV_TRACE_LEVEL_WARNING, SPI_USE_ID);
 
    if (rvf_get_buf (SPI_GBL_INFO_PTR->prim_id, sizeof (T_SPI_ABB_READ_ADC),(void **) &msgPtr) == RVF_RED)
--- a/src/cs/drivers/drv_app/spi/spi_api.h	Fri May 14 00:11:30 2021 +0000
+++ b/src/cs/drivers/drv_app/spi/spi_api.h	Fri May 14 01:30:13 2021 +0000
@@ -109,7 +109,7 @@
 /*                                                                              */
 /*    Function Name:   spi_abb_read                                             */
 /*                                                                              */
-/*    Purpose:     This function is used to send a READ REGISTER rqst msg       */ 
+/*    Purpose:     This function is used to send a READ REGISTER rqst msg       */
 /*                 to the SPI mailbox.                                          */
 /*                                                                              */
 /*    Input Parameters: 														*/
@@ -133,7 +133,7 @@
 /*                                                                              */
 /*    Function Name:   spi_abb_conf_ADC                                         */
 /*                                                                              */
-/*    Purpose:     This function is used to send to the SPI mailbox a rqst msg  */ 
+/*    Purpose:     This function is used to send to the SPI mailbox a rqst msg  */
 /*                 for configuring ABB MADC for conversions.                    */
 /*                                                                              */
 /*    Input Parameters: 														*/
@@ -155,7 +155,7 @@
 /*                                                                              */
 /*    Function Name:   spi_abb_read_ADC                                         */
 /*                                                                              */
-/*    Purpose:     This function is used to send to the SPI mailbox a rqst msg  */ 
+/*    Purpose:     This function is used to send to the SPI mailbox a rqst msg  */
 /*                 for reading the ABB ADC results.                             */
 /*                                                                              */
 /*    Input Parameters: 														*/
--- a/src/cs/drivers/drv_app/spi/spi_env.c	Fri May 14 00:11:30 2021 +0000
+++ b/src/cs/drivers/drv_app/spi/spi_env.c	Fri May 14 01:30:13 2021 +0000
@@ -39,14 +39,14 @@
 /******************************************************************************
 * Function	  : spi_get_info
 *
-* Description : This function is called by the RV manager to learn 
+* Description : This function is called by the RV manager to learn
 *               spi requirements in terms of memory, SWEs...
 *
 * Parameters  : T_RVM_INFO_SWE  * swe_info: pointer to the structure to fill
 *               containing infos related to the SPI SWE.
 *
 * Return      : T_RVM_RETURN
-* 
+*
 * History     : 0.1 (20-August-2000)
 *
 *
@@ -94,7 +94,7 @@
 /******************************************************************************
 * Function     : spi_set_info
 *
-* Description : This function is called by the RV manager to inform  
+* Description : This function is called by the RV manager to inform
 *               the spi SWE about task_id, mb_id and error function.
 *
 * Parameters  : - T_RVM_TASK_ID  taskId: task_id.
@@ -103,7 +103,7 @@
 *               - callback function to call in case of unrecoverable error.
 *
 * Return      : T_RVM_RETURN
-* 
+*
 * History     : 0.1 (20-August-2000)
 *
 *
@@ -119,14 +119,14 @@
    T_RVF_MB_STATUS mb_status;
    UINT16 i;
 
-   rvf_send_trace("SPI : spi_set_info: try to init GLOBAL INFO SPI structure ... ",62, 
+   rvf_send_trace("SPI : spi_set_info: try to init GLOBAL INFO SPI structure ... ",62,
                    NULL_PARAM,
                    RV_TRACE_LEVEL_DEBUG_LOW,
                    SPI_USE_ID);
 
    mb_status = rvf_get_buf(mbId[0],sizeof(T_SPI_GBL_INFO),(void **) &SPI_GBL_INFO_PTR);
 
-   if (mb_status == RVF_RED) 
+   if (mb_status == RVF_RED)
    {
       rvf_send_trace("SPI : spi_set_info: Not enough memory to initiate GLOBAL INFO SPI structure ... ",80,
                       NULL_PARAM,
@@ -154,7 +154,7 @@
 
    SPI_GBL_INFO_PTR->SpiTaskReady = FALSE;
 
-   /* spi task_id and spi mb_id could be retrieved later 
+   /* spi task_id and spi mb_id could be retrieved later
       using rvf_get_taskid and rvf_get_mb_id functions */
 
    return RV_OK;
@@ -164,13 +164,13 @@
 /******************************************************************************
 * Function  : spi_init
 *
-* Description : This function is called by the RV manager to initialize the 
-*               spi SWE before creating the task and calling spi_start. 
+* Description : This function is called by the RV manager to initialize the
+*               spi SWE before creating the task and calling spi_start.
 *
 * Parameters  : None
 *
 * Return      : T_RVM_RETURN
-* 
+*
 * History	  : 0.1 (20-August-2000)
 *
 *
@@ -191,7 +191,7 @@
 * Parameters  : None
 *
 * Return      : T_RVM_RETURN
-* 
+*
 * History	  : 0.1 (20-August-2000)
 *
 *
@@ -207,13 +207,13 @@
 /******************************************************************************
 * Function  : spi_kill
 *
-* Description : This function is called by the RV manager to kill the spi 
+* Description : This function is called by the RV manager to kill the spi
 *               SWE, after the spi_stop function has been called.
 *
 * Parameters  : None
 *
 * Return      : T_RVM_RETURN
-* 
+*
 * History     : 0.1 (20-August-2000)
 *
 *
--- a/src/cs/drivers/drv_app/spi/spi_process.c	Fri May 14 00:11:30 2021 +0000
+++ b/src/cs/drivers/drv_app/spi/spi_process.c	Fri May 14 01:30:13 2021 +0000
@@ -116,7 +116,7 @@
            rvf_send_trace("SPI_task: SPI_ABB_CONF_ADC_EVT received", 39, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_LOW, SPI_USE_ID);
 
            /* Call to the low-level driver function */
-           ABB_Conf_ADC(((T_SPI_ABB_CONF_ADC *)msg_ptr)->channels, ((T_SPI_ABB_CONF_ADC *)msg_ptr)->itval);                              
+           ABB_Conf_ADC(((T_SPI_ABB_CONF_ADC *)msg_ptr)->channels, ((T_SPI_ABB_CONF_ADC *)msg_ptr)->itval);
 
            rvf_free_buf ((void *) msg_ptr);
 
@@ -153,8 +153,8 @@
 
            rvf_free_buf ((void *) msg_ptr);
            #endif
-		   
-           return 1; 
+
+           return 1;
 		 }
       }	   // end of switch
    }	// end of if (msg_ptr != NULL)
--- a/src/cs/drivers/drv_app/spi/spi_process.h	Fri May 14 00:11:30 2021 +0000
+++ b/src/cs/drivers/drv_app/spi/spi_process.h	Fri May 14 01:30:13 2021 +0000
@@ -30,10 +30,10 @@
 /*******************************************************************************
 ** Function         spi_process
 **
-** Description     It is called by the spi task core to handle the access to                                         
-**                 the ABB through the SPI in a non-preemptive way.        
+** Description     It is called by the spi task core to handle the access to
+**                 the ABB through the SPI in a non-preemptive way.
 **
 *******************************************************************************/
 UINT8 spi_process(T_RV_HDR * msg_ptr);
 
-#endif /* __SPI_PROCESS_H__ */
\ No newline at end of file
+#endif /* __SPI_PROCESS_H__ */
--- a/src/cs/drivers/drv_app/spi/spi_task.c	Fri May 14 00:11:30 2021 +0000
+++ b/src/cs/drivers/drv_app/spi/spi_task.c	Fri May 14 01:30:13 2021 +0000
@@ -47,12 +47,12 @@
 /*******************************************************************************
 ** Function         spi_core
 **
-** Description      Core of the spi task, which initiliazes the spi SWE and 
+** Description      Core of the spi task, which initiliazes the spi SWE and
 **					waits for messages.
-**					
+**
 *******************************************************************************/
 T_RV_RET spi_core(void)
-{	
+{
 	BOOLEAN error_occured = FALSE;
 	T_RV_HDR * msg_ptr;
 
@@ -77,15 +77,15 @@
 	{
 		/* Wait for the necessary events (infinite wait for a msg in the mailbox 0). */
 		UINT16 received_event = rvf_wait (0xffff, 0);
-					
+
 		/* If an event related to mailbox 0 is received, then */
-		if (received_event & RVF_TASK_MBOX_0_EVT_MASK) 
+		if (received_event & RVF_TASK_MBOX_0_EVT_MASK)
 		{
 			/* Read the message in the driver mailbox and delegate action..*/
 			msg_ptr = (T_RV_HDR *) rvf_read_mbox(SPI_MAILBOX);
 
             #ifdef RVM_PWR_SWE
-			if(spi_process(msg_ptr)) 
+			if(spi_process(msg_ptr))
 			{
 				pwr_process(msg_ptr);
 			}
@@ -112,15 +112,15 @@
 		{
            pwr_CV_charge_timer_process();
         }
-        
-		if (received_event & SPI_TIMER3_WAIT_EVENT) 
+
+		if (received_event & SPI_TIMER3_WAIT_EVENT)
 		/* timer used to check the battery discharge level */
 		{
            pwr_discharge_timer_process();
         }
 		#endif
 	}	 // end of while
-	return RV_OK;	
+	return RV_OK;
 }
 
 
@@ -129,13 +129,13 @@
 * Function	  : spi_adc_on
 *
 * Description : Put the variable is_adc_on of the T_SPI_GBL_INFO structure to TRUE.
-*				This variable is used for the battery management. 
+*				This variable is used for the battery management.
 *               This function is called by the CST entity.
 *
 * Parameters  : None
 *
 * Return      : None
-* 
+*
 **********************************************************************************/
 void spi_adc_on (void)
 {
--- a/src/cs/drivers/drv_app/spi/spi_task.h	Fri May 14 00:11:30 2021 +0000
+++ b/src/cs/drivers/drv_app/spi/spi_task.h	Fri May 14 01:30:13 2021 +0000
@@ -53,4 +53,4 @@
 void spi_adc_on (void);
 T_RV_RET spi_core(void);
 
-#endif	// _SPI_TASK_H_
\ No newline at end of file
+#endif	// _SPI_TASK_H_