You are on page 1of 255

6410

OK6410
OK

WINCE

WINCE

-6410
OK
OK-6410

- 1 -

www.wayengineer.com

WINCE

OK6410

1
http://www.forlinx.com/Download.htm
2
http://bbs.witech.com.cn/
QQ QQ
http://www.forlinx.com
0312 - 3119192
30312
4

-6410
OK
OK-6410

- 2 -

www.wayengineer.com

WINCE

2010-11-12

USB

2011-01-20

2011-03-10

GPS

2011-04-01

-6410
OK
OK-6410

- 3 -

www.wayengineer.com

WINCE

..................................................................................................................................... 8
WINCE .....................................................................................................................................
WinCE 6.0 ....................................................................................................................................... 10
.................................................................................................................... 11
WINCE ....................................................................................................................
2-1 ................................................................................................................................. 11

:....................................................................................................................................... 11

:.......................................................................................................................................12
1.................................................................................................................................................................. 12
2PC DNW ............................................................................................................................................ 17
3.......................................................................................................................................................................22
4..................................................................................................................................... 24

2-2 ................................................................................................................... 28

:........................................................................................................................28

:............................................................................................................................... 29
1 USB ............................................................................................................................................................ 29
2.................................................................................................................................................................. 31
3.................................................................................................................................................................. 35
4 USB ............................................................................................................................................................ 37
5.......................................................................................................................................................... 39

2-3 .......................................................................................................41

:............................................................................................................................... 41
:............................................................................................................................... 42
1U ............................................................................................................................................................................... 42
2SD .............................................................................................................................................................................44
3USB ......................................................................................................................................................................46
1Sync ................................................................................................................................................54
2................................................................................................................................ 56

2-4 ............................................................................................................................. 57

:................................................................................................................ 57

:........................................................................................................................58
1Media Player.................................................................................................................. 58
2IE .............................................................................................................................................62
3WordPad...............................................................................................................................................64

2-5 &................................................................................................66

&:.......................................................................................... 66

&:..................................................................................................67

-6410
OK
OK-6410

- 4 -

www.wayengineer.com

WINCE

1LED...................................................................................................................................................................67
2AD........................................................................................................................................................ 69
3.................................................................................................................................................................. 71
4...........................................................................................................................................................................73
5.......................................................................................................................................................................75
6RTC...................................................................................................................................................... 78
7...............................................................................................................................................................................80
8TV.........................................................................................................................................................83
9...............................................................................................................................................................................86
10................................................................................................................................................................ 87

2-6 ................................................................................................................................. 88

:........................................................................................................................... 88

:........................................................................................................................... 89
1Flash ............................................................................................................................................................ 89
2.......................................................................................................................................................................92
3.................................................................................................................................................................. 94
4...............................................................................................................................................................................96
5TCPMP .......................................................................................................................................................... 103

2-7 ................................................................................................................................... 106

:......................................................................................................................106

:......................................................................................................................107
1JPEG .......................................................................................................................................................... 107
2MFC .......................................................................................................................................... 110
3OPENGLES .......................................................................................................................................................114
42D .............................................................................................................................................................. 117

2-8 ............................................................................................................................... 119

:............................................................................................................................. 119

:............................................................................................................................. 120
1WIFI SDIO.................................................................................................................................................120
2................................................................................................................................... 123
3CMOS ................................................................................................................................................... 126
43G .......................................................................................................................................................................129
5GPRS ................................................................................................................................................................. 136
6GPS GSTAR ..................................................................................................................................... 140
7GPS ...................................................................................................................................144
8............................................................................................................................................................ 145
9CAN ................................................................................................................................................................... 146

............................................................................................... 147
WINCE ...............................................................................................
3-1 ......................................................................................................147
3-2 .................................................................................................................................... 147
3-3 WinCE .......................................................................................................................148

-6410
OK
OK-6410

- 5 -

www.wayengineer.com

WINCE

:.............................................................................................................. 148

...........................................................................................................................148

...........................................................................................................................149

3-4 ................................................................................................................................ 154


3-5 USB WinCE ............................................................................................................. 157

:.............................................................................................................. 157

...........................................................................................................................157

...........................................................................................................................158

.................................................................................................................. 169
WINCE ..................................................................................................................
4-1 .....................................................................................................................169
4-2 VS2005......................................................................................................................................170
4-3 SDK.......................................................................................................................................... 174
4-4 .........................................................................................................................175
4-5 ..................................................................................................182
4-6 .................................................................................................................................... 182
4-7 .......................................................................................... 186
4-8 ................................................................................................................. 186
1 JPEG ........................................................................................................................................................186
2 MFC ........................................................................................................................................187
3 OPENGLES .................................................................................................................................................... 188
4 2D

................................................................................................................................189

.................................................................................................................. 191
WINCE ..................................................................................................................
5-1 .....................................................................................................................191
5-2 VS2005......................................................................................................................................192
5-3 WinCE6.0.................................................................................................................................. 193

...........................................................................................................................193

...................................................................................................................................... 194

5-4 BSP ............................................................................................................................... 198


5-5 ........................................................................................................................................... 199
5-6 .......................................................................................... 201
5-7 WinCE ................................................................................................................... 201
5-8 ...................................................................................215
5-9 WinCE .............................................................................................................................. 217
5-10 ..................................................................................................................................... 217
5-11 ..........................................................................................................................217
5-12 BSP ................................................................................................................................. 217
............................................................................................ 219
WINDOWS CE.NET ............................................................................................
......................................................................................................................................................... 219
.......................................................................................................................................... 219

-6410
OK
OK-6410

- 6 -

www.wayengineer.com

WINCE

Windows CE ........................................................................................................... 221


................................................................................................................................................. 222
...................................................................................................................................... 224
................................................................................................................................................. 225
DLL ............................................................................................................................................ 226
DLL............................................................................................................................................230
DLL ............................................................................................................230
DLL ........................................................................................................................... 230
.....................................................................................
232
WINDOWS CE.NET .....................................................................................
.....................................................................................232
......................................................................................................................................................... 232
.......................................................................................................................................... 232
OAL ISR ........................................................................................................................................234
ISR..........................................................................................................................................237
IST .......................................................................................................................................... 241
..........................................................................................................................................241
IST .........................................................................................................................243
...................................................................................................................................... 245
ISR ............................................................................................................................................. 246
IST ..............................................................................................................................................246
......................................................................................................................................................... 247
........................................................................... 248
WINDOWS CE .NET ...........................................................................

