Ignore:
Timestamp:
2010-05-06T10:31:02Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ca97cad
Parents:
bb864a0
Message:

fixed some bugs; now it is possible to read from serial port using character interface, this might be tested with the test_serial application

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/device/char.c

    rbb864a0 rba95e8f  
    4747        async_serialize_start();
    4848       
    49         printf("calling interface %d\n", DEV_IFACE_ID(CHAR_DEV_IFACE));
    5049        aid_t req = async_send_1(dev_phone, DEV_IFACE_ID(CHAR_DEV_IFACE), CHAR_READ_DEV, &answer);
    5150       
    52         printf("async_data_read_start \n");
    5351        int rc = async_data_read_start(dev_phone, buf, len);
    5452       
    55         printf("async_data_read_start, rc = %d\n", rc);
    5653        if (rc != EOK) {
    5754                ipcarg_t rc_orig;
     
    6663        }
    6764       
    68         printf("async_wait_for(req, &rc);\n", rc);
    6965        async_wait_for(req, &rc);
    70         printf("async_serialize_end();\n", rc);
    7166        async_serialize_end();
    7267       
     
    7570        }
    7671       
    77         printf("IPC_GET_ARG1(answer);\n", rc);
    7872        return IPC_GET_ARG1(answer);
    7973}
Note: See TracChangeset for help on using the changeset viewer.