ac15155fc9
1. Kconfig - Removed USART1 config option from STM32_STM32G47XX. Not necessary to adding LPUART functionality. 2. stm32_lowput.c - Added extra check from STM32G4 board because that is the only with LPUART functionality. 2. stm32_serial.c - Removed unneeded function (stm32_serial_get_lpuart). Fixed up_putc return bug. Added configuration for DMAMAP_LPUART RX and TX for STM32G4XXX only. The G4 is the only in this family with LPUART and uses a DMAMUX unlike the others. 1. Removed 1WIRE LPUART refereences in Kconfig and stm32_uart.h. There is no support for LPUART currently in stm32_1wire.c. 2. Removed references to LPUART under DMA_V2 ifdefs. STM32G4 uses DMA_V1, and I saw that none of the chips DMA_V2 (F20, F4) have LPUARTs. AFAIK the only chip in the stm32 folder that has LPUART peripherals is the STM32G4. Removed unnecessary brackets and empty lines Added lpuartnsh (LPUART NuttShell) config to the nucleo-g474re board configurations. nsh uses USART3 by default. lpuartnsh uses nsh as a template, changes the serial console to LPUART1, and adds the DMA configs to enable DMA for the LPUART. Added support for using the lpuart prescaler register. Without prescaling the apbclock, 9600 baud is not supported on the G474RE. By utilizing the prescaler, when necessary, we can support nearly any baud rate (300 baud to 30M Mbaud). lowputc defaults to a prescaler of 16 for the lpuart so standard baud rates (9600 to 115200) are supported early in the boot process. Later in stm32_serial.c the ideal prescaler and BRR values are determined. Added ifdef statements for LPUART code sections not compatible with other chips. Changed LPUART BRR calcuation to use 64-bit integers. Feedback from nuttx pull request. Added brackets around single line if/else statements. Reordered lpuartnsh defconfig file. Fix lpuart brr calculation after attempting to break the calculation into 2 lines. Removed TAB |
||
---|---|---|
.. | ||
chip.h | ||
irq.h | ||
stm32f10xxx_irq.h | ||
stm32f20xxx_irq.h | ||
stm32f30xxx_irq.h | ||
stm32f33xxx_irq.h | ||
stm32f37xxx_irq.h | ||
stm32f40xxx_irq.h | ||
stm32g4xxxx_irq.h | ||
stm32l15xxx_irq.h |