Example

Dependencies:   FXAS21002 FXOS8700Q

Committer:
maygup01
Date:
Tue Nov 19 09:49:38 2019 +0000
Revision:
0:11cc2b7889af
Example

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maygup01 0:11cc2b7889af 1 # TargetFunctions.txt contains the list of the functions' calls
maygup01 0:11cc2b7889af 2 # User want to test their Stack Usage.
maygup01 0:11cc2b7889af 3 #
maygup01 0:11cc2b7889af 4 # User MUST supply include files, variables declarations, test function name and the target function call
maygup01 0:11cc2b7889af 5 # for example:
maygup01 0:11cc2b7889af 6 # foo.h $ StackUsage_foo $ int a = 5; int b = 6; int c = 0 $ c = foo(a, a+b);
maygup01 0:11cc2b7889af 7 # between each inputs (includes and variables for example) the syntax requires $ separation.
maygup01 0:11cc2b7889af 8 # "stdio.h" and "stdlib.h" are already included in the generated files.
maygup01 0:11cc2b7889af 9
maygup01 0:11cc2b7889af 10 #foo.h $ StackUsage_foo $ int a = 5; int b = 6; int c = 0; $ c = foo(a, a+b);
maygup01 0:11cc2b7889af 11 $ StackUsage_memcmp $ char *mem1 = "blablabla"; int res = 0; $ res = memcmp(mem1, mem1, 8);
maygup01 0:11cc2b7889af 12 #moo.h $ StackUsage_moo $ int a = 2; char b[2] = {'a','b'}; $ moo(a, b);
maygup01 0:11cc2b7889af 13 #sum.h $ StackUsage_sum $ int res = 0; $ res = sum(88, 90);
maygup01 0:11cc2b7889af 14 $ StackUsage_printf $ $ printf("I'm a test call\n");
maygup01 0:11cc2b7889af 15 $ StackUsage_memcpy $ char* a = "PALTest"; char b[20] = {0}; $ memcpy(b, a, 8);
maygup01 0:11cc2b7889af 16
maygup01 0:11cc2b7889af 17
maygup01 0:11cc2b7889af 18 List Finished!