aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f0_serial.c
Commit message (Collapse)AuthorAgeFilesLines
* stm32g4: implement build,usb,can,i2c,spi,serial,adc.Matt Baker2022-12-021-4/+17
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* stm32: Use stm32f0_serial.c on stm32h7 chipsKevin O'Connor2022-10-311-3/+35
| | | | | | | The stm32h7 uses similar usart hardware as the stm32f0 and stm32g0 chips. Use the same code implementation for all these chips. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: fix USART ORE status flag handlingAlex Voinea2022-10-311-1/+2
| | | | | | | | | | | 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: Initial support for stm32g0Kevin O'Connor2021-12-231-3/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Support PB7/PB6 for USART1 on stm32f0Kevin O'Connor2021-08-011-6/+16
| | | | | | | | | | | Add support for USART1 on PB7/PB6. Remove STM32_SERIAL_USART1_ALT_PA15_PA14 option and allow all serial mappings to be used on stm32f031. Reported by @Desuuuu. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Include pin names in STM32_SERIAL_USART?_ALT kconfig symbolsKevin O'Connor2021-05-241-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Simplify USB/Serial/CANbus Kconfig selectionKevin O'Connor2021-03-181-20/+20
| | | | | | | Combine the various communication options into a single "make menuconfig" menu item. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Adding support for STM32F031x6 (#3871)Elias Bakken2021-02-031-3/+9
| | | | | | | Add support for alt usart 1 Do not select all functions on 16 K mcu Signed-off-by: Elias Bakken <elias@iagent.no>
* 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-16/+16
| | | | | | | 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: Initial support for stm32f070Kevin O'Connor2019-10-231-0/+69
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>