aboutsummaryrefslogtreecommitdiff
path: root/stm-uart.c
AgeCommit message (Collapse)Author
2021-06-28Revert Peter's hardware flow control patch, as it sometimes causesPaul Selkirk
corruption on the sending side of USART2 (user/RPC) under load.
2020-10-15Peter Stuge's fix for hardware flow control: Program CTS and RTS pins as ↵Paul Selkirk
alternate functions.
2017-10-17Overhaul UART APIPaul Selkirk
MGMT is the default UART, and no one should have to explicitly refer to the UART unless they need USER (hsm.c:hal_serial_send_char). The default UART is now exposed in the header file, so that the default-using functions can be macros, which saves a few bytes in code space, and a few microseconds in function call overhead.
2017-10-11Cleanup 'unused parameter' warnings, a couple of which are actual coding errors.Paul Selkirk
2017-08-31CleanupPaul Selkirk
2017-05-02Merge branch 'init_cleanup' into no-rtosPaul Selkirk
Clean up Makefiles and initialization code.
2017-04-17Rewrite the wait-for-ready loop in uart_send_bytes() to actually work.Paul Selkirk
2016-07-06Add uart_set_default() to make debugging output easier.Paul Selkirk
2016-06-06Change enum stm_uart_port port to a typedef.Paul Selkirk
2016-06-02Use DMA for UART RX instead of interrupts.Fredrik Thulin
DMA is more efficient and less prone to miss characters than interrupts. An open question is if circular mode is really the best. If someone copy-pastes more than the RX buffer size of configuration into the CLI, we risk the DMA controller catching up with the reader and overwriting data not yet read. Since we don't have flow control back to the users terminal, we will always fail if too much data is entered before we can process it. The question is if failing to stuff new data at the end of a buffer might be better than data being overwritten - thus messing up the commands in unpredictable ways.
2016-06-01Implement circular buffer UART RX using interrupts.Fredrik Thulin
2016-05-18Fix warningsFredrik Thulin
2016-05-16Add code to talk with the external RTC chip.Fredrik Thulin
2016-05-15add simple filetransfer pocFredrik Thulin
2016-05-13rename huart1 and huart2 to huart_mgmt and huart_userFredrik Thulin
reduces risk of using the wrong one
2016-05-13Implement support for the two UARTs on the alpha board.Fredrik Thulin
2016-05-12Test both UARTs, and also test receiving data.Fredrik Thulin
2016-04-14import mbed rtos libraryPaul Selkirk
2016-03-21blocking recvPaul Selkirk
2016-03-16Added uart_recv_char() to support RPC.Paul Selkirk
Moved hal_io_fmc.c to libhal repo.
2015-11-11Lots of cleanup.Paul Selkirk
Clean up and simplify(?) Makefile. Add copyrights as needed. Add include guard to stm-fmc.h. Move MX_USART2_UART_Init back to stm-init.c for possible copyright reasons. Move libc, src, and include files to top level.