Trying to build this simple piece of code:
Code: Select all
/*
============================================================================
Name : xc1a-led.xc
Description : Illuminate an LED on the XC-1A board
============================================================================
*/
#include <platform.h>
out port bled = PORT_BUTTONLED;
int main() {
bled <: 0b0001;
while(1);
return 0;
}
Code: Select all
**** Build of configuration Debug for project illuminate ****
xmake CONFIG=Debug all
Creating dependencies for illuminate.xc
../src/illuminate.xc:1: error: Excessive token sequence "out port bled = PORT_BUTTONLED; int main() { bled <: 0b0001; while(1) ; return 0; }"
Updating eclipse config
#include <platform.h> out port bled = PORT_BUTTONLED; int main() { bled <: 0b0001; while(1) ; return 0; }
1 error in preprocessor.
Using modules:
Compiling illuminate.xc
../src/illuminate.xc:1: error: Excessive token sequence "out port bled = PORT_BUTTONLED; int main() { bled <: 0b0001; while(1) ; return 0; }"
#include <platform.h> out port bled = PORT_BUTTONLED; int main() { bled <: 0b0001; while(1) ; return 0; }
1 error in preprocessor.
xmake[1]: *** [.build_Debug/src/illuminate.xc.o] Error 1
xmake: *** [bin/Debug/illuminate_Debug.xe] Error 2
Code: Select all
Fred:~ jb$ java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
Fred:~ jb$
TIA
Jim