leo hendrickson / Mbed OS example-Ethernet-mbed-Cloud-connect
Committer:
leothedragon
Date:
Tue May 04 08:55:12 2021 +0000
Revision:
0:8f0bb79ddd48
nmn

Who changed what in which revision?

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