Changeset ca97cad in mainline for uspace/app/test_serial/test_serial.c
- Timestamp:
- 2010-05-06T11:42:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab1aa871
- Parents:
- ba95e8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/test_serial/test_serial.c
rba95e8f rca97cad 45 45 #include <devman.h> 46 46 #include <device/char.h> 47 #include <string.h> 47 48 48 49 #define NAME "test serial" … … 104 105 if (read > 0) { 105 106 buf[read] = 0; 106 printf(buf); 107 printf(buf); 108 // write data back to the device to test the opposite direction of data transfer 109 write_dev(phone, buf, read); 107 110 } else { 108 111 usleep(100000); 109 112 } 110 113 } 114 115 char *the_end = "\n---------\nTHE END\n---------\n"; 116 write_dev(phone, the_end, str_size(the_end)); 111 117 112 118 devman_hangup_phone(DEVMAN_CLIENT);
Note:
See TracChangeset
for help on using the changeset viewer.