<ahref="testbmk_8c.html">Go to the documentation of this file.</a><divclass="fragment"><preclass="fragment"><aname="l00001"></a>00001 <spanclass="comment">/*</span>
<aname="l00027"></a>00027 <spanclass="preprocessor">#include "<aclass="code"href="ch_8h.html"title="ChibiOS/RT main include file.">ch.h</a>"</span>
<aname="l00028"></a>00028 <spanclass="preprocessor">#include "<aclass="code"href="test_8h.html"title="Tests support header.">test.h</a>"</span>
<aname="l00074"></a>00074 <spanclass="keyword">static</span><aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a> thread1(<spanclass="keywordtype">void</span> *p) {
<aname="l00075"></a>00075 <aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a> msg;
<aname="l00079"></a>00079 <aclass="code"href="group__messages.html#ga19a54b3b4b0e3677c47d650a3be3c7aa"title="Releases the thread waiting on top of the messages queue.">chMsgRelease</a>(msg = <aclass="code"href="group__messages.html#gae68fefbf9d0404bbf56ae354961fae41"title="Suspends the thread and waits for an incoming message.">chMsgWait</a>());
<aname="l00087"></a>00087 <spanclass="preprocessor"></span><spanclass="keyword">static</span><spanclass="keywordtype">unsigned</span><spanclass="keywordtype">int</span> msg_loop_test(<aclass="code"href="struct_thread.html"title="Structure representing a thread.">Thread</a> *tp) {
<aname="l00088"></a>00088
<aname="l00089"></a>00089 <aclass="code"href="group___s_t_m8___c_o_r_e.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> n = 0;
<aname="l00090"></a>00090 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00091"></a>00091 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00093"></a>00093 (void)<aclass="code"href="group__messages.html#ga29a48a438e97dc47cb798a84e13764cb"title="Sends a message to the specified thread.">chMsgSend</a>(tp, 1);
<aname="l00098"></a>00098 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00099"></a>00099 (void)<aclass="code"href="group__messages.html#ga29a48a438e97dc47cb798a84e13764cb"title="Sends a message to the specified thread.">chMsgSend</a>(tp, 0);
<aname="l00120"></a>00120 threads[0] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[0], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-1, thread1, NULL);
<aname="l00121"></a>00121 n = msg_loop_test(threads[0]);
<aname="l00122"></a>00122 <aclass="code"href="group__test.html#ga361d9d2685d79754206ae8af370a303c"title="Waits for the completion of all the test-spawned threads.">test_wait_threads</a>();
<aname="l00123"></a>00123 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00124"></a>00124 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n);
<aname="l00125"></a>00125 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">" msgs/S, "</span>);
<aname="l00126"></a>00126 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n << 1);
<aname="l00127"></a>00127 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" ctxswc/S"</span>);
<aname="l00128"></a>00128 }
<aname="l00129"></a>00129
<aname="l00130"></a>00130 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk1 = {
<aname="l00154"></a>00154 threads[0] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[0], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+1, thread1, NULL);
<aname="l00155"></a>00155 n = msg_loop_test(threads[0]);
<aname="l00156"></a>00156 <aclass="code"href="group__test.html#ga361d9d2685d79754206ae8af370a303c"title="Waits for the completion of all the test-spawned threads.">test_wait_threads</a>();
<aname="l00157"></a>00157 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00158"></a>00158 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n);
<aname="l00159"></a>00159 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">" msgs/S, "</span>);
<aname="l00160"></a>00160 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n << 1);
<aname="l00161"></a>00161 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" ctxswc/S"</span>);
<aname="l00162"></a>00162 }
<aname="l00163"></a>00163
<aname="l00164"></a>00164 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk2 = {
<aname="l00165"></a>00165 bmk2_gettest,
<aname="l00166"></a>00166 NULL,
<aname="l00167"></a>00167 NULL,
<aname="l00168"></a>00168 bmk2_execute
<aname="l00169"></a>00169 };
<aname="l00170"></a>00170
<aname="l00171"></a>00171 <spanclass="keyword">static</span><aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a> thread2(<spanclass="keywordtype">void</span> *p) {
<aname="l00172"></a>00172
<aname="l00173"></a>00173 <spanclass="keywordflow">return</span> (<aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a>)p;
<aname="l00194"></a>00194 threads[0] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[0], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+1, thread1, NULL);
<aname="l00195"></a>00195 threads[1] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[1], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-2, thread2, NULL);
<aname="l00196"></a>00196 threads[2] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[2], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-3, thread2, NULL);
<aname="l00197"></a>00197 threads[3] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[3], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-4, thread2, NULL);
<aname="l00198"></a>00198 threads[4] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[4], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-5, thread2, NULL);
<aname="l00199"></a>00199 n = msg_loop_test(threads[0]);
<aname="l00200"></a>00200 <aclass="code"href="group__test.html#ga361d9d2685d79754206ae8af370a303c"title="Waits for the completion of all the test-spawned threads.">test_wait_threads</a>();
<aname="l00201"></a>00201 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00202"></a>00202 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n);
<aname="l00203"></a>00203 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">" msgs/S, "</span>);
<aname="l00204"></a>00204 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n << 1);
<aname="l00205"></a>00205 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" ctxswc/S"</span>);
<aname="l00206"></a>00206 }
<aname="l00207"></a>00207
<aname="l00208"></a>00208 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk3 = {
<aname="l00230"></a>00230 <aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a> thread4(<spanclass="keywordtype">void</span> *p) {
<aname="l00231"></a>00231 <aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a> msg;
<aname="l00232"></a>00232 <aclass="code"href="struct_thread.html"title="Structure representing a thread.">Thread</a> *<spanclass="keyword">self</span> = <aclass="code"href="group__threads.html#gaa36662628234799d205ff8c0cc6745c5"title="Returns a pointer to the current Thread.">chThdSelf</a>();
<aname="l00233"></a>00233
<aname="l00234"></a>00234 (void)p;
<aname="l00235"></a>00235 <aclass="code"href="group__system.html#ga9f6573c0763d1e4e97c63c62edad6e42"title="Enters the kernel lock mode.">chSysLock</a>();
<aname="l00237"></a>00237 <aclass="code"href="group__scheduler.html#ga97c1c514b755a1e71caf2f19c1ccf986"title="Puts the current thread to sleep into the specified state.">chSchGoSleepS</a>(<aclass="code"href="group__threads.html#gace00089d9d68ba83bb866396332c15d8"title="Thread state: Thread created in suspended state.">THD_STATE_SUSPENDED</a>);
<aname="l00248"></a>00248 tp = threads[0] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[0], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+1, thread4, NULL);
<aname="l00249"></a>00249 n = 0;
<aname="l00250"></a>00250 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00251"></a>00251 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00263"></a>00263 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00264"></a>00264 <aclass="code"href="group__system.html#ga9f6573c0763d1e4e97c63c62edad6e42"title="Enters the kernel lock mode.">chSysLock</a>();
<aname="l00265"></a>00265 <aclass="code"href="group__scheduler.html#gae47a8819a21ef2d521124e76bfb37c95"title="Wakes up a thread.">chSchWakeupS</a>(tp, <aclass="code"href="group__scheduler.html#gaf28d5427eeeb8f737cc7db495157780c"title="Low level message sent to a thread awakened by a timeout.">RDY_TIMEOUT</a>);
<aname="l00266"></a>00266 <aclass="code"href="group__system.html#ga5a257fa58a09815eb64a45e2dfbdc22e"title="Leaves the kernel lock mode.">chSysUnlock</a>();
<aname="l00267"></a>00267
<aname="l00268"></a>00268 <aclass="code"href="group__test.html#ga361d9d2685d79754206ae8af370a303c"title="Waits for the completion of all the test-spawned threads.">test_wait_threads</a>();
<aname="l00269"></a>00269 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00270"></a>00270 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n * 2);
<aname="l00271"></a>00271 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" ctxswc/S"</span>);
<aname="l00272"></a>00272 }
<aname="l00273"></a>00273
<aname="l00274"></a>00274 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk4 = {
<aname="l00301"></a>00301 <aclass="code"href="group__types.html#ga5f2488ba73e5969cbc0f7033735374ee"title="Priority, use the fastest unsigned type.">tprio_t</a> prio = <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>() - 1;
<aname="l00302"></a>00302 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00303"></a>00303 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00305"></a>00305 <aclass="code"href="group__threads.html#ga94a5727ecdbe0f738dfc8e1ede1c3409"title="Blocks the execution of the invoking thread until the specified thread terminates then the exit code ...">chThdWait</a>(<aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wap, WA_SIZE, prio, thread2, NULL));
<aname="l00310"></a>00310 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00311"></a>00311 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00312"></a>00312 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n);
<aname="l00313"></a>00313 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" threads/S"</span>);
<aname="l00314"></a>00314 }
<aname="l00315"></a>00315
<aname="l00316"></a>00316 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk5 = {
<aname="l00345"></a>00345 <aclass="code"href="group__types.html#ga5f2488ba73e5969cbc0f7033735374ee"title="Priority, use the fastest unsigned type.">tprio_t</a> prio = <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>() + 1;
<aname="l00346"></a>00346 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00347"></a>00347 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00349"></a>00349 <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wap, WA_SIZE, prio, thread2, NULL);
<aname="l00354"></a>00354 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00355"></a>00355 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00356"></a>00356 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n);
<aname="l00357"></a>00357 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" threads/S"</span>);
<aname="l00358"></a>00358 }
<aname="l00359"></a>00359
<aname="l00360"></a>00360 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk6 = {
<aname="l00378"></a>00378 <spanclass="keyword">static</span><aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a> thread3(<spanclass="keywordtype">void</span> *p) {
<aname="l00379"></a>00379
<aname="l00380"></a>00380 (void)p;
<aname="l00381"></a>00381 <spanclass="keywordflow">while</span> (!<aclass="code"href="group__threads.html#ga5591a9f97ff77b40bd5fc29f16f12a6b"title="Verifies if the current thread has a termination request pending.">chThdShouldTerminate</a>())
<aname="l00382"></a>00382 <aclass="code"href="group__semaphores.html#gabc8f7e509870e9b0527a6a68fad71425"title="Performs a wait operation on a semaphore.">chSemWait</a>(&sem1);
<aname="l00393"></a>00393 <aclass="code"href="group__semaphores.html#gafe8fc6155a871074e8017efd908b2c58"title="Initializes a semaphore with the specified counter value.">chSemInit</a>(&sem1, 0);
<aname="l00399"></a>00399 threads[0] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[0], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+5, thread3, NULL);
<aname="l00400"></a>00400 threads[1] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[1], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+4, thread3, NULL);
<aname="l00401"></a>00401 threads[2] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[2], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+3, thread3, NULL);
<aname="l00402"></a>00402 threads[3] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[3], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+2, thread3, NULL);
<aname="l00403"></a>00403 threads[4] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[4], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()+1, thread3, NULL);
<aname="l00404"></a>00404
<aname="l00405"></a>00405 n = 0;
<aname="l00406"></a>00406 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00407"></a>00407 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00409"></a>00409 <aclass="code"href="group__semaphores.html#ga58e266e609cfd3dbc67f299b3ae9debb"title="Performs a reset operation on the semaphore.">chSemReset</a>(&sem1, 0);
<aname="l00414"></a>00414 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00415"></a>00415 <aclass="code"href="group__test.html#ga9415896a22ab615391028ec0852bc678"title="Pends a termination request in all the test-spawned threads.">test_terminate_threads</a>();
<aname="l00416"></a>00416 <aclass="code"href="group__semaphores.html#ga58e266e609cfd3dbc67f299b3ae9debb"title="Performs a reset operation on the semaphore.">chSemReset</a>(&sem1, 0);
<aname="l00417"></a>00417 <aclass="code"href="group__test.html#ga361d9d2685d79754206ae8af370a303c"title="Waits for the completion of all the test-spawned threads.">test_wait_threads</a>();
<aname="l00418"></a>00418
<aname="l00419"></a>00419 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00420"></a>00420 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n);
<aname="l00421"></a>00421 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">" reschedules/S, "</span>);
<aname="l00422"></a>00422 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n * 6);
<aname="l00423"></a>00423 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" ctxswc/S"</span>);
<aname="l00424"></a>00424 }
<aname="l00425"></a>00425
<aname="l00426"></a>00426 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk7 = {
<aname="l00443"></a>00443 <spanclass="keyword">static</span><aclass="code"href="group__types.html#ga35bcb0c321cd7bc45bf1a11fa17ebdd3"title="Message, use signed pointer equivalent.">msg_t</a> thread8(<spanclass="keywordtype">void</span> *p) {
<aname="l00454"></a>00454 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span>(!<aclass="code"href="group__threads.html#ga5591a9f97ff77b40bd5fc29f16f12a6b"title="Verifies if the current thread has a termination request pending.">chThdShouldTerminate</a>());
<aname="l00467"></a>00467 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00468"></a>00468
<aname="l00469"></a>00469 threads[0] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[0], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-1, thread8, (<spanclass="keywordtype">void</span> *)&n);
<aname="l00470"></a>00470 threads[1] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[1], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-1, thread8, (<spanclass="keywordtype">void</span> *)&n);
<aname="l00471"></a>00471 threads[2] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[2], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-1, thread8, (<spanclass="keywordtype">void</span> *)&n);
<aname="l00472"></a>00472 threads[3] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[3], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-1, thread8, (<spanclass="keywordtype">void</span> *)&n);
<aname="l00473"></a>00473 threads[4] = <aclass="code"href="group__threads.html#ga048e588238dd336c6059133b3d0c3435"title="Creates a new thread into a static memory area.">chThdCreateStatic</a>(wa[4], WA_SIZE, <aclass="code"href="group__threads.html#gac71903de6268d886ff58022854b8b6dd"title="Returns the current thread priority.">chThdGetPriority</a>()-1, thread8, (<spanclass="keywordtype">void</span> *)&n);
<aname="l00474"></a>00474
<aname="l00475"></a>00475 <aclass="code"href="group__threads.html#ga5fc3d014124e558bc59c423a74668c8d"title="Delays the invoking thread for the specified number of seconds.">chThdSleepSeconds</a>(1);
<aname="l00476"></a>00476 <aclass="code"href="group__test.html#ga9415896a22ab615391028ec0852bc678"title="Pends a termination request in all the test-spawned threads.">test_terminate_threads</a>();
<aname="l00477"></a>00477 <aclass="code"href="group__test.html#ga361d9d2685d79754206ae8af370a303c"title="Waits for the completion of all the test-spawned threads.">test_wait_threads</a>();
<aname="l00478"></a>00478
<aname="l00479"></a>00479 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00480"></a>00480 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n);
<aname="l00481"></a>00481 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" ctxswc/S"</span>);
<aname="l00482"></a>00482 }
<aname="l00483"></a>00483
<aname="l00484"></a>00484 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk8 = {
<aname="l00511"></a>00511 <aclass="code"href="group__io__queues.html#ga0d3a250e6572526b165d2c61f69230e5"title="Initializes an input queue.">chIQInit</a>(&iq, ib, <spanclass="keyword">sizeof</span>(ib), NULL);
<aname="l00512"></a>00512 n = 0;
<aname="l00513"></a>00513 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00514"></a>00514 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00528"></a>00528 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00529"></a>00529 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00530"></a>00530 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n * 4);
<aname="l00531"></a>00531 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes/S"</span>);
<aname="l00532"></a>00532 }
<aname="l00533"></a>00533
<aname="l00534"></a>00534 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk9 = {
<aname="l00559"></a>00559 <aclass="code"href="group___s_t_m8___c_o_r_e.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> n = 0;
<aname="l00560"></a>00560
<aname="l00561"></a>00561 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00562"></a>00562 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00564"></a>00564 <aclass="code"href="group__system.html#ga9f6573c0763d1e4e97c63c62edad6e42"title="Enters the kernel lock mode.">chSysLock</a>();
<aname="l00565"></a>00565 <aclass="code"href="group__time.html#ga1c44c3a0bc64b2954d95cd98b2e7124e"title="Enables a virtual timer.">chVTSetI</a>(&vt1, 1, tmo, NULL);
<aname="l00566"></a>00566 <aclass="code"href="group__time.html#ga1c44c3a0bc64b2954d95cd98b2e7124e"title="Enables a virtual timer.">chVTSetI</a>(&vt2, 10000, tmo, NULL);
<aname="l00567"></a>00567 <aclass="code"href="group__time.html#ga680d851a74e594cc965101e79891840f"title="Disables a Virtual Timer.">chVTResetI</a>(&vt1);
<aname="l00568"></a>00568 <aclass="code"href="group__time.html#ga680d851a74e594cc965101e79891840f"title="Disables a Virtual Timer.">chVTResetI</a>(&vt2);
<aname="l00569"></a>00569 <aclass="code"href="group__system.html#ga5a257fa58a09815eb64a45e2dfbdc22e"title="Leaves the kernel lock mode.">chSysUnlock</a>();
<aname="l00574"></a>00574 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00575"></a>00575 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00576"></a>00576 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n * 2);
<aname="l00577"></a>00577 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" timers/S"</span>);
<aname="l00578"></a>00578 }
<aname="l00579"></a>00579
<aname="l00580"></a>00580 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk10 = {
<aname="l00604"></a>00604 <aclass="code"href="group__semaphores.html#gafe8fc6155a871074e8017efd908b2c58"title="Initializes a semaphore with the specified counter value.">chSemInit</a>(&sem1, 1);
<aname="l00608"></a>00608 <aclass="code"href="group___s_t_m8___c_o_r_e.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> n = 0;
<aname="l00609"></a>00609
<aname="l00610"></a>00610 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00611"></a>00611 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00613"></a>00613 <aclass="code"href="group__semaphores.html#gabc8f7e509870e9b0527a6a68fad71425"title="Performs a wait operation on a semaphore.">chSemWait</a>(&sem1);
<aname="l00614"></a>00614 <aclass="code"href="group__semaphores.html#ga7ec0cbda23e49e2370e0b91f20baf05e"title="Performs a signal operation on a semaphore.">chSemSignal</a>(&sem1);
<aname="l00615"></a>00615 <aclass="code"href="group__semaphores.html#gabc8f7e509870e9b0527a6a68fad71425"title="Performs a wait operation on a semaphore.">chSemWait</a>(&sem1);
<aname="l00616"></a>00616 <aclass="code"href="group__semaphores.html#ga7ec0cbda23e49e2370e0b91f20baf05e"title="Performs a signal operation on a semaphore.">chSemSignal</a>(&sem1);
<aname="l00617"></a>00617 <aclass="code"href="group__semaphores.html#gabc8f7e509870e9b0527a6a68fad71425"title="Performs a wait operation on a semaphore.">chSemWait</a>(&sem1);
<aname="l00618"></a>00618 <aclass="code"href="group__semaphores.html#ga7ec0cbda23e49e2370e0b91f20baf05e"title="Performs a signal operation on a semaphore.">chSemSignal</a>(&sem1);
<aname="l00619"></a>00619 <aclass="code"href="group__semaphores.html#gabc8f7e509870e9b0527a6a68fad71425"title="Performs a wait operation on a semaphore.">chSemWait</a>(&sem1);
<aname="l00620"></a>00620 <aclass="code"href="group__semaphores.html#ga7ec0cbda23e49e2370e0b91f20baf05e"title="Performs a signal operation on a semaphore.">chSemSignal</a>(&sem1);
<aname="l00625"></a>00625 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00626"></a>00626 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00627"></a>00627 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n * 4);
<aname="l00628"></a>00628 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" wait+signal/S"</span>);
<aname="l00629"></a>00629 }
<aname="l00630"></a>00630
<aname="l00631"></a>00631 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk11 = {
<aname="l00656"></a>00656 <aclass="code"href="group__mutexes.html#gac55fe4d05aa6bbeb31594193d2e4d2b6"title="Initializes s Mutex structure.">chMtxInit</a>(&mtx1);
<aname="l00660"></a>00660 <aclass="code"href="group___s_t_m8___c_o_r_e.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> n = 0;
<aname="l00661"></a>00661
<aname="l00662"></a>00662 <aclass="code"href="group__test.html#gac067dd7ee03b2c56d4d26ce9815ed3f7"title="Delays execution until next system time tick.">test_wait_tick</a>();
<aname="l00663"></a>00663 <aclass="code"href="group__test.html#gad4ce516117b9a9c8cd884c192c8f9bb1"title="Starts the test timer.">test_start_timer</a>(1000);
<aname="l00665"></a>00665 <aclass="code"href="group__mutexes.html#gafa06b82e3496c44eb7bf31d9f1b655ba"title="Locks the specified mutex.">chMtxLock</a>(&mtx1);
<aname="l00666"></a>00666 <aclass="code"href="group__mutexes.html#gae9ae07165126c9f6c0ce0b17bdb53669"title="Unlocks the next owned mutex in reverse lock order.">chMtxUnlock</a>();
<aname="l00667"></a>00667 <aclass="code"href="group__mutexes.html#gafa06b82e3496c44eb7bf31d9f1b655ba"title="Locks the specified mutex.">chMtxLock</a>(&mtx1);
<aname="l00668"></a>00668 <aclass="code"href="group__mutexes.html#gae9ae07165126c9f6c0ce0b17bdb53669"title="Unlocks the next owned mutex in reverse lock order.">chMtxUnlock</a>();
<aname="l00669"></a>00669 <aclass="code"href="group__mutexes.html#gafa06b82e3496c44eb7bf31d9f1b655ba"title="Locks the specified mutex.">chMtxLock</a>(&mtx1);
<aname="l00670"></a>00670 <aclass="code"href="group__mutexes.html#gae9ae07165126c9f6c0ce0b17bdb53669"title="Unlocks the next owned mutex in reverse lock order.">chMtxUnlock</a>();
<aname="l00671"></a>00671 <aclass="code"href="group__mutexes.html#gafa06b82e3496c44eb7bf31d9f1b655ba"title="Locks the specified mutex.">chMtxLock</a>(&mtx1);
<aname="l00672"></a>00672 <aclass="code"href="group__mutexes.html#gae9ae07165126c9f6c0ce0b17bdb53669"title="Unlocks the next owned mutex in reverse lock order.">chMtxUnlock</a>();
<aname="l00677"></a>00677 <spanclass="preprocessor"></span> } <spanclass="keywordflow">while</span> (!<aclass="code"href="group__test.html#gad74c89f8a5049c1055b6a0f0596424b0"title="Set to TRUE when the test timer reaches its deadline.">test_timer_done</a>);
<aname="l00678"></a>00678 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Score : "</span>);
<aname="l00679"></a>00679 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(n * 4);
<aname="l00680"></a>00680 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" lock+unlock/S"</span>);
<aname="l00681"></a>00681 }
<aname="l00682"></a>00682
<aname="l00683"></a>00683 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk12 = {
<aname="l00705"></a>00705 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- System: "</span>);
<aname="l00706"></a>00706 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_ready_list.html"title="Ready list header.">ReadyList</a>) + <spanclass="keyword">sizeof</span>(<aclass="code"href="struct_v_t_list.html"title="Virtual timers list header.">VTList</a>) + <aclass="code"href="group__core.html#gaf470de5c7ee71a407e5c7e0c5825af35"title="Stack size for the system idle thread.">IDLE_THREAD_STACK_SIZE</a> +
<aname="l00709"></a>00709 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00710"></a>00710 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Thread: "</span>);
<aname="l00711"></a>00711 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_thread.html"title="Structure representing a thread.">Thread</a>));
<aname="l00712"></a>00712 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00713"></a>00713 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Timer : "</span>);
<aname="l00714"></a>00714 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_virtual_timer.html"title="Virtual Timer descriptor structure.">VirtualTimer</a>));
<aname="l00715"></a>00715 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00716"></a>00716 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Semaph: "</span>);
<aname="l00717"></a>00717 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_semaphore.html"title="Semaphore structure.">Semaphore</a>));
<aname="l00718"></a>00718 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00720"></a>00720 <spanclass="preprocessor"></span><aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- EventS: "</span>);
<aname="l00721"></a>00721 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_event_source.html"title="Event Source structure.">EventSource</a>));
<aname="l00722"></a>00722 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00723"></a>00723 <aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- EventL: "</span>);
<aname="l00724"></a>00724 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_event_listener.html"title="Event Listener structure.">EventListener</a>));
<aname="l00725"></a>00725 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00728"></a>00728 <spanclass="preprocessor"></span><aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Mutex : "</span>);
<aname="l00729"></a>00729 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_mutex.html"title="Mutex structure.">Mutex</a>));
<aname="l00730"></a>00730 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00733"></a>00733 <spanclass="preprocessor"></span><aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- CondV.: "</span>);
<aname="l00734"></a>00734 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_cond_var.html"title="CondVar structure.">CondVar</a>));
<aname="l00735"></a>00735 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00738"></a>00738 <spanclass="preprocessor"></span><aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- Queue : "</span>);
<aname="l00739"></a>00739 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(<aclass="code"href="struct_generic_queue.html"title="Generic I/O queue structure.">GenericQueue</a>));
<aname="l00740"></a>00740 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00743"></a>00743 <spanclass="preprocessor"></span><aclass="code"href="group__test.html#ga65f8ec6aa3d624a48d498f04efa2dce8"title="Prints a line without final end-of-line.">test_print</a>(<spanclass="stringliteral">"--- MailB.: "</span>);
<aname="l00744"></a>00744 <aclass="code"href="group__test.html#ga5551ca9506fe131cae2e4036c512cc98"title="Prints a decimal unsigned number.">test_printn</a>(<spanclass="keyword">sizeof</span>(Mailbox));
<aname="l00745"></a>00745 <aclass="code"href="group__test.html#gaf5e5d95b5ea7bd33f91ca52ee8088f4e"title="Prints a line.">test_println</a>(<spanclass="stringliteral">" bytes"</span>);
<aname="l00749"></a>00749 <spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> testbmk13 = {
<aname="l00759"></a><aclass="code"href="testbmk_8h.html#abecf662105227d7c7931ddfa4e05f002">00759</a><spanclass="keyword">const</span><spanclass="keyword">struct </span><aclass="code"href="structtestcase.html"title="Structure representing a test case.">testcase</a> * <spanclass="keyword">const</span><aclass="code"href="testbmk_8c.html#a0872e725814c81578940e743e9a1cd61"title="Test sequence for benchmarks.">patternbmk</a>[] = {
Generated on Sun Nov 28 2010 14:09:49 for ChibiOS/RT by <ahref="http://www.doxygen.org/index.html"><imgsrc="doxygen.png"alt="doxygen"align="middle"border="0"></a> 1.7.1</small></address>