Janez
Fri Apr 07 06:01:24 CDT 2006
Hi,
Try to download "Windows CE 5.0 Embedded Development Labs" from
http://www.microsoft.com/downloads/details.aspx?FamilyID=9ba15efe-e10e-47ff-93bc-24474e5a1a38&DisplayLang=en
which includes "DrvWiz - Windows CE stream driver wizard".
This will help you to generate wince stream driver code.
For example:
Driver name: ADC
Location: "your platform driver folder\ADC_driver"
Driver Filename: ADC_driver
Just add code to interface your ADC HW and include driver to WinCE
image.
Interfacing your driver from application is done in same way as opening
serail porst:
hIopFile = CreateFile(TEXT("ADC1:"), // "special" file name
GENERIC_READ|GENERIC_WRITE, // desired access
FILE_SHARE_READ|FILE_SHARE_WRITE, // sharing mode
NULL, // security attributes (=NULL)
OPEN_ALWAYS, // creation disposition
FILE_ATTRIBUTE_NORMAL, // flags and attributes
NULL); // template file (ignored)
**********************
Janez L.
kamali.srinivasan@gmail.com wrote:
> hi,
> We are planning to develop the following drivers for windowsCE5.0:
> 1,driver for built in ADC
> 2,driver for I2C to drive i2c DAC ie MAX5841
> 3,driver to support serial flash for the density of 4mb using
> SPI(AT25F4096)
> The drivers are for the samsungs s3sc2410 RISC
> microprocessor.i searched in platformbuilder help and there seems to be
> no sample code for these drivers? Since i am new to wince i am totally
> lost...can anyone please tell me if there is some sample driver
> available which i am missing out or if someone has worked on these
> drivers please let me know how to develop them or where to find some
> tutorial for this.....
>
> Thankyou