loader.xc: Error: Type of symbol recordCandidateImage has mismatch with previous definition:
loader.xc: Error: found: signed int recordCandidateImage( signed int, unsigned int )
cc4uaaaa.s: Error: previous: void recordCandidateImage( signed int, unsigned int )
loader.xc: Error: Type of symbol recordCandidateImage has mismatch with previous definition:
loader.xc: Error: found: signed int recordCandidateImage( signed int, unsigned int )
cc4uaaaa.s: Error: previous: void recordCandidateImage( signed int, unsigned int )
Error: F03010 Failed to compile stage two loader.
Code: Select all
//xcc -c loader.xc -target=XS1-L1A-LQ64
#include <platform.h>
unsigned int keptRef=0;
unsigned int wantedVersion=0;
port buttonPort = XS1_PORT_1L;
void init()
{
int buttState = 0;
buttonPort :> buttState;
wantedVersion = buttState ? 1 : 0;
keptRef = 0;
}
int checkCandidateImageVersion( int version )
{
return( (keptRef==0) || ( (version?1:0) == wantedVersion ) );
}
int recordCandidateImage( int version, unsigned int ref )
{
keptRef = ref;
}
unsigned int reportSelectedImage()
{
return( keptRef );
}
Any help? Thanks..