comparison src/cs/drivers/drv_app/r2d/r2d_task.c @ 216:777698cf6583

r2d_task.c: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 24 Apr 2021 19:58:49 +0000
parents 4e78acac3d88
children 6541e43f88e5
comparison
equal deleted inserted replaced
215:76f65c8bb151 216:777698cf6583
1 /** 1 /**
2 2
3 @file: r2d_task.c 3 @file: r2d_task.c
4 4
5 @author Christophe Favergeon 5 @author Christophe Favergeon
6 6
7 @version 0.5 7 @version 0.5
8 8
9 Purpose: Refresh task for R2D. It is calling the LCD dependent refresh subroutine 9 Purpose: Refresh task for R2D. It is calling the LCD dependent refresh subroutine
10 10
11 */ 11 */
12 12
13 /* 13 /*
14 14
15 Date Modification 15 Date Modification
16 ------------------------------------ 16 ------------------------------------
17 06/02/2001 Create 17 06/02/2001 Create
18 10/18/2001 Version 0.5 for first integration with Riviera database 18 10/18/2001 Version 0.5 for first integration with Riviera database
19 19
20 20
21 (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved 21 (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved
22 */ 22 */
23 23
24 24
25 25
43 43
44 /******************************************************************************* 44 /*******************************************************************************
45 ** Function r2d_core 45 ** Function r2d_core
46 ** 46 **
47 ** Description Core of the r2d task, which refresh the LCD 47 ** Description Core of the r2d task, which refresh the LCD
48 ** 48 **
49 *******************************************************************************/ 49 *******************************************************************************/
50 T_RVM_RETURN r2d_core(void) 50 T_RVM_RETURN r2d_core(void)
51 { 51 {
52 BOOLEAN error_occured = FALSE; 52 BOOLEAN error_occured = FALSE;
53 // T_R2D_EVT * msg_ptr_rx, * msg_ptr_tx; 53 // T_R2D_EVT * msg_ptr_rx, * msg_ptr_tx;
65 65
66 /* loop to process messages */ 66 /* loop to process messages */
67 while (error_occured == FALSE) 67 while (error_occured == FALSE)
68 { 68 {
69 UINT16 received_event; 69 UINT16 received_event;
70 //rvf_send_trace("WAIT EVENT",strlen("WAIT EVENT"), NULL_PARAM, 70 //rvf_send_trace("WAIT EVENT",strlen("WAIT EVENT"), NULL_PARAM,
71 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX ); 71 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX );
72 /* Wait for the necessary events (infinite wait for a msg in the mailbox 0). */ 72 /* Wait for the necessary events (infinite wait for a msg in the mailbox 0). */
73 received_event = rvf_wait ( EVENT_MASK(RVF_APPL_EVT_0), 0); 73 received_event = rvf_wait ( EVENT_MASK(RVF_APPL_EVT_0), 0);
74 74
75 //rvf_send_trace("EVENT RECEIVED",strlen("EVENT RECEIVED"), NULL_PARAM, 75 //rvf_send_trace("EVENT RECEIVED",strlen("EVENT RECEIVED"), NULL_PARAM,
76 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX ); 76 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX );
77 77
78 /* If an event related to mailbox 0 is received, then */ 78 /* If an event related to mailbox 0 is received, then */
79 if (received_event & EVENT_MASK(RVF_APPL_EVT_0) ) 79 if (received_event & EVENT_MASK(RVF_APPL_EVT_0) )
80 { 80 {
81 //rvf_send_trace("GOOD EVENT",strlen("GOOD EVENT"), NULL_PARAM, 81 //rvf_send_trace("GOOD EVENT",strlen("GOOD EVENT"), NULL_PARAM,
82 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX ); 82 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX );
83 83
84 r2d_g_event_was_sent=FALSE; 84 r2d_g_event_was_sent=FALSE;
85 if (r2d_g_refresh_disabled==0) 85 if (r2d_g_refresh_disabled==0)
86 r2d_refresh(); 86 r2d_refresh();
87 rvf_delay(RVF_MS_TO_TICKS(R2D_REFRESH_PERIOD)); 87 rvf_delay(RVF_MS_TO_TICKS(R2D_REFRESH_PERIOD));
88 } 88 }
89 89
90 } 90 }
91 91
92 return RVM_OK; 92 return RVM_OK;
93 } 93 }