X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32-p103%2Fbenchmark%2Fkernel_footprint%2Fmain.c;h=78920ff58dd88e3b0d966460a4ff5e529256e57b;hb=4ac3fd00c7407310d00e3b09fc96ac2293de674e;hp=7ecafb863d7eac8259d22ea2e9ded962151e61c0;hpb=09bc15f21ff2875f1cb44aabfba8c8e9cc39b586;p=bertos.git diff --git a/boards/stm32-p103/benchmark/kernel_footprint/main.c b/boards/stm32-p103/benchmark/kernel_footprint/main.c index 7ecafb86..78920ff5 100644 --- a/boards/stm32-p103/benchmark/kernel_footprint/main.c +++ b/boards/stm32-p103/benchmark/kernel_footprint/main.c @@ -1,20 +1,56 @@ -// Emtpy main.c file generated by the wizard -#include +/** + * \file + * + * + * \author Daniele Basile + * + * \brief Kernel footprint benchmark. + * + * This benchmark measures the memory footprint[1] of the BeRTOS kernel with a + * simple minimalist user application. + * + * The purpose of this test is to give a measure of the required space in a + * generic flash memory to store a full-featured BeRTOS kernel. + * + * [1] http://en.wikipedia.org/wiki/Memory_footprint + */ -static void init(void) -{ - IRQ_ENABLE; - // insert initialization calls here -} +#include int main(void) { - init(); + kernel_footprint(); while (1) { - // your code goes here } return 0; } -