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:
gdisirio 2013-06-24 10:37:40 +00:00
parent 8b1a38de60
commit bb924208ae
1 changed files with 10 additions and 0 deletions

View File

@ -441,6 +441,7 @@ ROMCONST struct testcase testbmk8 = {
bmk8_execute
};
#if CH_USE_QUEUES || defined(__DOXYGEN__)
/**
* @page test_benchmarks_009 I/O Queues throughput
*
@ -487,6 +488,7 @@ ROMCONST struct testcase testbmk9 = {
NULL,
bmk9_execute
};
#endif /* CH_USE_QUEUES */
/**
* @page test_benchmarks_010 Virtual Timers set/reset performance
@ -529,6 +531,7 @@ ROMCONST struct testcase testbmk10 = {
bmk10_execute
};
#if CH_USE_SEMAPHORES || defined(__DOXYGEN__)
/**
* @page test_benchmarks_011 Semaphores wait/signal performance
*
@ -574,6 +577,7 @@ ROMCONST struct testcase testbmk11 = {
NULL,
bmk11_execute
};
#endif /* CH_USE_SEMAPHORES */
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
/**
@ -645,9 +649,11 @@ static void bmk13_execute(void) {
test_print("--- Timer : ");
test_printn(sizeof(VirtualTimer));
test_println(" bytes");
#if CH_USE_SEMAPHORES || defined(__DOXYGEN__)
test_print("--- Semaph: ");
test_printn(sizeof(Semaphore));
test_println(" bytes");
#endif
#if CH_USE_EVENTS || defined(__DOXYGEN__)
test_print("--- EventS: ");
test_printn(sizeof(EventSource));
@ -698,9 +704,13 @@ ROMCONST struct testcase * ROMCONST patternbmk[] = {
&testbmk6,
&testbmk7,
&testbmk8,
#if CH_USE_QUEUES || defined(__DOXYGEN__)
&testbmk9,
#endif
&testbmk10,
#if CH_USE_SEMAPHORES || defined(__DOXYGEN__)
&testbmk11,
#endif
#if CH_USE_MUTEXES || defined(__DOXYGEN__)
&testbmk12,
#endif