|
Hi,
If you open an example project again, do the following:
In the workspace pane, right click on the top level object (the project name, little blue cube icon). Then click Options.
Select the "C/C++ Compiler" category on the left. Then select the "Preprocessor" tab in the right pane.
In the box called "Additional include directories", you will see a list of file paths. These tell the compiler where to search for your header files.
For example (for the mass storage project): $PROJ_DIR$\..\..\..\at91lib/peripherals $PROJ_DIR$\..\..\..\at91lib/drivers $PROJ_DIR$\..\..\..\at91lib/memories $PROJ_DIR$\..\..\..\at91lib $PROJ_DIR$\..\..\..\external_libs $PROJ_DIR$\..\..\..\at91lib\boards\at91sam3u-ek
Each ".." means to go up a level in the folder/directory structure. The "board.h" file is located at:
"C:\Program Files\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\examples\Atmel\at91lib\boards\at91sam3u-ek\"
given as:
"$PROJ_DIR$\..\..\..\at91lib\boards\at91sam3u-ek"
"$PROJ_DIR$" is where the ".ewp" file lives. There are other variables as well as "$PROJ_DIR$" that can be used.
I hope this helps you get rid of some of the errors.
Regards.
PS In the workspace tree you just add your C files I think.
|