X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fat91sam7x-ek%2Fbenchmark%2Fcontext_switch%2Fmain.c;fp=boards%2Fat91sam7x-ek%2Fbenchmark%2Fcontext_switch%2Fmain.c;h=30206a69d3eb47f9fd389258d8330d67e58452a5;hb=6542f8a6e9ce3289832a90b5f2518e05347b464b;hp=0000000000000000000000000000000000000000;hpb=660d3a3e0f7129ed821a2ba44473254eaea728ce;p=bertos.git diff --git a/boards/at91sam7x-ek/benchmark/context_switch/main.c b/boards/at91sam7x-ek/benchmark/context_switch/main.c new file mode 100644 index 00000000..30206a69 --- /dev/null +++ b/boards/at91sam7x-ek/benchmark/context_switch/main.c @@ -0,0 +1,55 @@ +/** + * \file + * + * + * \author Daniele Basile + * + * \brief Kernel switch context benchmark. + * + * This benchmark show you the switch context time. This measure is make + * by hp timer that measure accurately the kernel switch context time, and print + * it on serial debug. If you want not use the hp timer you can measure this + * time using one oscilloscope, connected to one board led. To use this + * mode you should disable hp timer and implement hw_led.h low level module. + */ + +#include + +int main(void) +{ + context_switch(); + while (1) + { + } + + return 0; +} +