6
Atmel AVR262
8375A-AVR-03/11
5 Compiler and assembler options
Building the application in IAR and GCC requires certain options to be set. As both
the compilers are unique in their own way, minor differences are required for each.
This section explains the necessary option settings required for each compiler.
In GCC, open Project Options, and then click on Custom Options. Add these custom
compilation options one by one (refer to
-D_QTOUCH_
-DQT_NUM_CHANNELS=8
-DSNS1=A
-DSNSK1=A
-DSNS2=C
-DSNSK2=C
-DQT_DELAY_CYCLES=5
-D_SNS1_SNSK1_SAME_PORT_
-D_SNS2_SNSK2_SAME_PORT_
-DQTOUCH_STUDIO_MASKS
Figure 5-1.
GCC compiler options.
For IAR, the options have to be set in the compiler as well as the assembler. In IAR
Project Options, select the C/C++ Compiler category, and on the Preprocessor tab,
the following options should be provided, as shown in
. The same options
should be added in the Assembler category on the Preprocessor tab, as shown in
.