jini
Reged: Aug 24 2005
Posts: 2
|
|
Hi, evaulating the hi-tech V keil at the moment and I am having some problems getting some code to compile under hi-t. I am developing for the nrf24e1 (nordic) 8051 varient For a basic app it was fine and produced some nice tight code compaired to the keil... And when I try it with real code... it seems to get very confused....
/// here is the code
#define SPI_READ() \ EXIF &= ~0x20; \ SPI_DATA = 0; \ while((EXIF & 0x20) == 0x00);
...
#define SPI_READ_FAST() \ while((EXIF & 0x20) == 0x00); \ EXIF &= ~0x20; \ <----- line 206 spi_out = SPI_DATA; \ SPI_DATA=0;
///////////// some of the error codes
W 206 missing basic type: int assumed E 206 type redeclared E 206 ; expected
|
clyde
HI-TECH team member
   
Reged: Oct 16 2003
Posts: 626
|
|
check to make sure you don't have any spaces after the backslashes - the backslash only works as a continuation character if it is the very last character on the line.
I copied your code and it compiled fine for me.
Clyde
|
jini
Reged: Aug 24 2005
Posts: 2
|
|
Cheers there was a space after one of the backslashes. After that the compiler seems happy enough..
|