summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/tms570/console/tms570-sci.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-10-02bsp/tms570: ensure that change of SCI baudrate is not applied in the middle ↵Pavel Pisa1-2/+23
of character Tx. The rtems_monitor_task() setups/updates termios attributes of the opened TTY and if there is ongoing some other output it leads to the stuck. It would be better to use some termios API function which would call drainOutput() in rtems/cpukit/libcsupport/src/termios.c. But functionality is not accessible outside of core termios implementation. The loop waiting for last character to be sent has to be there anyway because hardware does not provide Tx machine/shift register empty interrupt. Closes #2794
2016-10-02bsp/tms570: include complete peripheral initialization to SCI driver.Pavel Pisa1-2/+36
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2015-11-18bsp/tms570: unite code duplication in pinmux and clean SCI close per review ↵Premysl Houdek1-5/+7
remarks. Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-11-18bsp/tms570: fixed sci driver freeze when closing terminal bugPremysl Houdek1-3/+5
tms570_sci_interrupt_last_close: do not wait for old data transmit. Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-07-20bsp/tms570 Use bitfields instead of hard-coded valuesPremysl Houdek1-16/+18
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-07-16bsp/tms570: source changes reflecting new headers.Premysl Houdek1-26/+29
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-02-04arm/tms570: sci context has to be writable because it holds state variable.Pavel Pisa1-3/+3
The structure tms570_sci_context holds state variable tx_chars_in_hw which holds if and how many characters (in the optional FIFO support for some Ti SCIs) are submitted into hardware. When field is not writable then code breaks when RTEMS is build for Flash area. The problem found and analyzed by Martin Galvan from tallertechnologies. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2014-10-07termios: Partially hide rtems_termios_ttySebastian Huber1-31/+43
Move interrupt lock to device context and expose only this structure to the read, write and set attributes device handler. This makes these device handler independent of the general Termios infrastructure suitable for direct use in printk() support.
2014-10-07termios: Separate flow control from normal handlerSebastian Huber1-4/+1
2014-08-20BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137)Premysl Houdek1-0/+559
Included variants: tms570ls3137_hdk_intram - place code and data into internal SRAM tms570ls3137_hdk_sdram - place code into external SDRAM and data to SRAM tms570ls3137_hdk - variant prepared for stand-alone RTEMS aplication stored and running directly from flash. Not working yet. Chip initialization code not included in BSP. External startup generated by TI's HalCoGen was used for testing and debugging. More information about TMS570 BSP can be found at http://www.rtems.org/wiki/index.php/Tms570 Patch version 2 - most of the formatting suggestion applied. - BSP converted to use clock shell - console driver "set attributes" tested. Baudrate change working Patch version 3 - more formatting changes. - removed leftover defines and test functions Todo: refactor header files (name register fields)