-6410
OK
OK-6410

- 7 -

www.wayengineer.com

WINCE

WinCE

PC
Windows CE WinCE)

Windows CE

Windows CE
USB
Windows CE 1000 Microsoft Win32 API

Windows CE Windows Windows CE W


indows 98/2000/xp Visual BasicVisual C++
Windows CE

Windows CE Win32API
Windows CE Wi
ndows CE Win32MFCATL .NET Com
pact Framework

WindowsCE 1.02.03.04.04.25.0 6.0:

-6410
OK
OK-6410

- 8 -

www.wayengineer.com

WINCE

WinCE1.0 : Windows95 Windows9590


WinCE1.0 PDA
WinCE1.01996
Paim PDA PDA
WinCE
WinCE PDA
WinCE2.0 Palm WinCE2.0 CE1.0
PDA WinCE2.0 Pilot PDA
CE2.0 Pilot Windows
PC Windows95 Wi
ndowsCE Windo
ws CE
WinCE3.0 Windows Compact Edition
PC
(WinCE3.05 CPU: x86, PowerPC, ARM ,MIPS,SH3/4) VxWorks,
Linux
WINCE 2000 WinCE3.0
Windows for Pocket PC Pocket PC Pocket Word Pocket Excel

Pocket PC HPCompaq
Compaq iPAQ 3630 Pocket PC
2002 PPC PPC2002
8 Pocket PC 2002 Phone Edition 200210
PPC --686 CH860 ET180
WinCE4.2 WindowsCE.NET 4.0/4.1 Windows CE

-6410
OK
OK-6410

- 9 -

www.wayengineer.com

WINCE

Windows WinCE4.2
WinCE5.0: 20045 WinCE5.0
250
OEM (Run-time) Win CE5.0
3

WinCE 6.0
200611 Windows Embedded CE 6.0
Windows Embedded CE 6.0
Windows Embedded Microsoft Shared Sour
ce programme
100% Windows Embedded CE 6.0
GUI
Windows Embedded CE 56%


Windows
Windows Embedded CE6.0
Windows Embedded CE

Visual Studio 2005 Windows Embedded CE6.0


WinCE 5.0 Platform Builder 5.0
Visual Studio Visual Studio 2005
Platform Builder

Windows Embedded CE 6.032,0002GB

-6410
OK
OK-6410

- 10 -

www.wayengineer.com

WINCE

WinCE
2-1
::

PC DNW

DNW

Windows

DNW

DNW

-6410
OK
OK-6410

- 11 -

www.wayengineer.com

WINCE

::
1

-6410
OK
OK-6410

- 12 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 13 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 14 -

www.wayengineer.com

WINCE

1
PC

2 PC

-6410
OK
OK-6410

- 15 -

www.wayengineer.com

WINCE

USB PCI
3

4 OK6410
J1J4

-6410
OK
OK-6410

- 16 -

www.wayengineer.com

WINCE

2PC DNW

\\dnw.exe

-6410
OK
OK-6410

- 17 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 18 -

www.wayengineer.com

WINCE

1 PC
->->COM LPT

PC COM1
USB Serial Port

-6410
OK
OK-6410

- 19 -

www.wayengineer.com

WINCE

2 usb 4Dnw

-6410
OK
OK-6410

- 20 -

www.wayengineer.com

WINCE

3
USB

-6410
OK
OK-6410

- 21 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 22 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

1
DC5V 2000mA

- 23 -

www.wayengineer.com

WINCE

DNW \\dnw.exe

-6410
OK
OK-6410

- 24 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 25 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 26 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 27 -

www.wayengineer.com

WINCE

2-2
::

USB

USB

WinCE

WinCE

WinCE

USB

USB

WinCE

USB |

WinCE

-6410
OK
OK-6410

- 28 -

www.wayengineer.com

WINCE

::

1 USB

USB
WinCE

-6410
OK
OK-6410

- 29 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 30 -

www.wayengineer.com

WINCE

WinCE

-6410
OK
OK-6410

- 31 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 32 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 33 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 34 -

www.wayengineer.com

WINCE

WinCE

-6410
OK
OK-6410

- 35 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 36 -

www.wayengineer.com

WINCE

4 USB

USB
WinCE

-6410
OK
OK-6410

- 37 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 38 -

www.wayengineer.com

WINCE

USB
WinCE

-6410
OK
OK-6410

- 39 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 40 -

www.wayengineer.com

WINCE

2-3
::

WinCE

SD

SD

WinCE

USB

USB

WinCE

USB

WinCE

1Sync

-6410
OK
OK-6410

WinCE

- 41 -

www.wayengineer.com

WINCE

::
1U

U 2G U
WinCE

-6410
OK
OK-6410

- 42 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 43 -

www.wayengineer.com

WINCE

2SD

SD 2G SD
WinCE

-6410
OK
OK-6410

- 44 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 45 -

www.wayengineer.com

WINCE

3USB

USB
1MicrosoftActiveSync
\\\MicrosoftActiveSync_4.5_Chs.rar

2
\\\USB \CE

-6410
OK
OK-6410

- 46 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 47 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 48 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 49 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 50 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 51 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 52 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 53 -

www.wayengineer.com

WINCE

1Sync

USB

1WinCE
2MicrosoftActiveSync
\\\MicrosoftActiveSync_4.5_Chs.rar

-6410
OK
OK-6410

- 54 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 55 -

www.wayengineer.com

WINCE

WinCE

-6410
OK
OK-6410

- 56 -

www.wayengineer.com

WINCE

2-4
::

Media Player

WinCE

IE

WinCE

WordPad

WinCE

4
5

-6410
OK
OK-6410

- 57 -

www.wayengineer.com

WINCE

::

Player
1Media Player

WinCE

-6410
OK
OK-6410

- 58 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 59 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 60 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

1
wma mp3 wmv mp4 263 264 mkv

- 61 -

www.wayengineer.com

WINCE

2IE

WinCE

-6410
OK
OK-6410

- 62 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

1
2-5

- 63 -

www.wayengineer.com

WINCE

WordPad
3WordPad

WinCE

-6410
OK
OK-6410

- 64 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 65 -

www.wayengineer.com

WINCE

2-5 &
&::
&

&

