summaryrefslogtreecommitdiff
path: root/firmware/test/kernel/main.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-05-11 21:56:33 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-05-11 21:56:33 +0000
commitb133675d3e39ee9e25f4c6e919b88ceb3e9d51c0 (patch)
treebb646f6ea97db10260026601f8b64a4855194973 /firmware/test/kernel/main.c
parentf70f06cc6bceb53f27273305575d38430ce4243f (diff)
Cleaned up a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@547 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/kernel/main.c')
-rw-r--r--firmware/test/kernel/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/test/kernel/main.c b/firmware/test/kernel/main.c
index 46a77eae16..b651324ae1 100644
--- a/firmware/test/kernel/main.c
+++ b/firmware/test/kernel/main.c
@@ -55,16 +55,16 @@ int main(void)
SCR1 &= ~0x80;
IPRE |= 0xf000; /* Set to highest priority */
- set_irq_level(0);
-
debugf("OK. Let's go\n");
kernel_init();
+ set_irq_level(0);
+
tick_add_task(testfunc);
debugf("sleeping 10s...\n");
- sleep(10000);
+ sleep(HZ*10);
debugf("woke up\n");
queue_init(&main_q);
@@ -84,7 +84,7 @@ void t1(void)
debugf("Thread 1 started\n");
while(1)
{
- sleep(100);
+ sleep(HZ);
debugf("Thread 1 posting an event\n");
queue_post(&main_q, 1234, 0);
queue_post(&main_q, 5678, 0);
@@ -96,7 +96,7 @@ void t2(void)
debugf("Thread 2 started\n");
while(1)
{
- sleep(300);
+ sleep(HZ*3);
debugf("Thread 2 awakened\n");
}
}