#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
void delay(unsigned int x)
{
while(x--);
}
void main()
{
while(1)
{
PRT0DR=0x00;
delay(5000);
PRT0DR=0x01;
}// Insert your main routine code here.
}
结果编译后,总是输出这样的结果
Generating source code for Device Configuration...
The source code has been generated successfully
Compiling...
creating project.mk
./main.c
!E D:\psoc\tools\InvalidCompilerLicense.txt(0): ...Operation terminated. Compiler License invalid or not accessible
D:\psoc\tools\make: *** [obj/main.o] Error -1
main.o - 2 error(s) 0 warning(s) |