Changeset c4c6025 in mainline for uspace/srv/hid/isdv4_tablet/main.c
- Timestamp:
- 2017-11-21T18:40:27Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 74017ce, d51a0d6, ee44809
- Parents:
- afec1be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/isdv4_tablet/main.c
rafec1be rc4c6025 27 27 */ 28 28 29 #include < char_dev_iface.h>29 #include <async.h> 30 30 #include <errno.h> 31 #include <ipc/serial_ctl.h> 31 #include <fibril_synch.h> 32 #include <io/serial.h> 33 #include <ipc/mouseev.h> 32 34 #include <loc.h> 35 #include <stddef.h> 33 36 #include <stdio.h> 34 #include <fibril_synch.h>35 #include <abi/ipc/methods.h>36 #include <ipc/mouseev.h>37 #include <inttypes.h>38 37 #include <task.h> 39 38 … … 179 178 sysarg_t baud = 38400; 180 179 service_id_t svc_id; 180 serial_t *serial; 181 181 char *serial_port_name = NULL; 182 182 … … 268 268 if (!sess) { 269 269 fprintf(stderr, "Failed connecting to service\n"); 270 } 271 272 async_exch_t *exch = async_exchange_begin(sess); 273 rc = async_req_4_0(exch, SERIAL_SET_COM_PROPS, baud, 274 SERIAL_NO_PARITY, 8, 1); 275 async_exchange_end(exch); 276 270 return 2; 271 } 272 273 rc = serial_open(sess, &serial); 274 if (rc != EOK) { 275 fprintf(stderr, "Failed opening serial port\n"); 276 return 2; 277 } 278 279 rc = serial_set_comm_props(serial, baud, SERIAL_NO_PARITY, 8, 1); 277 280 if (rc != EOK) { 278 281 fprintf(stderr, "Failed setting serial properties\n");
Note:
See TracChangeset
for help on using the changeset viewer.