X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fat91sam7x-ek%2Fbenchmark%2Fkernel_footprint%2Fmain.c;fp=boards%2Fat91sam7x-ek%2Fbenchmark%2Fkernel_footprint%2Fmain.c;h=9c11e0287102b66dc4ab50dddb4c681c2b9cdb0b;hb=6a6962e53cd67677151d10b382bbb7d37d4efd83;hp=0000000000000000000000000000000000000000;hpb=e35d406ad6b59984f63a70a8df0e56d665557327;p=bertos.git diff --git a/boards/at91sam7x-ek/benchmark/kernel_footprint/main.c b/boards/at91sam7x-ek/benchmark/kernel_footprint/main.c new file mode 100644 index 00000000..9c11e028 --- /dev/null +++ b/boards/at91sam7x-ek/benchmark/kernel_footprint/main.c @@ -0,0 +1,54 @@ +/** + * \file + * + * + * \author Daniele Basile + * + * \brief Kernel footprint benchmark. + * + * This benchmark show you how much flash space could use the BeRTOS kernel application. + * Try to compile it and verify how few space the kernel needs to run. + * By default this benchmark have all kernel switch enabled, and the context switch is preemptive + * mode, try to modify the kernel setting throught the cfg file. + */ + +#include + +int main(void) +{ + kernel_footprint(); + while (1) + { + } + + return 0; +} +