X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fek-lpc-p2378%2Fbenchmark%2Fcontext_switch%2Fmain.c;fp=boards%2Fek-lpc-p2378%2Fbenchmark%2Fcontext_switch%2Fmain.c;h=30206a69d3eb47f9fd389258d8330d67e58452a5;hb=1b803b1b77ec99683f949e4e1e82b2bee936770f;hp=0000000000000000000000000000000000000000;hpb=f1597b21dbfbfceb5224956a041d84dc0aaeefb0;p=bertos.git diff --git a/boards/ek-lpc-p2378/benchmark/context_switch/main.c b/boards/ek-lpc-p2378/benchmark/context_switch/main.c new file mode 100644 index 00000000..30206a69 --- /dev/null +++ b/boards/ek-lpc-p2378/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; +} +