&

LED

LED

AD

AD

RTC

TV

TV

10

-6410
OK
OK-6410

- 66 -

www.wayengineer.com

WINCE

&::
&

1LED
LED

WinCE
1LED .exe
\\WinCE6.0\

-6410
OK
OK-6410

- 67 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 68 -

www.wayengineer.com

WINCE

2AD
AD

WinCE
1AD .exe
\\WinCE6.0\

-6410
OK
OK-6410

- 69 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

1
AD AD

- 70 -

www.wayengineer.com

WINCE

WinCE
1.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 71 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 72 -

www.wayengineer.com

WINCE

WinCE
1.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 73 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 74 -

www.wayengineer.com

WINCE

WinCE
1.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 75 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 76 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 77 -

www.wayengineer.com

WINCE

RTC
6RTC

CR1220
WinCE

-6410
OK
OK-6410

- 78 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 79 -

www.wayengineer.com

WINCE

WinCE

-6410
OK
OK-6410

- 80 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 81 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 82 -

www.wayengineer.com

WINCE

TV
8TV

WinCE
1TV .exe
\\WinCE6.0\

-6410
OK
OK-6410

- 83 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 84 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 85 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 86 -

www.wayengineer.com

WINCE

10
10

-6410
OK
OK-6410

- 87 -

www.wayengineer.com

WINCE

2-6
::

Flash

WinCE

WinCE

WinCE

WinCE

TCPMP

WinCE

6
7
8
9
10

-6410
OK
OK-6410

- 88 -

www.wayengineer.com

WINCE

::
1Flash

WinCE
1Flash
\\WinCE6.0\

-6410
OK
OK-6410

- 89 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 90 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 91 -

www.wayengineer.com

WINCE

WinCE
1RotateScreen.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 92 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 93 -

www.wayengineer.com

WINCE

WinCE
1REGEDIT.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 94 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 95 -

www.wayengineer.com

WINCE

WinCE
1GAME
\\WinCE6.0\

-6410
OK
OK-6410

- 96 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 97 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 98 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 99 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 100 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 101 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 102 -

www.wayengineer.com

WINCE

5TCPMP

WinCE
1TCPMP
\\WinCE6.0\\TCPMP

-6410
OK
OK-6410

- 103 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 104 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 105 -

www.wayengineer.com

WINCE

2-7
::

JPEG

WinCE

MFC

WinCE

OPENGLES

WinCE

2D

WinCE

5
6
7
8
9
10

-6410
OK
OK-6410

- 106 -

www.wayengineer.com

WINCE

::
1JPEG

WinCE
1JPEGtest
\\WinCE6.0\

-6410
OK
OK-6410

- 107 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 108 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 109 -

www.wayengineer.com

WINCE

2MFC

WinCE
1MFCtest
\\WinCE6.0\

-6410
OK
OK-6410

- 110 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 111 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 112 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 113 -

www.wayengineer.com

WINCE

3OPENGLES

WinCE
1OPENGLEStest
\\WinCE6.0\

-6410
OK
OK-6410

- 114 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 115 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 116 -

www.wayengineer.com

WINCE

42D

WinCE
1mosquito.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 117 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 118 -

www.wayengineer.com

WINCE

2-8
::

WIFI (SDIO)

( 3 )

CMOS

3G

GPRS

GPS GSTAR

GPS

CAN

10

-6410
OK
OK-6410

- 119 -

www.wayengineer.com

WINCE

::

SDIO
1WIFI
SDIO
SDIO

SDIO WIFI
WinCE

-6410
OK
OK-6410

- 120 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 121 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 122 -

www.wayengineer.com

WINCE

WinCE
1SerialApp.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 123 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 124 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 125 -

www.wayengineer.com

WINCE

3CMOS

WinCE
1.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 126 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 127 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 128 -

www.wayengineer.com

WINCE

43G

3G SIM

WCDMA

WinCE

-6410
OK
OK-6410

- 129 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 130 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 131 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 132 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 133 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 134 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 135 -

www.wayengineer.com

WINCE

5GPRS

GPRS SIM

WinCE
1SerialApp.exe
\\WinCE6.0\

-6410
OK
OK-6410

- 136 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 137 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 138 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 139 -

www.wayengineer.com

WINCE

GSTAR
6GPS
GSTAR

GPS
WinCE

-6410
OK
OK-6410

- 140 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 141 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 142 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 143 -

www.wayengineer.com

WINCE

7GPS

GPS
WinCE

-6410
OK
OK-6410

- 144 -

www.wayengineer.com

WINCE

...

WinCE

-6410
OK
OK-6410

- 145 -

www.wayengineer.com

WINCE

9CAN

...

WinCE

-6410
OK
OK-6410

- 146 -

www.wayengineer.com

WINCE

WinCE
3-1

STEPLDR.nb0

Steplooder Eboot

STEPLDR.bin

STEPLDR.nb0

EBOOT.nb0

Eboot WinCE NK,

EBOOT.bin

Eboot.nb0

NK.bin

WinCE
\\WinCE6.0\DEMO

3-2
-> STEPLDR ->EBOOT -> NK

-6410
OK
OK-6410

- 147 -

www.wayengineer.com

WINCE

3-3 WinCE
::
1 SD

SD_Writer.exe

SD

IROM_EBOOT_SDFUSER.nb0

SD

\\WinCE6.0\DEMO\
2 SD

STEPLDR.nb0

Steplooder Eboot

STEPLDR.bin

STEPLDR.nb0

EBOOT.nb0

Eboot WinCE NK,

EBOOT.bin

Eboot.nb0

NK.bin

WinCE
\\WinCE6.0\DEMO

SD Fat32

SD

Windows

SD

SD

SD_Writer

SD

SD

SD

Nand

-6410
OK
OK-6410

- 148 -

www.wayengineer.com

WINCE

SD SD

Windows
1SD_Writer.exe
\\WinCE6.0\DEMO\

-6410
OK
OK-6410

- 149 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 150 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 151 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 152 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 153 -

www.wayengineer.com

WINCE

3-4

0 PC

WinCE
DNW

-6410
OK
OK-6410

- 154 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 155 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 156 -

www.wayengineer.com

WINCE

3-5 USB WinCE


::
1 SD

SD_Writer.exe

SD

OK6410_SDboot.nb0

SD SD

\\WinCE6.0\DEMO\USB
2

