FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/mfw/mfw_ext.c @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +--------------------------------------------------------------------+ | |
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_ext.c $| | |
4 | $Author:: Es $ CONDAT GmbH $Revision:: 2 $| | |
5 | CREATED: 29.01.99 $Modtime:: 4.02.99 19:39 $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 MODULE : MFW_EXT | |
10 | |
11 PURPOSE : MFW external communication | |
12 | |
13 EXPORT : | |
14 | |
15 TO DO : | |
16 | |
17 $History:: mfw_ext.c $ | |
18 * | |
19 * ***************** Version 2 ***************** | |
20 * User: Es Date: 17.02.99 Time: 20:00 | |
21 * Updated in $/GSM/DEV/MS/SRC/MFW | |
22 * | |
23 * ***************** Version 1 ***************** | |
24 * User: Es Date: 9.02.99 Time: 14:53 | |
25 * Created in $/GSM/DEV/MS/SRC/MFW | |
26 * TI display & keyboard interface for MFW | |
27 */ | |
28 | |
29 #include <stdio.h> | |
30 #include <string.h> | |
31 | |
32 #include "mfw_mmi.h" | |
33 #include "drv_key.h" | |
34 | |
35 | |
36 //extern void ext_syscmd (char *cmd, char *from, char *to); | |
37 extern void scrMobCommand (char *cmd); /* ext_syscmd to driver */ | |
38 | |
39 | |
40 /* | |
41 +--------------------------------------------------------------------+ | |
42 | PROJECT : MMI-Framework (8417) MODULE : MFW_EXT | | |
43 | STATE : code ROUTINE : mfwExtIn | | |
44 +--------------------------------------------------------------------+ | |
45 | |
46 PURPOSE : execute incoming command | |
47 | |
48 */ | |
49 | |
50 int mfwExtIn (char *cmd) | |
51 { | |
52 if (!strncmp("KBD ",cmd,4)) | |
53 { | |
54 unsigned int upDown, key; | |
55 sscanf(cmd+4,"%d,%d",&upDown,&key); | |
56 drvKeyUpDown((char) upDown,(char) key); | |
57 } | |
58 else if (!strncmp("SCR ",cmd,4)) | |
59 { | |
60 scrMobCommand(cmd+4); | |
61 } | |
62 else if (!strncmp("MFW init",cmd,8)) | |
63 { | |
64 mmiInit(); | |
65 } | |
66 else if (!strncmp("MFW exit",cmd,8)) | |
67 { | |
68 mmiExit(); | |
69 } | |
70 else | |
71 return 0; | |
72 | |
73 return 1; | |
74 } | |
75 | |
76 | |
77 /* | |
78 +--------------------------------------------------------------------+ | |
79 | PROJECT : MMI-Framework (8417) MODULE : MFW_EXT | | |
80 | STATE : code ROUTINE : mfwExtOut | | |
81 +--------------------------------------------------------------------+ | |
82 | |
83 PURPOSE : forward outgoing command | |
84 | |
85 */ | |
86 | |
87 int mfwExtOut (char *cmd) | |
88 { | |
89 // ext_syscmd(cmd,"MMI","PCO"); | |
90 | |
91 return 1; | |
92 } | |
93 |