Subversion Repositories freemyipod

Rev

Rev 503 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 503 Rev 835
Line 41... Line 41...
41
static int packets IBSS_ATTR;
41
static int packets IBSS_ATTR;
42
static int collect IBSS_ATTR;
42
static int collect IBSS_ATTR;
43
static int lastdiff IBSS_ATTR;
43
static int lastdiff IBSS_ATTR;
44
 
44
 
45
 
45
 
46
void clickwheel_thread(void) ICODE_ATTR;
46
void clickwheel_thread(void* arg0, void* arg1, void* arg2, void* arg3) ICODE_ATTR;
47
void clickwheel_thread()
47
void clickwheel_thread(void* arg0, void* arg1, void* arg2, void* arg3)
48
{
48
{
49
    int i;
49
    int i;
50
    while (true)
50
    while (true)
51
    {
51
    {
52
        wakeup_wait(&clickwheel_wakeup, TIMEOUT_BLOCK);
52
        wakeup_wait(&clickwheel_wakeup, TIMEOUT_BLOCK);
Line 152... Line 152...
152
        sleep(20000);
152
        sleep(20000);
153
    }
153
    }
154
    while (WHEEL0C & 4);
154
    while (WHEEL0C & 4);
155
    thread_create(&clickwheel_thread_handle, "Clickwheel dispatcher",
155
    thread_create(&clickwheel_thread_handle, "Clickwheel dispatcher",
156
                  clickwheel_thread, clickwheel_stack,
156
                  clickwheel_thread, clickwheel_stack,
157
                  sizeof(clickwheel_stack), OS_THREAD, 200, true);
157
                  sizeof(clickwheel_stack), OS_THREAD, 200, true,
-
 
158
                  NULL, NULL, NULL, NULL);
158
}
159
}
159
 
160
 
160
void INT_WHEEL(void) ICODE_ATTR;
161
void INT_WHEEL(void) ICODE_ATTR;
161
void INT_WHEEL()
162
void INT_WHEEL()
162
{
163
{