STEPLDR.nb0

Steplooder Eboot

STEPLDR.bin

STEPLDR.nb0

EBOOT.bin

Eboot.nb0

NK.bin

WinCE
\\WinCE6.0\DEMO

SD

SD

Windows

SD

SD

SD_Writer

USB

SD

Windows

stepldr.bin

Windows

eboot.bin

Windows

NandFlash

Windows

NK.bin

Windows

-6410
OK
OK-6410

- 157 -

www.wayengineer.com

WINCE

SD SD

Windows
1SD_Writer.exe
\\WinCE6.0\DEMO\USB

-6410
OK
OK-6410

- 158 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 159 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 160 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 161 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 162 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 163 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 164 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 165 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 166 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 167 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

1Cant open USB device


USBok

- 168 -

www.wayengineer.com

WINCE

WinCE
4-1

VS2005

WinCE4.2 EVC
WinCE5.0 Visual
Studio 2005 WinCE

SDK

Software Development Kit,

SDK

-6410
OK
OK-6410

- 169 -

www.wayengineer.com

WINCE

4-2 VS2005

Windows
VS2005 PC

-6410
OK
OK-6410

- 170 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 171 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 172 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 173 -

www.wayengineer.com

WINCE

4-3 SDK

Windows
\\WinCE6.0\SDK

1 SDK
TE6410.

-6410
OK
OK-6410

2 SDK
C:\WINCE600\PUBLIC\COMMON\OAK\INC
C:\Program Files\Windows CE Tools\wce600\TE6410 Board\include\ARMV4I
c

- 174 -

www.wayengineer.com

WINCE

4-4

Windows
VS2005

-6410
OK
OK-6410

- 175 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 176 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 177 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 178 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 179 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 180 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 181 -

www.wayengineer.com

WINCE

4-5
2-3

4-6

USB

1WinCE
2MicrosoftActiveSync
\\\MicrosoftActiveSync_4.5_Chs.rar

PC Sync
2-3 USB

-6410
OK
OK-6410

- 182 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 183 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 184 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 185 -

www.wayengineer.com

WINCE

4-7
5-8

4-8
WinCE6.0

1JPEG

Windows
1JPEG
\\WinCE6.0\\\JPEG

1\JPEG \WINCE600\PLATFORM\SMDK6410\SAMPLES\
2 VS2005 Wince6.0 "Solution" Jpeg
3 Jpeg Rebuild
4
\WINCE600\PLATFORM\SMDK6410\SAMPLES\JPEG\test\src\obj\ARMV4I\retail
jpg_test.exe
5 jpg_test.exe
\WINCE600\PLATFORM\SMDK6410\SAMPLES\JPEG\test testVectors
fname_dec.txtfname_enc.txt NandFlash

-6410
OK
OK-6410

- 186 -

www.wayengineer.com

WINCE

2MFC

Windows
1MFC
\\WinCE6.0\\\MFC

1\MFC \WINCE600\PLATFORM\SMDK6410\SAMPLES\
2 VS2005 Wince6.0 "Solution" Mfc
3 Mfc Rebuild
4
\WINCE600\PLATFORM\SMDK6410\SAMPLES\MFC\MFC_DecodeDemo\MfcDemo\obj\ARMV4I\
retail mfc_demo.exe
5 mfc_demo.exe
\WINCE600\PLATFORM\SMDK6410\SAMPLES\MFC MFCtest
NandFlash

-6410
OK
OK-6410

- 187 -

www.wayengineer.com

WINCE

3OPENGLES

Windows
1OPENGLES
\\WinCE6.0\\\OpenGLES1_1_EGL_Demo

1 \\OpenGLES1_1_EGL_Demo\OpenGLES1_1_EGL_Demo.sln
2 Build Build Solution

3 OpenGLES1_1_EGL_Demo.exe
\OpenGLES1_1_EGL_Demo\OpenGLES1_1_EGL_Demo\TE6410 Board (ARMV4I)\Release
4
OpenGles Demo 8
OpenGLES1_1_EGL_Demo.cpp int selectedDemo = 7;
0 7.

-6410
OK
OK-6410

- 188 -

www.wayengineer.com

WINCE

42D

Windows
12D
\\WinCE6.0\\\Mosquitotest

1/Mosquitotest \WINCE600\PLATFORM\SMDK6410\SAMPLES

2 Wince6.0 "Solution" Mosquitotest

3 Mosquitotest Rebuild

-6410
OK
OK-6410

- 189 -

www.wayengineer.com

WINCE

4 mosquito.exe
\WINCE600\PLATFORM\SMDK6410\target\ARMV4I\retail
5

-6410
OK
OK-6410

- 190 -

www.wayengineer.com

WINCE

WinCE
5-1

VS2005

Visual Studio 2005 Plat


form Builder


WinCE6.0

2006 11 Windo
ws EmbeddedCE 6.0
Windows EmbeddedCE 6.0

BSP

BSP board support package

BSPBSP
BSP, VxWorks BSP Linux
BSP CPU
BSP
BSP
BSP
BSP OS
OS

STEPLDREBOOTNK

-6410
OK
OK-6410

- 191 -

www.wayengineer.com

WINCE

5-2 VS2005
4-2

-6410
OK
OK-6410

- 192 -

www.wayengineer.com

WINCE

5-3 WinCE6.0
3

Windows Embedded CE6.0

\\WinCE6.0-A

Windows Embedded CE 6.0 Platfor


m Builder Service Pack 1

\\WinCE6.0-B

WINCE6.0R2

\\WinCE6.0-B

WINCE6.0 Updates

\\WinCE6.0-B

WINCE6.0R3

\\WinCE6.0-B

WINCE6.0R3 Update-Rollup

-6410
OK
OK-6410

- 193 -

www.wayengineer.com

WINCE

Windows
WinCE6.0-A WinCE6.0-B

-6410
OK
OK-6410

- 194 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 195 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 196 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 197 -

www.wayengineer.com

WINCE

5-4 BSP

Windows
1BSP
\\WinCE6.0\BSP

-6410
OK
OK-6410

- 198 -

www.wayengineer.com

WINCE

5-5

Windows

-6410
OK
OK-6410

- 199 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 200 -

www.wayengineer.com

WINCE

5-6

5-7 WinCE

Windows

-6410
OK
OK-6410

