SERINtimeout in C

Questions on UARTs, and serial communication
Post Reply
YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

SERINtimeout in C

Post by YahooArchive » Wed Jan 30, 2013 1:24 am

Hello,
I am getting an error when compiling (using C) whenever I try to use
SERINtimeout = 5000000; in my code. As if it not declared, I cannot find it in
any of the include files.

Please, help.
Thanks, Ken



YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Re: SERINtimeout in C

Post by YahooArchive » Wed Jan 30, 2013 1:24 am

> I am getting an error when compiling (using C) whenever I try to use
SERINtimeout = 5000000; in my code. As if it not declared, I cannot find it in
any of the include files.

this line should be in cor_hwlib.h (an oversight), or you can just put it in
your source

extern int SERINtimeout;

And it will link

YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Re: SERINtimeout in C

Post by YahooArchive » Wed Jan 30, 2013 1:26 am

I sent another reply where I stated when I changed the value of SERINtimout to
5000000 it did not seem to have any effect. But I compiled and downloaded the
program again, and now it is having an effect. So thanks anyways. I don't know
what the difference is.
Thanks, Ken

Post Reply