aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-04 09:50:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-04 09:50:46 +0000
commite5bd63772994b9b9aa448c43870acf3580efaab7 (patch)
treec9915761bc280883b5dd1ff265ddbbac336aef7d /test
parent0b7254491c8d987d2d43b55b7699ba8ce7b42307 (diff)
downloadChibiOS-e5bd63772994b9b9aa448c43870acf3580efaab7.tar.gz
ChibiOS-e5bd63772994b9b9aa448c43870acf3580efaab7.tar.bz2
ChibiOS-e5bd63772994b9b9aa448c43870acf3580efaab7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@332 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/testbmk.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/testbmk.c b/test/testbmk.c
index 8631138d1..a75ccddc2 100644
--- a/test/testbmk.c
+++ b/test/testbmk.c
@@ -61,7 +61,7 @@ static void bmk1_teardown(void) {
static void bmk1_execute(void) {
uint32_t n;
- threads[0] = chThdCreate(chThdGetPriority()-1, 0, wa[0], STKSIZE, thread1, 0);
+ threads[0] = chThdCreateFast(chThdGetPriority()-1, wa[0], STKSIZE, thread1);
n = msg_loop_test(threads[0]);
chThdTerminate(threads[0]);
test_wait_threads();
@@ -93,7 +93,7 @@ static void bmk2_teardown(void) {
static void bmk2_execute(void) {
uint32_t n;
- threads[0] = chThdCreate(chThdGetPriority()+1, 0, wa[0], STKSIZE, thread1, 0);
+ threads[0] = chThdCreateFast(chThdGetPriority()+1, wa[0], STKSIZE, thread1);
n = msg_loop_test(threads[0]);
chThdTerminate(threads[0]);
test_wait_threads();
@@ -130,11 +130,11 @@ static void bmk3_teardown(void) {
static void bmk3_execute(void) {
uint32_t n;
- threads[0] = chThdCreate(chThdGetPriority()+1, 0, wa[0], STKSIZE, thread1, 0);
- threads[1] = chThdCreate(chThdGetPriority()-2, 0, wa[1], STKSIZE, thread2, 0);
- threads[2] = chThdCreate(chThdGetPriority()-3, 0, wa[2], STKSIZE, thread2, 0);
- threads[3] = chThdCreate(chThdGetPriority()-4, 0, wa[3], STKSIZE, thread2, 0);
- threads[4] = chThdCreate(chThdGetPriority()-5, 0, wa[4], STKSIZE, thread2, 0);
+ threads[0] = chThdCreateFast(chThdGetPriority()+1, wa[0], STKSIZE, thread1);
+ threads[1] = chThdCreateFast(chThdGetPriority()-2, wa[1], STKSIZE, thread2);
+ threads[2] = chThdCreateFast(chThdGetPriority()-3, wa[2], STKSIZE, thread2);
+ threads[3] = chThdCreateFast(chThdGetPriority()-4, wa[3], STKSIZE, thread2);
+ threads[4] = chThdCreateFast(chThdGetPriority()-5, wa[4], STKSIZE, thread2);
n = msg_loop_test(threads[0]);
chThdTerminate(threads[0]);
test_wait_threads();
@@ -171,7 +171,7 @@ static void bmk4_execute(void) {
test_wait_tick();
test_start_timer(1000);
do {
- chThdWait(chThdCreate(prio, 0, wap, STKSIZE, thread2, NULL));
+ chThdWait(chThdCreateFast(prio, wap, STKSIZE, thread2));
n++;
#if defined(WIN32)
ChkIntSources();