- 201 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 202 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 203 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 204 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 205 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 206 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 207 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 208 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 209 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 210 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 211 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 212 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 213 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 214 -

www.wayengineer.com

WINCE

5-8

\WINCE600\OSDesigns\S3C6410_DEMO\S3C6410_DEMO\RelDir\Samsung_SMDK6410_Release


1

HelloWorld.exe

HelloWorld.exe
\WINCE600\OSDesigns\S3C6410_DEMO\S3C6410_DEMO\RelDir\Samsung_SMDK6410_Rele
ase

HelloWorld.txt

10#\Windows\HelloWorld.exe
HelloWorld.lnk

project.bib FILE
HelloWorld .exe $(_FLATRELEASEDIR)\ HelloWorld .exe NK H
HelloWorld .lnk $(_FLATRELEASEDIR)\ HelloWorld .lnk NK H

project.dat
Directory("\Windows\Startup"):-File("HelloWorld.lnk","\Windows\HelloWorld.
lnk")

shell.reg
[HKEY_LOCAL_MACHINE\init]
"Launch50"="explorer.exe"
"Depend50"=hex:14,00, 1e,00

"Launch80"="HelloWorld.exe"
"Depend80"=hex:1e,00

HelloWorld.exe
wince
shell.reg
[HKEY_LOCAL_MACHINE\init]
"Launch50"="explorer.exe"
"Depend50"=hex:14,00, 1e,00

[HKEY_LOCAL_MACHINE\init]
"Launch80"="HelloWorld.exe"
"Depend50"=hex:14,00, 1e,00

WinCE6.0

-6410
OK
OK-6410

- 215 -

www.wayengineer.com

WINCE

-6410
OK
OK-6410

- 216 -

www.wayengineer.com

WINCE

5-9 WinCE

StepLdr

\WINCE600\PLATFORM\SMDK6410\SRC\BOOTLOADER\STEPLDR

Eboot

\WINCE600\PLATFORM\SMDK6410\SRC\BOOTLOADER\EBOOT

3
4

NandFlash

\WINCE600\PLATFORM\SMDK6410\SRC\COMMON\NANDFLASH

\WINCE600\PLATFORM\SMDK6410\SRC\DRIVERS

5-10

\WINCE600\PLATFORM\SMDK6410\FILES \platform.reg

5-11

\ WINCE600\PLATFORM\COMMON\SRC\SOC\S3C6410_SEC_V1\OAL\
INC

5-12 BSP
Windows CE 6.0 Kenerl OEM oal.exekernel.dll kitl.dll
startup OAL NK.exe
startup OAL oal.exe
OAL kernel.dll KITL OAL
kitl.dll
1 OAL OEMs Windows CE

2 kern
el.dll windows CE 5.0
sysgen
3 OEMs
4 OEM
5 KITL
BSP OAL BSP
BSP OEMs
kern.exe oal.exe kernkitl.exe oalkitl.exe

-6410
OK
OK-6410

- 217 -

www.wayengineer.com

WINCE

Windows CE 6.0
BSP

Cesysgen

Files

Src
Src\Bootloader
Src\Bootloader\Eboot
Src\Common
Src\Drivers
Src\Inc

Makefile

Platform.bibPlatform.regP
latform.datPlatform.dbconfig.bib

BootLoaderOAL

Bootloader
Bootloader Eboot.bin
Eboot.nb0
Bootloader OAL

BSP

Src\Oal\OalLib

OAL
oal.lib

Src\Oal\OalExe

oal.exe

Src\Kitl

-6410
OK
OK-6410

kitl.dll

- 218 -

www.wayengineer.com

WINCE

T
Windows CE.NE
CE.NET

Microsoft_ Windows CE Microsoft Win32_ (A


PI) Windows Win 32 API MFC
Windows CEWindows CE Win32 API
Windows CE Windows XP Windows CE
Windows CE Wi
n32
Windows CE Windows XP
Windows CE Win32
API
Windows CE Windows
Windows CE

Windows XP Windows CE 32 4 GB
Windows XP 2 GB
2 GB

-6410
OK
OK-6410

- 219 -

www.wayengineer.com

WINCE

1. Windows XP
Windows CE
2 Windows CE 2GB

(Large Memory Area)

64 MB 64 MB
32 MB

-6410
OK
OK-6410

- 220 -

www.wayengineer.com

WINCE

2. Windows CE

Windows CE
64 MB Windows CE 3
Windows XP
0x10000

/

RAM
RAM
(XIP) DLL 64 MB DLL
ROM XIP DLL XIP DLL
32 MB XIP DLL RAM DLL
DLL ROM DLL Compa
ct Flash DLL 32 MB XIP
DLL

-6410
OK
OK-6410

- 221 -

www.wayengineer.com

WINCE

3. Windows CE .NET
VirtualAlloc API

Windows CE RAM
32 MB XIP DLL
32 MB RAM DLL
32 MB 32 MB Windows CE

VirtualAlloc API
VirtualAlloc Microsoft Win32
CPU Windows CE .NE
T CPU 1024 4096 CPU 4 KB
VirtualAlloc
RAM
(commit)
VirtualAlloc Virtu
alAlloc

-6410
OK
OK-6410

- 222 -

www.wayengineer.com

WINCE

LPVOID VirtualAlloc (LPVOID lpAddress, DWORD dwSize,


DWORD flAllocationType,
DWORD flProtect);

VirtualAlloc VirtualAlloc
lpAddress
NULL 64 KB dw
Size

flAllocationType MEM_COMMITME
M_AUTO_COMMIT MEM_RESERVEMEM_COMMIT MEM_RE
SERVE
MEM_COMMIT VirtualAlloc MEM_AUTO_COMMIT
Windows CE
VirtualAlloc RAM VirtualAlloc
RAM VirtualAlloc
flAllocationType MEM_RESERVE MEM_COMMIT
Wi
ndows XP Windows CE

INT i;
PVOID pMem[512];
for (i = 0; i < 512; i++) {
pMem[i] = VirtualAlloc (0, PAGE_SIZE, MEM_RESERVE | MEM_COMMIT,
PAGE_READWRITE);
}
512 1
Windows CE RAM
Win32
Win32 Windows CE .NET
64 KB 512
64 KB Windows CE
32 MB 512 64
KB

-6410
OK
OK-6410

- 223 -

www.wayengineer.com

WINCE

DLL VirtualAlloc 470

RA
M
INT i;
PVOID pBase, pMem[512];
pBase = VirtualAlloc (0, 512*PAGE_SIZE, MEM_RESERVE, PAGE_READWRITE);
for (i = 0; i < 512; i++) {
pMem[i] = VirtualAlloc (pBase + (i * PAGE_SIZE), PAGE_SIZE,
MEM_COMMIT, PAGE_READWRITE);
}
Windows CE
512

Windows CE .NET 32 MB
32 MB
816 32 Mb RAM
Windows CE .NET W
indows CE .NET VirtualAlloc 2 MB
32 MB
(Large Memory Area) 2 GB

VirtualAlloc
32 MB
64 MB
PVOID ptrVirt, ptrMem;
ptrVirt = VirtualAlloc (0, 1024 * 1024 * 64, MEM_RESERVE,
PAGE_NOACCESS);
if (!ptrVirt) return 0;
ptrMem = VirtualAlloc ((PVOID)((int)ptrVirt+4096),
4096, MEM_COMMIT, PAGE_READWRITE);

-6410
OK
OK-6410

- 224 -

www.wayengineer.com

WINCE

if (!ptrMem) {
VirtualFree (ptr, 0, MEM_RELEASE);
return 0;
}
return ptrMem;
API
RAM64 MB
RAM RAM VirtualAlloc
4096

Pocket PC 2002 Windows CE


Pocket PC 2002 DLL Windows C
E .NET W
indows CE .NET Windows CE 3.0 Windows CE
DLL
Windows CE .NET Windows CE
32 MB 64 MB XIP DLL 32 MB Win
dows CE 3.0 Windows CE 3.0
XIP DLL 32 MB 4
Windows CE 3.0 4 Windows CE 3.0

-6410
OK
OK-6410

- 225 -

www.wayengineer.com

WINCE

4. Windows CE3.0
Pocket PC 2002 Windows CE 3.0

DLL
XIP DLL Windows CE Windows CE .NET 32 MB
Windows CE DLL Windows CE .NET

DLL DLL
DLL XIP DLL
32 MB
DLL DLL
DLL
DLL
DLL
DLL DLL
DLL 5 DLL
DLL A 2 DLL C
1 DLL B DLL A C DLL A

-6410
OK
OK-6410

- 226 -

www.wayengineer.com

WINCE

DLL D DLL
DLL

5. DLL
2 DLL C 6
3 .exe 2
DLL C 3 DLL 3
DLL DLL C
2 DLL

-6410
OK
OK-6410

- 227 -

www.wayengineer.com

WINCE

6. DLL 2 DLL
DLL XIP XIP DLL
OEM ROM DLL
XIP DLL XIP
DLL ROM XIP D
LL
XIP DLL XIP DLL
XIP DLL
XIP DLL
DLL DLL
Pocket PC 2002 Windows CE .NET DLL

Pocket PC 2002 Windows CE .NET Windows CE 3.0


ROM ROM

DLL XIP DLL


DLL ROM DLL ROM ROM
DLL ROM DLL

-6410
OK
OK-6410

- 228 -

www.wayengineer.com

WINCE

XIP DLL X
IP XIP DLL ROM DLL
ROM DLL ROM XIP
DLL ROM
ROM OEM Microsoft Windows
CE ROM
ROM ROM Microsoft
DLL DLL
DLL DLL
Pocket PC 2002 Windows CE 3.0 Microsoft
XIP Pocket PC XIP
Pocket PC 2002 XIP DLL 0x
0100000 Windows CE RAM DLL XIP DLL
RAM DLL 32 MB
XIP DLL 16 MB
7 Pocket PC 2002 XIP DLL
XIP
Pocket PC 2002 RAM DLL AB
C D

7. Pocket PC 2002 DLL XIP DLL

-6410
OK
OK-6410

- 229 -

www.wayengineer.com

WINCE

Windows CE
DLL
DLL DLL C Pocket PC 2002
16 MB RAM DLL
RAM

DLL
Pocket PC 2002
DLL DLL DLL DLL 64 KB
4 DLL 20 KB DLL
256 KB DLL DLL 64 KB
60 KB 64 KB DLL
64 KB DLL DLL
DLL DLL

DLL
Pocket PC 2002 DLL DLL

32 MB
RAM DLL
RAM DLL
DLL
DLL
DLL

DLL
DLL DLL
DLL
DLL DLL
DLL DLL

-6410
OK
OK-6410

- 230 -

www.wayengineer.com

WINCE

DLL DLL
DLL

DLL
Win32 LoadLibrary RAM
DLLDLL
CreateProcess CreateProcess
DLL RAM
DLL
Pocket PC 2002 DLL

Pocket PC Pocket PC 2002

Windows CE
Windows CE DLL Pocket PC 2002
Pocket PC

-6410
OK
OK-6410

- 231 -

www.wayengineer.com

WINCE

Windows CE.NET

Microsoft Windows CE .NETMicrosoft Windows CE


(OS) Windows CE .NET
(OEM)
OEM (OAL) (ISR) ISR
(IST)
ISR IST

Microsoft Windows CE .NET OAL

-6410
OK
OK-6410

- 232 -

www.wayengineer.com

WINCE

OAL (BSP)

Windows CE .NET
ISR
ISR ARM
Strong ARM OAL ISRO
AL ISR NKCallIntChain ISR ISR
ISR SYSINTR
ISR ISR SYSINTR_CHAIN NKCallInt

Chain( ) ISR ISR

ISR ISR

SYSINTR_NOP

ISR

SYSINTR

ISR

SYSINTR_RESCHED

OS

SYSINTR ISR
SYSINTR
IST
IST
IST
SYSINTR InterruptDone( )
SYSINTR InterruptDone

-6410
OK
OK-6410

- 233 -

www.wayengineer.com

WINCE

Windows CE .NET

OAL ISR
OAL ISR X86 ISR ILTimi
ng X86 ISR Windows CE
ISR
ISR SYSINTR ISR

PICGetCurrentInterrupt (PIC)

INTR_TIMER0

OS CurMSec

(RebootHandler
RebootHandler
RebootHandler)
INTR_RTC

SYSINTR_RTC_ALARM
SYSINTR_RTC_ALARM)
ISR (SYSINTR_RTC_ALARM
INTR_MAXIMUM

(NKCallIntrChain
NKCallIntrChain
NKCallIntrChain)

NKCallIntrChain

(SYSINTR_CHAIN
SYSINTR_CHAIN
SYSINTR_CHAIN)
(OEMTranslateIRQ
OEMTranslateIRQ
OEMTranslateIRQ)
OEMInit HookInterrupt
OEMTranslateIRQ SYINTR
SYSINTR_NOP

-6410
OK
OK-6410

- 234 -

www.wayengineer.com

WINCE

(PICEnableInterrupt
PICEnableInterrupt
PICEnableInterrupt}

PIC (EOI
EOI
EOI)
ISR

SYSINTR_NOP ISR

SYSINTR_RESCHED

SYSINTR ISR

SYSINTR_RTC_ALARM

ULONG PeRPISR(void)
{
ULONG ulRet = SYSINTR_NOP;
UCHAR ucCurrentInterrupt;

ucCurrentInterrupt = PICGetCurrentInterrupt();

if (ucCurrentInterrupt == INTR_TIMER0) {

CurMSec += SYSTEM_TICK_MS;
CurTicks.QuadPart += TIMER_COUNT;

if ((int) (CurMSec - dwReschedTime) >= 0)


ulRet = SYSINTR_RESCHED;
}

//
// Check if a reboot was requested.
//
if (dwRebootAddress) {

-6410
OK
OK-6410

- 235 -

www.wayengineer.com

WINCE

RebootHandler();
}

} else if (ucCurrentInterrupt == INTR_RTC) {


UCHAR cStatusC;
// Check to see if this was an alarm interrupt
cStatusC = CMOS_Read( RTC_STATUS_C);
if((cStatusC & (RTC_SRC_IRQ)) == (RTC_SRC_IRQ))
ulRet = SYSINTR_RTC_ALARM;
} else if (ucCurrentInterrupt <= INTR_MAXIMUM) {
// We have a physical interrupt ID, return a SYSINTR_ID

// Call interrupt chain to see if any installed ISRs handle this


// interrupt
ulRet = NKCallIntChain(ucCurrentInterrupt);

if (ulRet == SYSINTR_CHAIN) {
ulRet = OEMTranslateIrq(ucCurrentInterrupt);
if (ulRet != -1)
PICEnableInterrupt(ucCurrentInterrupt, FALSE);
else
ulRet = SYSINTR_NOP;
} else {
PICEnableInterrupt(ucCurrentInterrupt, FALSE);
}
}

if (ucCurrentInterrupt > 7 || ucCurrentInterrupt == -2) {


__asm {
mov al, 020h

-6410
OK
OK-6410

; Nonspecific EOI

- 236 -

www.wayengineer.com

WINCE

out 0A0h, al
}
}
__asm {
mov al, 020h

; Nonspecific EOI

out 020h, al
}

return ulRet;
}
ISR OAL OEMInit HookInterrupt ISR
SYSINTR
IST ISR OAL
OEMInit HookInterrupt
ISR Wind
ows CE 3.0 OAL ISR
ISR ISR
ISR

