Changeset b7fd2a0 in mainline for uspace/lib/c/generic/io/serial.c
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/serial.c
r36f0738 rb7fd2a0 41 41 * @return EOK on success, ENOMEM if out of memory, EIO on I/O error 42 42 */ 43 int serial_open(async_sess_t *sess, serial_t **rserial)43 errno_t serial_open(async_sess_t *sess, serial_t **rserial) 44 44 { 45 45 serial_t *serial; … … 68 68 69 69 /** Set serial port communication properties. */ 70 int serial_set_comm_props(serial_t *serial, unsigned rate,70 errno_t serial_set_comm_props(serial_t *serial, unsigned rate, 71 71 serial_parity_t parity, unsigned datab, unsigned stopb) 72 72 { 73 73 async_exch_t *exch = async_exchange_begin(serial->sess); 74 74 75 int rc = async_req_4_0(exch, SERIAL_SET_COM_PROPS, rate, parity,75 errno_t rc = async_req_4_0(exch, SERIAL_SET_COM_PROPS, rate, parity, 76 76 datab, stopb); 77 77 … … 81 81 82 82 /** Get serial port communication properties. */ 83 int serial_get_comm_props(serial_t *serial, unsigned *rrate,83 errno_t serial_get_comm_props(serial_t *serial, unsigned *rrate, 84 84 serial_parity_t *rparity, unsigned *rdatab, unsigned *rstopb) 85 85 { … … 87 87 sysarg_t rate, parity, datab, stopb; 88 88 89 int rc = async_req_0_4(exch, SERIAL_GET_COM_PROPS, &rate, &parity,89 errno_t rc = async_req_0_4(exch, SERIAL_GET_COM_PROPS, &rate, &parity, 90 90 &datab, &stopb); 91 91
Note:
See TracChangeset
for help on using the changeset viewer.