aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/serial.c
Commit message (Collapse)AuthorAgeFilesLines
* stm32: fix USART ORE status flag handlingAlex Voinea2022-10-311-1/+4
| | | | | | | | | | | If an USART RX overrun happened on a stm32g0/f0/h7, the ORE flag would get set by hardware. This flag would also trigger an interrupt. The problem was that this flag was never cleared on these 3 mcu families since the ORE flag clear sequence is different to all of the older chips. Since the ORE flag is not used in any meaningful way anyway, it was disabled during the init sequence. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* stm32: Add alternate serial ports on stm32f4Kevin O'Connor2021-05-241-0/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Include pin names in STM32_SERIAL_USART?_ALT kconfig symbolsKevin O'Connor2021-05-241-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Simplify USB/Serial/CANbus Kconfig selectionKevin O'Connor2021-03-181-12/+12
| | | | | | | Combine the various communication options into a single "make menuconfig" menu item. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix typo that broke selection of alternate serial port pinKevin O'Connor2020-02-091-1/+1
| | | | | | Fix a typo in commit aea15250. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Only declare alternate usart2 on stm32f0Kevin O'Connor2020-01-231-28/+22
| | | | | | | Also, try to improve the structure of the #if/#else/#endif layout in serial.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: add alternate pinout for USART2Arne Jansen2020-01-231-0/+6
| | | | | | Added to both generic stm32 and stm32f0 Signed-off-by: Arne Jansen <arne@die-jansens.de>
* stm32: Update code to use armcm_boot mechanismKevin O'Connor2019-08-221-7/+3
| | | | | | | Replace the stm32 provided assembler with the src/generic/armcm_boot.c mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Move irq handler code above irq setupKevin O'Connor2019-08-221-18/+18
| | | | | | Only code movement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add serial USART serial port option for port PD9/PD8Kevin O'Connor2019-08-091-0/+7
| | | | | Signed-off-by: Gerrit Sturm <gsturm16@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Rename stm32f4/ directory to stm32/Kevin O'Connor2019-08-051-0/+78
Now that the code in stm32f4/ can handle both stm32f1 and stm32f4 chips, rename the directory to just "stm32". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>