ISR SYSINTR IST


IST

ISR
ISR Windows CE .NET OEM

-6410
OK
OK-6410

- 237 -

www.wayengineer.com

WINCE

Windows CE 3.0
OEM OEM ISR
ISR
LoadIntChainHandler ISR DLL
ISR SYSINTR_ . . . OAL ISR
LoadIntChainHandler ISR (DLL)
C
memcpy

ISR

DLLEntry

InfoCopy

IOControl KernelLibIOControl IST

ISRHandler ISR

BOOL __stdcall DllEntry(

HINSTANCE hinstDll,

DWORD dwReason,
LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH) {}

if (dwReason == DLL_PROCESS_DETACH) {}

return TRUE;
}

// The compiler generates a call to memcpy() for assignments of large

-6410
OK
OK-6410

- 238 -

www.wayengineer.com

WINCE

objects.
// Since this library is not linked to the CRT, define our own copy
routine.
void InfoCopy( PVOID dst, PVOID src, DWORD size

{
while (size--) {
*((PBYTE)dst)++ = *((PBYTE)src)++;
}
}

BOOL IOControl(
DWORD

DWORD

InstanceIndex,

IoControlCode,

LPVOID pInBuf,
DWORD

InBufSize,

LPVOID pOutBuf,
DWORD

OutBufSize,

LPDWORD pBytesReturned )
{
switch (IoControlCode) {

case IOCTL_DEMO_DRIVER:
// Your I/O Code Here
return TRUE;
break;

default:
// Invalid IOCTL
return FALSE;
}

-6410
OK
OK-6410

- 239 -

www.wayengineer.com

WINCE

return TRUE;
}

DWORD

ISRHandler( DWORD InstanceIndex )

{
BYTE Value;

Value = READ_PORT_UCHAR((PUCHAR)IntrAddress );

// If interrupt bit set, return corresponding SYSINTR


if ( Value & 0x01 )
{
return SYSINTR_DEMO;
}
else
{
return SYSINTR_CHAIN;
}
}
ISR I/O
SYSINTR_CHAIN NKChainIntr
ISR ISR SYSINTR NKChainIntr
ISR ISR

ISR
ISR

-6410
OK
OK-6410

- 240 -

www.wayengineer.com

WINCE

IST

IST

IST IST
1.
2. IRO
3. (IST)
4. InterruptInitialize IRQ
IST InterruptInitialize

a)

