hg: dio/dev: DIO-17:UART.generateBreak() is not implemented correctly

olga.milovskaya at oracle.com olga.milovskaya at oracle.com
Wed Mar 9 13:17:45 UTC 2016


Changeset: 19eec3548675
Author:    onazarkina
Date:      2016-03-09 16:17 +0300
URL:       http://hg.openjdk.java.net/dio/dev/rev/19eec3548675

DIO-17:UART.generateBreak() is not implemented correctly
Summary: This change resolves an issue with invalid DIO implementation of UART.generateBreak(...) method. The result of the call to ioctl(..., TCSBRKP, positive) is undefined. Instead, an approach with the sequency is taken: ioctl(..., TIOCSBRK, 0); followed by usleep() followed by ioctl(..., TIOCCBRK, 0);
Reviewed-by:snazarki
Contributed-by:bkvartsk

! src/share/linux/native/com/oracle/dio/uart/serial.c
! src/share/linux/native/com/oracle/dio/uart/uart.c



More information about the dio-dev mailing list