X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Fstm32-p103%2Fbenchmark%2Fcontext_switch%2Fmain.c;h=f190567f9cbad326434c2da3beab0876dc73460b;hb=21e8827872a940bf5f3c81e437a1c12461b61ea6;hp=54652f1788f732dbf6d0b2ff73053466e56e4934;hpb=a256e501c16b63a423267f8621d6bdcda20d3f3a;p=bertos.git diff --git a/boards/stm32-p103/benchmark/context_switch/main.c b/boards/stm32-p103/benchmark/context_switch/main.c index 54652f17..f190567f 100644 --- a/boards/stm32-p103/benchmark/context_switch/main.c +++ b/boards/stm32-p103/benchmark/context_switch/main.c @@ -1,4 +1,47 @@ -// Emtpy main.c file generated by the wizard +/** + * \file + * + * + * \author Daniele Basile + * + * \brief Kernel context switch benchmark. + * + * This benchmark measures the overhead (in µs) required to deliver a + * signal and switch from a low-priority process to a high-priority process. + * + * The measure is made by the high-precision timer if supported by the + * architecture. Alternatively, the time can also be measured using an external + * oscilloscope connected to the board's status LED. + */ + #include int main(void)