5.
6. IST
Void SetupInterrupt( void )
{
// Create an event
//
g_hevInterrupt = CreateEvent(NULL, FALSE, FALSE, NULL);
if (g_hevInterrupt == NULL)
{
RETAILMSG(1, (TEXT("DEMO: Event creation failed!!!\r\n")));
return;
}

-6410
OK
OK-6410

- 241 -

www.wayengineer.com

WINCE

// Have the OAL Translate the IRQ to a system irq


//
fRetVal

= KernelIoControl( IOCTL_HAL_TRANSLATE_IRQ,
&dwIrq,
sizeof( dwIrq ),
&g_dwSysInt,
sizeof( g_dwSysInt ),
NULL );

// Create a thread that waits for signaling


//
g_fRun = TRUE;
g_htIST

= CreateThread(NULL, // Security
0,

// No Stack Size

ThreadIST, // Interrupt Thread

NULL,

// No

Parameters
CREATE_SUSPENDED, // Create Suspended
&dwThreadID // Thread Id
);

// Set the thread priority arbitrarily 5


//
m_nISTPriority = 5;
if( !CeSetThreadPriority( g_htIST, m_nISTPriority ))
{
RETAILMSG(1,(TEXT("DEMO: Failed setting Thread Priority.\r\n")));
return;
}

// Initialize the interrupt

-6410
OK
OK-6410

- 242 -

www.wayengineer.com

WINCE

//
if ( !InterruptInitialize(g_dwSysInt,g_hevInterrupt,NULL,0) )
{
RETAILMSG (1, (TEXT("DEMO: InterruptInitialize failed!!!\r\n")));
return;
}

// Get the thread started


//
ResumeThread( g_htIST );

}
InterruptInitialize SYSINTR

