-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathReadMe.txt
More file actions
271 lines (242 loc) · 11.1 KB
/
Copy pathReadMe.txt
File metadata and controls
271 lines (242 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
========================================================================
DYNAMIC LINK LIBRARY : AMWatchDll Project Overview
========================================================================
AppWizard has created this AMWatchDll DLL for you.
This file contains a summary of what you will find in each of the files that
make up your AMWatchDll application.
AMWatchDll.vcproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.
AMWatchDll.cpp
This is the main DLL source file.
When created, this DLL does not export any symbols. As a result, it
will not produce a .lib file when it is built. If you wish this project
to be a project dependency of some other project, you will either need to
add code to export some symbols from the DLL so that an export library
will be produced, or you can set the Ignore Input Library property to Yes
on the General propert page of the Linker folder in the project's Property
Pages dialog box.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named AMWatchDll.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
Files in this distribution:
platform => platform's API for Lua shell
font => Dll's font
font_40.dat => 20x40 ASCII
font_pinyin_40.dat => 20x40 chinese font
fonthz_40.dat => 40x40 chinese font
fonthzext_40.dat => 40x40 chinese font
fonthzext_offset_40.dat => offset of 40x40 chinese font
iconv => character encoding conversion
gb2312_to_ucs2.cpp =>
gb2312_to_ucs2_table.h =>
iconv.cpp =>
iconv.h =>
prv_iconv.h =>
ucs2_to_gb2312.cpp =>
ucs2_to_gb2312_offset.h =>
ucs2_to_gb2312_table.h =>
utf8_to_ucs2.cpp =>
json => JSON support for Lua
fpconv.cpp =>
fpconv.h =>
lua_cjson.cpp =>
strbuf.cpp =>
strbuf.h =>
qr_encode => QR Code encoding tool
bitstream.cpp =>
bitstream.h =>
config.h =>
mask.cpp =>
mask.h =>
mmask.cpp =>
mmask.h =>
mqrspec.cpp =>
mqrspec.h =>
qrenc.cpp =>
qrencode.cpp =>
qrencode.h =>
qrencode_inner.h =>
qrinput.cpp =>
qrinput.h =>
qrspec.cpp =>
qrspec.h =>
rscode.cpp =>
rscode.h =>
split.cpp =>
split.h =>
auxmods.h => definition for Lua lib API
buf.cpp => eLua "char device" buffering system
buf.h =>
common.cpp => common API
common_tmr.cpp => common timer
common_uart.cpp => common UART
cycle_queue.cpp =>
cycle_queue.h =>
daemon.cpp =>
daemon.h =>
event.cpp =>
event.h =>
list.cpp =>
list.h =>
mthl.cpp =>
mthl.h =>
platform.cpp =>
platform.h =>
platform_atc.cpp =>
platform_atc.h =>
platform_audio.cpp =>
platform_audio.h =>
platform_conf.h =>
platform_disp.cpp =>
platform_disp.h =>
platform_gps.cpp =>
platform_gps.h =>
platform_i2c.cpp =>
platform_i2c.h =>
platform_pmd.cpp =>
platform_pmd.h =>
platform_rtos.cpp =>
platform_rtos.h =>
platform_SLI3108.cpp =>
platform_SLI3108.h =>
platform_socket.cpp =>
platform_socket.h =>
platform_ttsply.cpp =>
platform_ttsply.h =>
platform_uart.cpp =>
platform_uart.h =>
platform_watchdog.cpp =>
platform_watchdog.h =>
platform_wtimer.cpp =>
platform_wtimer.h =>
sermux.h =>
w32_abm.cpp => abm for LUA
w32_abm.h => abm's definition
w32_socket.cpp => socket for LUA
w32_socket.h => socket's definition
Win32_lib => 32-bit library for Dll
giflib => gif library
lpng => png library
Lua5.1 => Lua 5.1
zlib => zlib
AMWatchDll.dll => dll for AMWatch
AMWatchDll.lib => lib for AMWatch
lua5.1.dll => dll for lua5.1
lua5.1.exe => exe for lua5.1
lua5.1.lib => lib for lua5.1
x64_lib => 64-bit library for Dll
giflib => gif library
lpng => png library
Lua5.1 => Lua 5.1
zlib => zlib
AMWatchDll.dll => dll for AMWatch
AMWatchDll.lib => lib for AMWatch
lua5.1.dll => dll for lua5.1
lua5.1.exe => exe for lua5.1
lua5.1.lib => lib for lua5.1
adc.cpp => Analog-Digit Conversion
AMWatchAbout.ico => about icon resource
AMWatchDll.h => definition for AMWatch Dll
AMWatchDll.ico => icon resource for AMWatch Dll
AMWatchDll.rc => icon resource script for AMWatch Dll
AMWatchDll.vcproj => project file for AMWatch Dll
AMWatchSmall.ico => small icon resource for AMWatch Dll
AMWatchWinDll.cpp =>
AMWatchWinDll.h =>
audio.cpp =>
bit.cpp =>
bitarray.cpp =>
cpu.cpp =>
Disp.cpp =>
Disp.h =>
dllmain.cpp =>
dllmain.h =>
gps.cpp =>
i2c.cpp =>
l_uart.cpp =>
LogWriter.cpp =>
LogWriter.h =>
lpack.cpp =>
luaiconv.cpp =>
pio.cpp =>
pio.h =>
pmd.cpp =>
qr_encode.cpp =>
ReadMe.txt => this file
resource.h =>
rtos.cpp =>
sim_gpio.cpp =>
sim_key.cpp =>
sim_key.h =>
sim_tp.cpp =>
sim_tp.h =>
stdafx.cpp =>
stdafx.h =>
targetver.h =>
tcpipsock.cpp =>
ttsply.cpp =>
Version.h =>
W32_util.cpp =>
W32_util.h =>
watchdog.cpp =>
Win32LuaShell.cpp =>
Win32LuaShell.h =>
/////////////////////////////////////////////////////////////////////////////
usage:
Lua Development Tools(LDT) is about providing Lua developers with an IDE providing the user
experience developers expect from any other tool dedicated to a static programming language.
Like many other dynamic languages, Lua is so flexible that it is hard to analyze enough to
provide relevant and powerful tooling.
LDT is using Metalua, to analyze Lua source code and provide nice user assistance.
LDT is an Open Source tool, licensed under the EPL.
To flexibly debug LUA, AirM2M develop a middleware, AMWatchDll.
1) Install JDK
Java SE Development Kit(JDK):
www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
The latest JDK:
Windows x86(32-bit), 'jdk-8u121-windows-i586.exe'
Windows x64(64-bit), 'jdk-8u121-windows-x64.exe'
2) Download Lua Development Tools(LDT)
www.eclipse.org/ldt/#installation, Windows 32-bit or 64-bit
3) Download simulator
git@github.com:airm2m-open/luat.git
AMWatchDll is source code of middleware, sample-script is a project that it is created a 'Lua Project'
by LDT.
4) Install C Run-Time(CRT) library
Windows 32-bit, sample-script --> Win32_lib --> 'VC_x86Runtime.exe'
Windows 64-bit, sample-script --> x64_lib --> 'VC_x64Runtime.exe'
5) Import existing project
At first, you would create own Workspace, then to import sample-script.
File --> Import... --> General --> Existing Projects into Workspace --> root directory of sample-script.
6) Configure LDT's interpreters
AirM2M have modified lua's interpreter, so LDT's default interpreter must be changed to customized
interpreter.
a) Window --> Preferences --> Lua --> Interpreters --> Add
'Interpreter executable' is full path of interpreter.
Windows 32-bit, sample-script --> Win32_lib --> Lua5.1 --> lua5.1.exe
Windows 64-bit, sample-script --> x64_lib --> Lua5.1 --> lua5.1.exe
This interpreter is default interpreter of 'AMWatchDll', so to check it on its check-box.
b) Run --> Run Configurations
Press the 'New' button to create a run configuration of 'Lua Application'.
'Launch script' must select 'sample-script\src\init.lua'
'Runtime Interpreter' must select default interpreter.
c) Run --> Debug Configurations --> Runtime Interpreter
Press the 'New' button to create a debug configuration of 'Lua Application'.
'Launch script' must select 'sample-script\src\init.lua'
'Runtime Interpreter' must select default interpreter.
AMWatchDll can't run on Windows OS previous to Win7.
7) Run/Debug project
resources file, 'sample-script\src\ldata', such as .mp3, .bmp, .png and .gif.
lua shell, 'sample-script\src\lua', copy your lua shell in 'lua'.
'AMLuaDebug.log' is log file of 'AMWatchDll' in 'sample-script'.
so far, Debug project can't run, we shall update build-in middleware.