summaryrefslogtreecommitdiff
path: root/util/uut/com_port.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/uut/com_port.h')
-rw-r--r--util/uut/com_port.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/uut/com_port.h b/util/uut/com_port.h
index 36331f2fb6..ca52bdd234 100644
--- a/util/uut/com_port.h
+++ b/util/uut/com_port.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 The Chromium OS Authors. All rights reserved.
+ * Copyright 2018 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -35,10 +35,10 @@ extern "C" {
#define COMP_PORT_PREFIX_3 "pts"
struct comport_fields {
- uint32_t baudrate; /* Baudrate at which running */
- tcflag_t byte_size; /* Number of bits/byte, 4-8 */
- tcflag_t parity; /* 0-4=None,Odd,Even,Mark,Space */
- uint8_t stop_bits; /* 0,1,2 = 1, 1.5, 2 */
+ uint32_t baudrate; /* Baudrate at which running */
+ tcflag_t byte_size; /* Number of bits/byte, 4-8 */
+ tcflag_t parity; /* 0-4=None,Odd,Even,Mark,Space */
+ uint8_t stop_bits; /* 0,1,2 = 1, 1.5, 2 */
uint8_t flow_control; /* 0-none, 1-SwFlowControl,2-HwFlowControl */
};
@@ -60,7 +60,7 @@ struct comport_fields {
*---------------------------------------------------------------------------
*/
int com_port_open(const char *com_port_dev_name,
- struct comport_fields com_port_fields);
+ struct comport_fields com_port_fields);
/*---------------------------------------------------------------------------
* Function: int com_config_uart()
@@ -110,7 +110,7 @@ bool com_port_close(int device_id);
*---------------------------------------------------------------------------
*/
bool com_port_write_bin(int device_id, const uint8_t *buffer,
- uint32_t buf_size);
+ uint32_t buf_size);
/*---------------------------------------------------------------------------
* Function: uint32_t com_port_read_bin()