WaitForMultipleObjects

IST
IST IST
1.

2.

OS

3.

4.

5.

CELOGDATA Kernel Tracker

6.

g_fPRRunning g_hevPRStart

-6410
OK
OK-6410

- 243 -

www.wayengineer.com

WINCE

InterruptDone()

7.

7.1.

InterruptDone OS IRQ

8.

DWORD WINAPI ThreadIST( LPVOID lpvParam )


{
DWORD dwStatus;
BOOL fState = TRUE;

// Always chec the running flag


//
while( g_fRun )
{
dwStatus = WaitForSingleObject(g_hevInterrupt, INFINITE);

// Check to see if we are finished


//
if(!g_fRun ) return 0;

// Make sure we have the object


//
if( dwStatus == WAIT_OBJECT_0 )
{

// Do all interrupt processing to complete the interaction


// with the board so we can receive another interrupt.
//
if (!( READ_REGISTER_ULONG(g_pBoard Register) & INTR_MASK))
{
RETAILMSG(1, (TEXT("DEMO: Interrupt...")));

-6410
OK
OK-6410

- 244 -

www.wayengineer.com

WINCE

g_dwInterruptCount ++;
}

// Finish the interrupt


//
InterruptDone( g_dwSysInt );

}
}

return 0;
}
ULONG
IST

IST

InterruptDone IST

IST FIFO

Windows CE .NET OAL /


Microsoft ILTimingCEBench Kerne
Windows CE .NET ISR IST
l Tracker

-6410
OK
OK-6410

- 245 -

www.wayengineer.com

WINCE

ISR
ISR OAL I
SR

OAL ISR
ISR


ISR OAL ISR

IST
IST IST
Windows CE .NET Microsoft Microsoft IST
OAL ISR IST ISR
ISR Microsoft IST
IST
IST ISR ISR

NKCallIntChain
Windows CE KCALL KCALL
ISR OS
IST KCALL IST
IST
IST

-6410
OK
OK-6410

- 246 -

www.wayengineer.com

WINCE

5 ISR
6 OAL ISR
7 OS KCALL
8 IST

Windows CE .NETMicrosoft Windows CE OS


Windows CE .NET

Windows CE .NET

Windows CE .NET

-6410
OK
OK-6410

- 247 -

www.wayengineer.com

WINCE

Windows CE .NET

Windows CE .NET
API FileSys.exe

\ Windows CE .NET
\
Windows Windows CE
\Storage C
ard
FileSys.exe
ROM

FileSys.exe RAM RAM


FileSys.exe RAM
Windows CE
Windows CE .NET

RAM \MyF
ile.txt RAM ROM \
WindowsROM \Windows

-6410
OK
OK-6410

- 248 -

www.wayengineer.com

WINCE

(Storage Manager) Windows CE .NET


4
1

2Windows CE .NET

3Window
s CE .NET CD DVD UDFS FATF
S FAT32 4.2 FAT
(TFAT)

-6410
OK
OK-6410

- 249 -

www.wayengineer.com

WINCE

1. Windows CE

ROM RAM Microsoft

2.

WinS
ock Windows CE

NK.exe ROM FileSys.exeFileS


ys.exe ROM

FileSys.exe
Device.exe HKEY_LOCAL_MACHINE\Driver\BuiltIn

-6410
OK
OK-6410

- 250 -

www.wayengineer.com

WINCE

BLOCK_DRIVER_GUID {A4E7EDDA-E5
75-4252-9D6B-4195D48BB865}
FileSys.exe

PROFILE

Microsoft
mspar

(MBR)

FATFS DVD ROM


FileSys.exe
(FSDMGR) FSDMGR

FSDMGR

-6410
OK
OK-6410

- 251 -

www.wayengineer.com

WINCE

3.
(FSD) FSD FSDMGR_ API
CD FSDMGR
FSDMGR_ API FSDMGR

FSDMGRFSD

HKEY_LOCAL_MACHINE\System\StorageManager\Profiles
Windo
ws CE .NET
HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\Hard Disk

1.

-6410
OK
OK-6410

- 252 -

www.wayengineer.com

WINCE

Folder

REG_SZ

Windows
Storage Ca
rdStorage Card2

FileSystem

REG_SZ

PartitionDriver REG_SZ

AutoFormat

REG_DWORD

AutoPart

REG_DWORD

AutoMount

REG_DWORD

Name

REG_SZ

MountFlags

REG_DWORD

UI

MountFlags
2. MountFlags

ROM [4]

FindFirstFile

LoadFS
D(Ex) FindFirstFile

-6410
OK
OK-6410

- 253 -

www.wayengineer.com

WINCE

BOOL IsStorageManagerRunning()
{
DWORD attr = GetFileAttributes( _T("\\StoreMgr") );
if( (attr != -1) && (attr & FILE_ATTRIBUTE_TEMPORARY) )
return TRUE;
return FALSE;
}
MountFlags FileSys.exe

RAM
RAM
\MyDataFile.TX
T ROM ROM
EXE DLL ROM

HKEY_LOCAL_MACHINE\System\
StorageManager\Profiles COMMON.REG
PLATFORM.REG PROJECT.REG COMMON.RE
G COMMON.REG

Folder

LOC_STORE_DEFAULT_FOLDER .STR
Storage Card

FileSystem

FATFS

PartitionDriver Mspart.dll
AutoFormat

-6410
OK
OK-6410

- 254 -

www.wayengineer.com

WINCE

AutoPart

AutoMount

MountFlags

Windows CE



-6410
OK
OK-6410

- 255 -

www.wayengineer.com

You might also like