Subversion Repositories freemyipod

Rev

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

Rev 427 Rev 429
Line 30... Line 30...
30
#include "contextswitch.h"
30
#include "contextswitch.h"
31
 
31
 
32
 
32
 
33
static struct wakeup clickwheel_wakeup IBSS_ATTR;
33
static struct wakeup clickwheel_wakeup IBSS_ATTR;
34
static volatile uint32_t clickwheel_packet IBSS_ATTR;
34
static volatile uint32_t clickwheel_packet IBSS_ATTR;
-
 
35
static struct scheduler_thread clickwheel_thread_handle;
35
static uint32_t clickwheel_stack[0x100];
36
static uint32_t clickwheel_stack[0x100] STACK_ATTR;
36
static bool oldtouched IBSS_ATTR;
37
static bool oldtouched IBSS_ATTR;
37
static int oldpos IBSS_ATTR;
38
static int oldpos IBSS_ATTR;
38
static int oldbuttons IBSS_ATTR;
39
static int oldbuttons IBSS_ATTR;
39
static uint32_t lastpacket IBSS_ATTR;
40
static uint32_t lastpacket IBSS_ATTR;
40
static int packets IBSS_ATTR;
41
static int packets IBSS_ATTR;
Line 145... Line 146...
145
    PCON10 = (PCON10 & ~0xFF0) | 0x10;
146
    PCON10 = (PCON10 & ~0xFF0) | 0x10;
146
    PDAT10 |= 2;
147
    PDAT10 |= 2;
147
    WHEELTX = 0x8000023A;
148
    WHEELTX = 0x8000023A;
148
    WHEEL04 |= 1;
149
    WHEEL04 |= 1;
149
    PDAT10 &= ~2;
150
    PDAT10 &= ~2;
150
    thread_create("Clickwheel dispatcher", clickwheel_thread, clickwheel_stack,
151
    thread_create(&clickwheel_thread_handle, "Clickwheel dispatcher",
-
 
152
                  clickwheel_thread, clickwheel_stack,
151
                  sizeof(clickwheel_stack), OS_THREAD, 200, true);
153
                  sizeof(clickwheel_stack), OS_THREAD, 200, true);
152
}
154
}
153
 
155
 
154
void INT_WHEEL(void) ICODE_ATTR;
156
void INT_WHEEL(void) ICODE_ATTR;
155
void INT_WHEEL()
157
void INT_WHEEL()