5651940d02
This is a follow-up to PR #6548, which added UART CTS/RTS support for Tiva (TI TM4C12x) microcontrollers. This follow-up makes it possible, when termios support is enabled with CONFIG_SERIAL_TERMIOS and CTS/RTS support is enabled with CONFIG_SERIAL_OFLOWCONTROL and/or CONFIG_SERIAL_IFLOWCONTROL, to query whether CTS/RTS are on/off at runtime by utilizing ioctl TCGETS and to turn CTS/RTS on/off at runtime by utilizing ioctl TCSETS. * arch/arm/src/tiva/common/tiva_serial.c (up_set_format): Because this function is called from ioctl TCSETS to modify UART settings, and that IOCTL now respects CCTS_OFLOW and CRTS_IFLOW, move setting/clearing of Tiva UART's CTL register's RTSEN and CTSEN bits here... (up_setup): ...from here. (up_ioctl): For TCGETS, populate CCTS_OFLOW and CRTS_IFLOW bits as appropriate. For TCSETS, populate priv's oflow and iflow from supplied CCTS_OFLOW and CRTS_IFLOW bits. Thanks to Petro Karashchenko for review and suggested fixes. Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com> |
||
---|---|---|
.. | ||
include | ||
src | ||
Kconfig |