How a Called Function Accesses Function Variables

<< Click to Display Table of Contents >>

Navigation:  ETEC 'C' Compiler Information >

How a Called Function Accesses Function Variables

Previous pageReturn to chapter overviewNext page

Idea 1: Jump to labeled code within the eTPU function rather than calling a "C" function outside the eTPU function's scope.

Idea 2: Declare function variables within a structure, create a pointer to the structure within the function, de-referenced to the CPBAR register.  The NXP PPA function (Set 1) provides an example of this technique.