Tests: USB: Update code comments

pull/9768/head
Filip Jagodzinski 2018-10-17 14:40:41 +02:00 committed by Russ Butler
parent edf360d2fc
commit 3d4d10191c
2 changed files with 8 additions and 2 deletions

View File

@ -35,8 +35,16 @@ MSG_KEY_LOOPBACK = 'loopback'
MSG_KEY_CHANGE_LINE_CODING = 'change_lc'
RX_BUFF_SIZE = 32
# This delay eliminates the possibility of the device detecting
# the port being closed when still waiting for data.
TERM_CLOSE_DELAY = 0.01
# A duration the serial terminal is open on the host side
# during terminal reopen test.
TERM_REOPEN_DELAY = 0.1
# 6 (baud) + 2 (bits) + 1 (parity) + 1 (stop) + 3 * comma
LINE_CODING_STRLEN = 13

View File

@ -33,9 +33,7 @@
#define USB_SERIAL_PID 0x2012
#define MSG_KEY_LEN 24
#define MSG_VALUE_DUMMY "0"
#define MSG_KEY_DEVICE_READY "ready"
#define MSG_KEY_SERIAL_NUMBER "usb_dev_sn"
#define MSG_KEY_PORT_OPEN_WAIT "port_open_wait"