Changeset 0f816af6 in mainline
- Timestamp:
- 2017-12-16T00:13:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 17f8abc
- Parents:
- 2bd04b2
- Location:
- uspace/app/tmon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tmon/list.c
r2bd04b2 r0f816af6 39 39 #include <loc.h> 40 40 #include <usb/diag/diag.h> 41 #include <usb/diag/iface.h>42 #include <errno.h>43 41 #include "commands.h" 44 42 -
uspace/app/tmon/test.c
r2bd04b2 r0f816af6 41 41 #include <str_error.h> 42 42 #include <usb/diag/diag.h> 43 #include <usb/diag/iface.h> 43 44 #include "commands.h" 44 45 … … 115 116 116 117 static int bulk_worker(devman_handle_t fun) { 118 async_sess_t *sess = usb_diag_connect(fun); 119 async_exch_t *exch = async_exchange_begin(sess); 120 117 121 // TODO: do some testing 122 int y; 123 int rc = usb_diag_test(exch, 4200, &y); 124 125 if (rc) { 126 printf(NAME ": %s\n", str_error(rc)); 127 } else { 128 printf("The number is %d.\n", y); 129 } 130 131 async_exchange_end(exch); 132 usb_diag_disconnect(sess); 118 133 return 0; 119 134 }
Note:
See TracChangeset
for help on using the changeset viewer.