I have been working with a working InstaSpin project with TI and have been working on an extra .c file to the project to include more applications. This file has been modeled after the driver file and uses similar structure including the _obj.h and .h files. When I go to build this project I get a lot of problems that do not make sense that refer to the preprocessing file that gets made.
The very first character in my added .c file shows a warning:
#14-D extra text after expected end of preprocessing directive
This warning is a part of initial comments describing the file. At the first function declaration of this file I get the warning:
#12-D parsing restarts here after previous syntax error
This messes up a lot of my function calls all within the file including errors that do not make sense:
#119 a void function may not return a value
#131 expected a "{"
#249 function has already been defined
It seems that the preprocessing file is throwing off the compiler trying to interpret the .c file. The errors that occur do not make sense when in other files that are set up almost identically have none and have previously been used successfully.
Please help with guiding me in the right direction.
Thanks