Hi all
I am trying to select the baud rate via dip switches at start-up
first attempt
IF bRate = 2 then
'DEFINE HSER_BAUD 14400 ' 14400 Baud
ENDIF
IF bRate = 3 then
DEFINE HSER_BAUD 19200 ' 19200 Baud
ENDIF
Error - mutable defines of HSER_BAUD
Second attempt
DEFINE HSER_BAUD baud - Setting the baud equal to variable and then manipulating the variable through if statements
error - variable not defined (has been defined 2 line higher
Has any one done some thing like this before or got any more ideas I can try
Thanks in advance
Andre
Bookmarks