FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiMmi.c @ 157:7eee5ad6ae86
mmiMmi.c: misc formatting fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 16 Nov 2020 20:17:50 +0000 |
parents | c0052fe355d3 |
children | 0947a816580c |
comparison
equal
deleted
inserted
replaced
156:9e0e3dc6ed94 | 157:7eee5ad6ae86 |
---|---|
9 | 9 |
10 ******************************************************************************** | 10 ******************************************************************************** |
11 | 11 |
12 $Project name: Basic MMI | 12 $Project name: Basic MMI |
13 $Project code: BMI (6349) | 13 $Project code: BMI (6349) |
14 $Module: MMI | 14 $Module: MMI |
15 $File: MmiMmi.c | 15 $File: MmiMmi.c |
16 $Revision: 1.0 | 16 $Revision: 1.0 |
17 | 17 |
18 $Author: Condat(UK) | 18 $Author: Condat(UK) |
19 $Date: 25/10/00 | 19 $Date: 25/10/00 |
20 | 20 |
21 ******************************************************************************** | 21 ******************************************************************************** |
22 | 22 |
23 Description: | 23 Description: |
24 | 24 |
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 | |
62 | |
63 | 61 |
64 | 62 |
65 /******************************************************************************* | 63 /******************************************************************************* |
66 | 64 |
67 Include Files | 65 Include Files |
154 #include "dev_Mbox.h" /* 04-07-2006 */ | 152 #include "dev_Mbox.h" /* 04-07-2006 */ |
155 #include "mfw_acie.h" /* prototypes of aci_delete and aci_create */ | 153 #include "mfw_acie.h" /* prototypes of aci_delete and aci_create */ |
156 #endif | 154 #endif |
157 | 155 |
158 #ifdef MMI_LITE | 156 #ifdef MMI_LITE |
159 #define MFW_MEMORY_POOL_SIZE 22000 /*SPR 2686*/ | 157 #define MFW_MEMORY_POOL_SIZE 22000 /*SPR 2686*/ |
160 #else | 158 #else |
161 #ifdef FF_MMI_MMS | 159 #ifdef FF_MMI_MMS |
162 #define MFW_MEMORY_POOL_SIZE (220*1024) | 160 #define MFW_MEMORY_POOL_SIZE (220*1024) |
163 #else | 161 #else |
164 #ifdef FF_MMI_MULTIMEDIA | 162 #ifdef FF_MMI_MULTIMEDIA |
165 #define MFW_MEMORY_POOL_SIZE (220 * 1024) // RAVI - 18-07-2005 - For Image display | 163 #define MFW_MEMORY_POOL_SIZE (220 * 1024) // RAVI - 18-07-2005 - For Image display |
166 #else | 164 #else |
167 #define MFW_MEMORY_POOL_SIZE 45000 | 165 #define MFW_MEMORY_POOL_SIZE 45000 |
166 #endif | |
168 #endif | 167 #endif |
169 #endif | |
170 #endif | 168 #endif |
171 | 169 |
172 | 170 |
173 #ifndef _SIMULATION_ | 171 #ifndef _SIMULATION_ |
174 extern void AI_Power(unsigned char power); | 172 extern void AI_Power(unsigned char power); |
214 }T_MFW_BOOTUP_IND; | 212 }T_MFW_BOOTUP_IND; |
215 | 213 |
216 GLOBAL BOOL bootup_response_cb (ULONG opc, void * data); | 214 GLOBAL BOOL bootup_response_cb (ULONG opc, void * data); |
217 #endif | 215 #endif |
218 /* End - OMAPS00084167 */ | 216 /* End - OMAPS00084167 */ |
219 | |
220 | 217 |
221 | 218 |
222 /******************************************************************************* | 219 /******************************************************************************* |
223 | 220 |
224 Public Methods | 221 Public Methods |
321 | 318 |
322 } | 319 } |
323 #endif /* End - OMAPS00084167 */ | 320 #endif /* End - OMAPS00084167 */ |
324 | 321 |
325 | 322 |
326 | |
327 /******************************************************************************* | 323 /******************************************************************************* |
328 | 324 |
329 $Function: mmiInit | 325 $Function: mmiInit |
330 | 326 |
331 $Description: This initialises the MMI application | 327 $Description: This initialises the MMI application |
353 | 349 |
354 | 350 |
355 timInit(); /* init timer handler */ | 351 timInit(); /* init timer handler */ |
356 kbdInit(); /* init keyboard handler */ | 352 kbdInit(); /* init keyboard handler */ |
357 lngInit(); /* init language handler */ | 353 lngInit(); /* init language handler */ |
358 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | 354 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ |
359 edtInit(); /* init editor handler */ | 355 edtInit(); /* init editor handler */ |
360 #endif /* NEW_EDITOR */ | 356 #endif /* NEW_EDITOR */ |
361 | 357 |
362 mnuInit(); /* init menu handler */ | 358 mnuInit(); /* init menu handler */ |
363 icnInit(); /* init icon handler */ | 359 icnInit(); /* init icon handler */ |
384 #endif | 380 #endif |
385 | 381 |
386 } | 382 } |
387 | 383 |
388 | 384 |
389 | |
390 | |
391 | |
392 | |
393 /******************************************************************************* | 385 /******************************************************************************* |
394 | 386 |
395 $Function: mmiExit | 387 $Function: mmiExit |
396 | 388 |
397 $Description: This exits the MMI application | 389 $Description: This exits the MMI application |
399 $Returns: None. | 391 $Returns: None. |
400 | 392 |
401 $Arguments: None. | 393 $Arguments: None. |
402 | 394 |
403 *******************************************************************************/ | 395 *******************************************************************************/ |
404 | |
405 | |
406 | |
407 | 396 |
408 | 397 |
409 void mmiExit( void ) | 398 void mmiExit( void ) |
410 { | 399 { |
411 TRACE_EVENT("mmiExit"); | 400 TRACE_EVENT("mmiExit"); |
412 | 401 |
413 icnExit(); /* finit icon handler */ | 402 icnExit(); /* finit icon handler */ |
414 mnuExit(); /* finit menu handler */ | 403 mnuExit(); /* finit menu handler */ |
415 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | 404 #ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ |
416 edtExit(); /* finit edit handler */ | 405 edtExit(); /* finit edit handler */ |
417 #endif /* NEW_EDITOR */ | 406 #endif /* NEW_EDITOR */ |
418 lngExit(); /* finit language handler */ | 407 lngExit(); /* finit language handler */ |
419 kbdExit(); /* finit keyboard handler */ | 408 kbdExit(); /* finit keyboard handler */ |
420 timExit(); /* finit timer handler */ | 409 timExit(); /* finit timer handler */ |
423 mfwExit(); /* exit mfw */ | 412 mfwExit(); /* exit mfw */ |
424 | 413 |
425 dspl_ClearAll(); | 414 dspl_ClearAll(); |
426 // Jun 23, 2004 REF: CRR MMI-SPR-16665 Rashmi C N(Sasken) | 415 // Jun 23, 2004 REF: CRR MMI-SPR-16665 Rashmi C N(Sasken) |
427 // Description: Ocasionaly the LCD used to get stuck with the TI LOGO during power off. | 416 // Description: Ocasionaly the LCD used to get stuck with the TI LOGO during power off. |
428 // Solution: By calling dspl_Enable(1) we are forcing the LCD to get updated. | 417 // Solution: By calling dspl_Enable(1) we are forcing the LCD to get updated. |
429 dspl_Enable(1); | 418 dspl_Enable(1); |
430 TRACE_EVENT("SWITCHING_OFF!!!!!"); | 419 TRACE_EVENT("SWITCHING_OFF!!!!!"); |
431 vsi_t_sleep (VSI_CALLER 50); | 420 vsi_t_sleep (VSI_CALLER 50); |
432 /* | 421 /* |
433 * Power off the board | 422 * Power off the board |
438 #endif //_SIMULATION_ | 427 #endif //_SIMULATION_ |
439 | 428 |
440 } | 429 } |
441 | 430 |
442 | 431 |
443 | |
444 | |
445 /******************************************************************************* | 432 /******************************************************************************* |
446 | 433 |
447 End Of File | 434 End Of File |
448 | 435 |
449 *******************************************************************************/ | 436 *******************************************************************************/ |
450 |