11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Rule Rule Description Advisory/Required1.1 All code shall conform to ISO 9899standard C, with no extensionsRequiredpermitted.5.4 A tag name shall be a uniqueidentifier6.3 The basic types of char, int, short,long, float, and double should notbe used, but specific-lengthequivalents should be typedef'd forthe specific compiler, and thesetype names used in the code10.3 The value of a complex expressionof integer type shall only be cast toa type that is not wider and of thesame signedness as theunderlying type of the expression11.3 A cast should not be donebetween a pointer type and anintegral type17.4 Array indexing shall be the onlyallowed form of pointer arithmetic19.13 The # and ## preprocessoroperators should not be usedRequiredAdvisoryRequiredAdvisoryRequiredAdvisoryException noted / How it isaddressedThis Rule is not supported as thelibrary implementation requires IARextensions like __interrupt. Theseintrinsic functions relate to devicehardware functionality, and cannotpractically be avoided.This is violated as for the reason thatenumerated types are mixed withother types. This is caused byintegers being assigned toenumerated types in some places tosave code spaceThe type bool supported by thecompiler violate this rule.This is required in the code to doalign some pointers in the data blockmemory. Cannot be avoided.This is required in the code to doalign some pointers in the data blockmemory. Cannot be avoided.Pointer increment has been done insome places for sequential access ofsignals, references, etc.This is required for implementation ofa macro for ease of use &abstractionKnown Issues with <strong>QTouch</strong> <strong>Library</strong> for UC3L• When the IAR Example Project is build, the IAR32 compiler reports the following Warning- Warning[Pe047]: incompatible redefinition of macro "AVR32_PM_PPCR_MASK"(declared at line 607 of "C:\Program Files\IAR Systems\Embedded C:\Program Files\IARSystems\Embedded Workbench 5.6\avr32\INC\avr32\pm_400.h 467 Workbench5.6\avr32\INC\avr32/uc3l064.h").In order to avoid this, this warning (Pe047) has been disabled using the Diagnosticsoption in the IAR32 Project.1688207K-AT42-09/11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!