PWM Buzzer WINCE6.0

matt_Damon
Hello,

I am trying to use the PWM buzzer using the stream drivers available in
WINCE6.0.  However, there is no sound when I execute the following code:

DWORD A,B,C,D,E,F,G,H,I,J;
T=4144;
B=1;
C=1;
E=1;
F=1000;
A=PWM_Init(T);
D=PWM_Open(A, B,C);
PWM_PowerUp(A);
PWM_IOControl(D, E, F, G, H, I , J);  


Can anyone correct the above code to make PWM work?

Thanks.