Changeset ecc6323 in mainline


Ignore:
Timestamp:
2012-01-03T15:09:52Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a455321
Parents:
1ff1ee1
Message:

xtkbd: Ignore AT command response.

Fixes warnings on LED indicator change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/xtkbd/xtkbd.c

    r1ff1ee1 recc6323  
    4343
    4444#include "xtkbd.h"
     45
    4546/** Scancode set 1 table. */
    4647static const int scanmap_simple[] = {
     
    153154};
    154155
    155 #define SCANCODE_SET_EXTENDED 0xe0
     156#define KBD_ACK   0xfa
     157#define KBD_RESEND   0xfe
     158#define KBD_SCANCODE_SET_EXTENDED   0xe0
    156159/** Scancode set 1 extended codes table */
    157160static const int scanmap_e0[] = {
     
    263266                ssize_t size = char_dev_read(kbd->parent_sess, &code, 1);
    264267
    265                 if (code == SCANCODE_SET_EXTENDED) {
     268                /** Ignore AT command reply */
     269                if (code == KBD_ACK || code == KBD_RESEND) {
     270                        continue;
     271                }
     272
     273                if (code == KBD_SCANCODE_SET_EXTENDED) {
    266274                        map = scanmap_e0;
    267275                        map_size = sizeof(scanmap_e0) / sizeof(int);
Note: See TracChangeset for help on using the changeset viewer.