Made queues and semaphores benchmarks conditional.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5884 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
8b1a38de60
commit
bb924208ae
|
@ -441,6 +441,7 @@ ROMCONST struct testcase testbmk8 = {
|
||||||
bmk8_execute
|
bmk8_execute
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if CH_USE_QUEUES || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @page test_benchmarks_009 I/O Queues throughput
|
* @page test_benchmarks_009 I/O Queues throughput
|
||||||
*
|
*
|
||||||
|
@ -487,6 +488,7 @@ ROMCONST struct testcase testbmk9 = {
|
||||||
NULL,
|
NULL,
|
||||||
bmk9_execute
|
bmk9_execute
|
||||||
};
|
};
|
||||||
|
#endif /* CH_USE_QUEUES */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @page test_benchmarks_010 Virtual Timers set/reset performance
|
* @page test_benchmarks_010 Virtual Timers set/reset performance
|
||||||
|
@ -529,6 +531,7 @@ ROMCONST struct testcase testbmk10 = {
|
||||||
bmk10_execute
|
bmk10_execute
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if CH_USE_SEMAPHORES || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @page test_benchmarks_011 Semaphores wait/signal performance
|
* @page test_benchmarks_011 Semaphores wait/signal performance
|
||||||
*
|
*
|
||||||
|
@ -574,6 +577,7 @@ ROMCONST struct testcase testbmk11 = {
|
||||||
NULL,
|
NULL,
|
||||||
bmk11_execute
|
bmk11_execute
|
||||||
};
|
};
|
||||||
|
#endif /* CH_USE_SEMAPHORES */
|
||||||
|
|
||||||
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
|
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
|
@ -645,9 +649,11 @@ static void bmk13_execute(void) {
|
||||||
test_print("--- Timer : ");
|
test_print("--- Timer : ");
|
||||||
test_printn(sizeof(VirtualTimer));
|
test_printn(sizeof(VirtualTimer));
|
||||||
test_println(" bytes");
|
test_println(" bytes");
|
||||||
|
#if CH_USE_SEMAPHORES || defined(__DOXYGEN__)
|
||||||
test_print("--- Semaph: ");
|
test_print("--- Semaph: ");
|
||||||
test_printn(sizeof(Semaphore));
|
test_printn(sizeof(Semaphore));
|
||||||
test_println(" bytes");
|
test_println(" bytes");
|
||||||
|
#endif
|
||||||
#if CH_USE_EVENTS || defined(__DOXYGEN__)
|
#if CH_USE_EVENTS || defined(__DOXYGEN__)
|
||||||
test_print("--- EventS: ");
|
test_print("--- EventS: ");
|
||||||
test_printn(sizeof(EventSource));
|
test_printn(sizeof(EventSource));
|
||||||
|
@ -698,9 +704,13 @@ ROMCONST struct testcase * ROMCONST patternbmk[] = {
|
||||||
&testbmk6,
|
&testbmk6,
|
||||||
&testbmk7,
|
&testbmk7,
|
||||||
&testbmk8,
|
&testbmk8,
|
||||||
|
#if CH_USE_QUEUES || defined(__DOXYGEN__)
|
||||||
&testbmk9,
|
&testbmk9,
|
||||||
|
#endif
|
||||||
&testbmk10,
|
&testbmk10,
|
||||||
|
#if CH_USE_SEMAPHORES || defined(__DOXYGEN__)
|
||||||
&testbmk11,
|
&testbmk11,
|
||||||
|
#endif
|
||||||
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
|
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
|
||||||
&testbmk12,
|
&testbmk12,
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue