diff src/cs/drivers/drv_app/spi/spi_task.c @ 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 4e78acac3d88
children 34b7059b9337
line wrap: on
line diff
--- 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)
 {