61 Example
for Assertion output via printf:
67 extern const char* verboseLevelStr[6];
69 #define IFX_ASSERT(level, expr) (((expr) || (level > IFX_VERBOSE_LEVEL_ERROR)) ? ((void)0) : (void)printf("[ASSERT:%s] '%s' in %s:%d (function '%s')\n", verboseLevelStr[level], #expr, __FILE__, __LINE__, __func__))
75 And in your main.c file (or somewhere
else):
79 const char* verboseLevelStr[6] = {
90 \section minimalSetup Minimal Set of Driver sources
92 If you prefer to use (resp. compile) only
a minimal set of drivers for your application, please add at least following "infrastructural resources":
94 \li <B>src/ifx/\$(VERIF_DUT)/_Reg</B> directory
95 \li <B>src/ifx/\$(VERIF_DUT)/_Lib</B> directory
96 \li <B>src/ifx/SrvSw</B> directory
97 \li CPU driver: <B>src/ifx/\$(VERIF_DUT)/Cpu</B> and <B>src/ifx/\$(VERIF_DUT)/_Impl/IfxCpu_cfg.*</B>
98 \li DMA driver: <B>src/ifx/\$(VERIF_DUT)/Dma</B> and <B>src/ifx/\$(VERIF_DUT)/_Impl/IfxDma_cfg.*</B>
99 \li Port driver: <B>src/ifx/\$(VERIF_DUT)/Port</B>, <B>src/ifx/\$(VERIF_DUT)/_Impl/IfxPort_cfg.*</B> and <B>src/ifx/\$(VERIF_DUT)/_PinMap/IfxPort_PinMap.*</B>
100 \li SCU driver: <B>src/ifx/\$(VERIF_DUT)/Scu</B> and <B>src/ifx/\$(VERIF_DUT)/_Impl/IfxScu_cfg.*</B>
101 \li Src driver: <B>src/ifx/\$(VERIF_DUT)/Src</B> and <B>src/ifx/\$(VERIF_DUT)/_Impl/IfxSrc_cfg.*</B>
102 \li Stm driver: <B>src/ifx/\$(VERIF_DUT)/Stm</B> and <B>src/ifx/\$(VERIF_DUT)/_Impl/IfxStm_cfg.*</B>
104 Whenever additional drivers should be added, you typically have to copy following files/directories:
106 \li <B>src/ifx/\$(VERIF_DUT)/<driver></B>
107 \li <B>src/ifx/\$(VERIF_DUT)/_Impl/<driver>_cfg.*</B>
108 \li <B>src/ifx/\$(VERIF_DUT)/_PinMap/<driver>_cfg.*</B>
111 \section agentixSetup Special Notes to the AGENtiX Setup
113 \li include paths are already defined in $VERIF_SRC/include/$VERIF_DUT/build/build_defaults.inc and don'
t need to be defined again in testcase specific project.cfg file
114 \li the default IfxCfg.
h file is located under $VERIF_SRC/lld/include and doesn'
t need to be added to the testcase
115 \li whenever
a driver package should be included into
a testcase, add 'MK_LLD \$(VERIF_LLD)/src/ifx/\$(VERIF_DUT)/_Build/<driver>.xml' to the BUILD section of the project.cfg file. There is no need (and it isn'
t recommended) to specify individual source files of
a driver, since names or required files might change over time.
116 \li for Aurix HE and LE derivatives, please add 'DEFINE USE_ILLD_LIBRARY 1' to the header of your project.cfg file to select the iLLD library. This isn'
t required for the Aurix Plus anymore, since iLLDs are an integral part of the development platform.
117 \li example testcases and templates are located under $VERIF_SRC/lld/testcases/<module>
119 [\ref lld_doxygenRules "Previous page"] [\ref lld_versioning "Next page"]