Changeset 6d15572 in mainline for uspace/srv/hid/input/port/chardev.c


Ignore:
Timestamp:
2017-11-08T08:04:08Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5b6fb5
Parents:
cecba66e
Message:

Move receiving side of ski console support to a separate driver, ski-con. Add ski platform driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/chardev.c

    rcecba66e r6d15572  
    5959/** List of devices to try connecting to. */
    6060static const char *in_devs[] = {
    61         "char/s3c24xx_uart"
     61        /** S3C24xx UART - Openmoko debug console */
     62        "char/s3c24xx_uart",
     63        /** Ski console */
     64        "devices/\\hw\\console\\a"
    6265};
    6366
     
    7477       
    7578        for (i = 0; i < num_devs; i++) {
     79                printf("%s: Probe service '%s'\n", NAME, in_devs[i]);
    7680                rc = loc_service_get_id(in_devs[i], &service_id, 0);
    77                 if (rc == EOK)
     81                if (rc == EOK) {
     82                        printf("%s: success \n", NAME);
    7883                        break;
     84                }
    7985        }
    8086       
     
    109115                return -1;
    110116        }
     117        printf("%s: Connected input device\n", NAME);
    111118       
    112119        return 0;
Note: See TracChangeset for help on using the changeset viewer.