8b2c8c73e8
In the lower half UART driver for Tiva architecture (TM4C12x), adding the TIOCxBRK ioctl calls, which allow an application to transmit a BSD compatible line BREAK. TIOCSBRK starts the BREAK and TIOCCBRK ends it. This architecture supports BSD-style BREAK in hardware. We write to the BRK bit (bit 0) of the UART Line Control register (UARTLCRH) to start the BREAK, which begins after the UART finishes shifting out the current character in progress, if any, including its stop bit(s), and continues indefinitely until we write to the BRK bit again to stop the BREAK. * arch/arm/src/tiva/Kconfig (config TIVA_UART_BREAKS): New. Appears as CONFIG_TIVA_UART_BREAKS in code. * arch/arm/src/tiva/common/tiva_serial.c (struct up_dev_s): Add new field 'brk' to indicate line break in progress when built with CONFIG_TIVA_UART_BREAKS. (up_ioctl): Add cases for TIOCSBRK to turn BSD-compatible break on unconditionally and TIOCCBRK to turn break off unconditionally. (up_txint): Block enabling TX interrupt if line break in progress. This is similar to the STM32F7 implementation. |
||
---|---|---|
.. | ||
include | ||
src | ||
Kconfig |