Annotation of researchv9/jerq/src/lib/sys/buttons.c, revision 1.1

1.1     ! root        1: #include <jerq.h>
        !             2: 
        !             3: binit(){
        !             4:        DUART->ipc_acr=0x8f;    /* allow change of state interrupt */
        !             5:        /* enable mouse and 60 hz. interrupts */
        !             6:        DUART->is_imr=0x80;
        !             7: }
        !             8: auto4(){
        !             9:        register unsigned char c;
        !            10:        c=~DUART->ip_opcr;
        !            11:        mouse.buttons=((c&0x8)>>1)|(c&0x3);
        !            12: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.