Click here to Skip to main content
15,885,694 members

Comments by Gordon Smith (Top 1 by date)

Gordon Smith 16-Jul-15 5:14am View    
It's a fairly large project so posting it isn't feasible. Not sure what else to post.

The .h file has:

extern void threadDelay(int nTicks);

threadDelay() source is in original post. It's in a .cpp file if that's of interest.

The thread / task is declared as __stdcall to match beginthreadex(). It makes a series of calls to sprintf() and the resulting string is transmitted from a serial port. Transmission is regulated by threadDelay(10) calls, ensuring a 10 ms delay between messages.