source: svn/zas_dstar/hal/os/test/mymain.c @ 22

Last change on this file since 22 was 22, checked in by phkim, 11 years ago
  1. phkim
  2. newcon3sk 를 kctv 로 브랜치 함
File size: 350 bytes
Line 
1#include <stdio.h>
2#include "dstoslayer.h"
3
4void test_thread(void *test)
5{
6        int i;
7        for(i=0;i<10;i++){
8                printf("%d\n",i);
9                sleep(1);
10        } 
11        printf("child thread ended\n");
12}
13
14void main()
15{
16        UINT32  taskid;
17        printf("hello\n");
18
19        taskid = OS_SpawnTask(test_thread, "test", TASK_PRIOR_NORMAL, 1000, NULL);
20        sleep(20); 
21        printf("main thread ended\n");
22}
Note: See TracBrowser for help on using the repository browser.