PWM Driver
From: David V (davev_at_)
Date: 03/30/04
- Next message: Rui Tang: "Re: PWM Driver"
- Previous message: Geoff Smith: "Re: NdisAcquireSpinLock"
- Next in thread: Rui Tang: "Re: PWM Driver"
- Reply: Rui Tang: "Re: PWM Driver"
- Reply: Geoff Smith: "Re: PWM Driver"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Mar 2004 14:23:07 -0600
I am trying to write a dll for a PWM driver. I am using Platform Builder 4.2
for the x-scale.
When i try to register the dll I use the code below and get error type 1.
dll = RegisterDevice(L"PWM", 1, L"pwm.dll", 0);
In my dll project I have a init function, PWM_INIT.
What should the signature be for this function? I have seen 3 different
signatures. One with 2 input parameters, One that returns a BOOL. One that
returns a DWORD handle.
What should the handle be if all i want to do I use PWM_IOControl?
There don't seem to be an good examples on how to write a driver. All the
examples are poorly commented and extremely confusing.
Dave V.
- Next message: Rui Tang: "Re: PWM Driver"
- Previous message: Geoff Smith: "Re: NdisAcquireSpinLock"
- Next in thread: Rui Tang: "Re: PWM Driver"
- Reply: Rui Tang: "Re: PWM Driver"
- Reply: Geoff Smith: "Re: PWM Driver"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|