comparison src/ui/bmi/mmiMmi.c @ 92:c0052fe355d3

src/ui/bmi/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 08 Nov 2020 06:39:16 +0000
parents 67bfe9f274f6
children 7eee5ad6ae86
comparison
equal deleted inserted replaced
91:c3d28a37caad 92:c0052fe355d3
28 $History: MmiMmi.c 28 $History: MmiMmi.c
29 29
30 Apr 09, 2007 OMAPS00124879 x0039928(sumanth) 30 Apr 09, 2007 OMAPS00124879 x0039928(sumanth)
31 Description : I sample crashes while reading the received SMS from the Agilent 31 Description : I sample crashes while reading the received SMS from the Agilent
32 Solution : Heap memory is increased from 35k to 45k 32 Solution : Heap memory is increased from 35k to 45k
33 33
34 Oct 05, 2006 ER: OMAPS00094496 x0061088(Prachi) 34 Oct 05, 2006 ER: OMAPS00094496 x0061088(Prachi)
35 Description:Enhance RSSI to 3 parameters: Strength, quality, min-access-level 35 Description:Enhance RSSI to 3 parameters: Strength, quality, min-access-level
36 Solution:To solve the ER OMAPS0094496,mmiInit() is now calling sAT_PercentCSQ() 36 Solution:To solve the ER OMAPS0094496,mmiInit() is now calling sAT_PercentCSQ()
37 37
38 38
39 39
40 Jun 13 2005, REF:LOCOSTO-OTH-32113 - xpradipg 40 Jun 13 2005, REF:LOCOSTO-OTH-32113 - xpradipg
41 Description: Bypass the powerkey initialization at bootup 41 Description: Bypass the powerkey initialization at bootup
42 Solution: The powerkey initialization is bypassed by calling the 42 Solution: The powerkey initialization is bypassed by calling the
43 drvKeyUpDown() in mmi_main() instead of key_power_initialize 43 drvKeyUpDown() in mmi_main() instead of key_power_initialize
51 // Solution: Checking the status of BDL operation being completed for booting up MMI 51 // Solution: Checking the status of BDL operation being completed for booting up MMI
52 // by using the function dev_Mbox_isDspMboxReady()and based on status calling 52 // by using the function dev_Mbox_isDspMboxReady()and based on status calling
53 // mmiInit(). 53 // mmiInit().
54 54
55 55
56 25/10/00 Original Condat(UK) BMI version. 56 25/10/00 Original Condat(UK) BMI version.
57 57
58 $End 58 $End
59 59
60 *******************************************************************************/ 60 *******************************************************************************/
61 61
197 EXTERN T_VSI_CHANDLE hCommACI; 197 EXTERN T_VSI_CHANDLE hCommACI;
198 #endif 198 #endif
199 199
200 #define BOOTUP_WAIT_TIME 20 200 #define BOOTUP_WAIT_TIME 20
201 #define BOOTUP_SUCCESS_IND 1 201 #define BOOTUP_SUCCESS_IND 1
202 #define MFW_BOOTUP_IND 0x910 202 #define MFW_BOOTUP_IND 0x910
203 203
204 static int iPrimitiveSlot = 0; 204 static int iPrimitiveSlot = 0;
205 205
206 /* ====================================================== */ 206 /* ====================================================== */
207 /** 207 /**
208 * Structure which holds the Status details 208 * Structure which holds the Status details
209 **/ 209 **/
210 /* ====================================================== */ 210 /* ====================================================== */
211 typedef struct 211 typedef struct
212 { 212 {
213 int iStatus; 213 int iStatus;
240 void mmi_main( void ) 240 void mmi_main( void )
241 { 241 {
242 /* JVJ #1874 - mmi_main doesnt start the MMI. It only initilizes the Keyboard handler*/ 242 /* JVJ #1874 - mmi_main doesnt start the MMI. It only initilizes the Keyboard handler*/
243 /* The keyboard handler will call mmiInit() when the Power Key is pressed */ 243 /* The keyboard handler will call mmiInit() when the Power Key is pressed */
244 // Jun 13 2005, REF:LOCOSTO-OTH-32113 - xpradipg 244 // Jun 13 2005, REF:LOCOSTO-OTH-32113 - xpradipg
245 #if (BOARD == 61) 245 #if (BOARD == 61)
246 /* BUG FIX - OMAPS00084167 */ 246 /* BUG FIX - OMAPS00084167 */
247 /* For multimedia alone generate the primitive */ 247 /* For multimedia alone generate the primitive */
248 #ifdef ENABLE_KEY_ON_BOOTING 248 #ifdef ENABLE_KEY_ON_BOOTING
249 /* Send the primitive to MMI */ 249 /* Send the primitive to MMI */
250 PALLOC (bootup_indication, MFW_BOOTUP_IND); 250 PALLOC (bootup_indication, MFW_BOOTUP_IND);
258 #endif 258 #endif
259 259
260 260
261 #ifndef ENABLE_KEY_ON_BOOTING 261 #ifndef ENABLE_KEY_ON_BOOTING
262 vsi_t_sleep(VSI_CALLER 50); 262 vsi_t_sleep(VSI_CALLER 50);
263 mmiInit(); 263 mmiInit();
264 #else 264 #else
265 /* Begin - Bug fix - OMAPS00084167 */ 265 /* Begin - Bug fix - OMAPS00084167 */
266 iPrimitiveSlot = aci_create (bootup_response_cb, NULL); 266 iPrimitiveSlot = aci_create (bootup_response_cb, NULL);
267 267
268 bootup_indication->iStatus = BOOTUP_SUCCESS_IND; 268 bootup_indication->iStatus = BOOTUP_SUCCESS_IND;
269 PSENDX (ACI, bootup_indication); 269 PSENDX (ACI, bootup_indication);
270 /* End - OMAPS00084167 */ 270 /* End - OMAPS00084167 */
271 #endif 271 #endif
286 * 286 *
287 * @param void * data - structure data. 287 * @param void * data - structure data.
288 * 288 *
289 * @return BOOL - TRUE / FALSE 289 * @return BOOL - TRUE / FALSE
290 * 290 *
291 * @see 291 * @see
292 */ 292 */
293 /* =========================================================== */ 293 /* =========================================================== */
294 GLOBAL BOOL bootup_response_cb (ULONG opc, void * data) 294 GLOBAL BOOL bootup_response_cb (ULONG opc, void * data)
295 { 295 {
296 T_MFW_BOOTUP_IND *bootup_indication; 296 T_MFW_BOOTUP_IND *bootup_indication;
297 297
298 if (opc == MFW_BOOTUP_IND) { 298 if (opc == MFW_BOOTUP_IND) {
299 bootup_indication = (T_MFW_BOOTUP_IND *)data; 299 bootup_indication = (T_MFW_BOOTUP_IND *)data;
300 300
301 /* Status is 1 then bootup sequence has enabled */ 301 /* Status is 1 then bootup sequence has enabled */
302 if (bootup_indication->iStatus == BOOTUP_SUCCESS_IND) { 302 if (bootup_indication->iStatus == BOOTUP_SUCCESS_IND) {
303 /* Contineous Pooling */ 303 /* Contineous Pooling */
304 while (dev_Mbox_isDspMboxReady() == FALSE) 304 while (dev_Mbox_isDspMboxReady() == FALSE)
305 { 305 {
306 vsi_t_sleep (VSI_CALLER BOOTUP_WAIT_TIME); /* Small Delay after each check */ 306 vsi_t_sleep (VSI_CALLER BOOTUP_WAIT_TIME); /* Small Delay after each check */
307 } 307 }
308 308
309 aci_delete (iPrimitiveSlot); 309 aci_delete (iPrimitiveSlot);
310 310
311 /* Once DSP initialization is done */ 311 /* Once DSP initialization is done */
312 mmiInit (); 312 mmiInit ();
313 313
314 return TRUE; 314 return TRUE;
315 315
316 } 316 }
317 317
318 } 318 }
319 319
320 return FALSE; 320 return FALSE;
321 321
322 } 322 }
356 kbdInit(); /* init keyboard handler */ 356 kbdInit(); /* init keyboard handler */
357 lngInit(); /* init language handler */ 357 lngInit(); /* init language handler */
358 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ 358 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */
359 edtInit(); /* init editor handler */ 359 edtInit(); /* init editor handler */
360 #endif /* NEW_EDITOR */ 360 #endif /* NEW_EDITOR */
361 361
362 mnuInit(); /* init menu handler */ 362 mnuInit(); /* init menu handler */
363 icnInit(); /* init icon handler */ 363 icnInit(); /* init icon handler */
364 //Oct 05, 2006 ER: OMAPS00094496 x0061088(Prachi) 364 //Oct 05, 2006 ER: OMAPS00094496 x0061088(Prachi)
365 sAT_PercentCSQ ( CMD_SRC_LCL, CSQ_Enable ); 365 sAT_PercentCSQ ( CMD_SRC_LCL, CSQ_Enable );
366 mainInit(0); 366 mainInit(0);