Changeset 8b473ce in mainline for genarch/src/i8042/i8042.c


Ignore:
Timestamp:
2006-04-14T14:28:55Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c624b96
Parents:
9e1b581
Message:

Status testing version of clear-buffer routine for i8042

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/i8042/i8042.c

    r9e1b581 r8b473ce  
    282282        chardev_initialize("i8042_kbd", &kbrd, &ops);
    283283        stdin = &kbrd;
     284        /*
     285        * Clear input buffer
     286        */
    284287        {
    285288                int a=0;
    286                 while(a<20) {i8042_data_read();a++;}  /*Clear input buffer*/
     289                while((i8042_status_read()&i8042_BUFFER_FULL_MASK)&&(a<20)) {
     290                i8042_data_read();
     291                a++;
     292                } 
    287293        }
    288294}
Note: See TracChangeset for help on using the changeset viewer.