Commit Graph

2956 Commits

Author SHA1 Message Date
dragonmux
6031fd8007 stm32/h7: Added a missing Flash ACR WRHF value 2025-07-11 20:26:35 -07:00
dragonmux
c5825de272 stm32/h7: Fixed some signed-unsigned issues in the RCC header 2025-07-11 20:26:35 -07:00
dragonmux
10acaab08b stm32/h7: Fixed a couple of issues with the clock selector handling for the USARTs and peripherals 2025-07-11 20:26:35 -07:00
dragonmux
74ffe55dc5 stm32/h7: Fixed an accuracy issue in the PLL clock input frequency calculation that resulted in all the follow-on calculations being way off in value 2025-07-11 20:26:35 -07:00
dragonmux
80ffd05933 stm32/h7: Fixed an issue with the naming of the D2CCIP2R selector constant for some of the USARTs 2025-07-11 20:26:35 -07:00
dragonmux
2d15b12ff2 stm32/common: Implement handling for setting the baud rate correctly when in 8x oversampling mode 2025-07-11 20:26:35 -07:00
dragonmux
9480f493b9 stm32/common: Implement support for DE and changing the oversampling mode 2025-07-11 20:26:35 -07:00
dragonmux
7e4a6334a1 usb/dwc: Cleanup in the setup interrupt handling and IN endpoint handling 2025-07-11 20:26:35 -07:00
dragonmux
b622d4b555 stm32/h7: Implemented handling for bringing up the 3.3V USB voltage supply 2025-07-11 20:26:35 -07:00
dragonmux
c3d972632a usb/dwc: Fixed how the endpoints were configured and brought up during endpoint setup for the H7 2025-07-11 20:26:35 -07:00
dragonmux
484bfee238 usb/dwc: const-correctness improvements 2025-07-11 20:26:35 -07:00
dragonmux
adb4f73125 usb/dwc: Fixed a whole lot of constants issues in the common header 2025-07-11 20:26:35 -07:00
dragonmux
6b4592c82d usb/dwc: Corrected how interrupts are handled for the H7's DWC2 so that setup and out packets are properly acknowledged 2025-07-11 20:26:35 -07:00
dragonmux
5e6c423100 usb/dwc: Corrected how packets are read and unloaded from the DWC2 FIFOs on the H7 2025-07-11 20:26:35 -07:00
dragonmux
d9779685ae usb/dwc: Further implementation cleanup to fix integer conversions issues 2025-07-11 20:26:35 -07:00
dragonmux
7851b5e4a5 usb/dwc: Cleaned up in the endpoint setup implementation to improve const-ness 2025-07-11 20:26:35 -07:00
dragonmux
cfd515e89d usb/dwc: Made one more of the out EP's interrupt mask values available for use in the H7 bringup code 2025-07-11 20:26:35 -07:00
dragonmux
714e7b1c91 usb/dwc: Corrected how packets are written and loaded to the DWC2 FIFOs on the H7 2025-07-11 20:26:35 -07:00
dragonmux
7da573f9eb usb/dwc: Fixed some issues with how interrupts were being handled for the H7's DWC2 variant 2025-07-11 20:26:35 -07:00
dragonmux
76ba8900e3 usb/dwc: Fixed how the control endpoints are configured when built for STM32H7 2025-07-11 20:26:35 -07:00
dragonmux
22ef380fbf usb: Fixed up the number of endpoints defined in the control structures 2025-07-11 20:26:35 -07:00
dragonmux
e135b9000d usb: Cleaned up a little in the control endpoint implementation 2025-07-11 20:26:35 -07:00
dragonmux
61ed913de9 usb/dwc: Fixed the endpoint count being wrong on some devices as the DWC does not have a fixed endpoint count 2025-07-11 20:26:35 -07:00
dragonmux
51351862b9 usb/dwc: Added some defines that were missing for the DWC2 in the STM32H7 parts 2025-07-11 20:26:35 -07:00
dragonmux
972d408ba5 stm32/h7: Implemented support changing the clock routed to the USB peripherals in the RCC 2025-07-11 20:26:35 -07:00
dragonmux
2b6eb047e0 stm32/h7: Implemented support for the HSI48 2025-07-11 20:26:35 -07:00
dragonmux
9f8ce70771 stm32/h7: Enabled support for the CRS controller 2025-07-11 20:26:35 -07:00
dragonmux
a603670266 stm32/h7: Implemented support for the RCC reset status register 2025-07-11 20:26:35 -07:00
dragonmux
cdd8f2adac stm32/h7: Implemented support for the Flash controller having untangled the previous pretending it was the F2/F4 controller mess 2025-07-11 20:26:35 -07:00
dragonmux
ee418f1780 usb: Fixed the USB string descriptor internal type appearing and being defined for C++ code, the unsized array member is UB in C++ 2025-07-11 20:26:35 -07:00
dragonmux
c31a239ae3 stm32/h7: Defined variant identification constants 2025-07-11 20:26:35 -07:00
dragonmux
7079ffdcac stm32/h7: Defined the device electronic signature addresses foro the memory map 2025-07-11 20:26:35 -07:00
dragonmux
cd906e97e4 usb/dwc: Fixed the definitions in the DWC common header not being wrapped in BEGIN_DECLS and END_DECLS 2025-07-11 20:26:35 -07:00
dragonmux
da0a6a9ce4 usb/dwc: Fixed some type conversions errors in the common header 2025-07-11 20:26:35 -07:00
dragonmux
24cdca8101 usb/dwc: Enable the STM32H7 in the DWC2 support 2025-07-11 20:26:35 -07:00
dragonmux
903720f6dc stm32/h7: Added a couple of missing U(S)ART defines to the USART header 2025-07-11 20:26:35 -07:00
dragonmux
83e571db67 stm32/h7: Fixed the QuadSPI headers not working with multiple peripehrals 2025-07-11 20:26:35 -07:00
dragonmux
c38a37c387 stm32/h7: Sorted a couple of missing peripheral register clock set cases 2025-07-11 20:26:35 -07:00
dragonmux
d294ebf746 stm32/h7: Added various missing peripherals to the RCC header 2025-07-11 20:26:35 -07:00
dragonmux
93423cbd9b stm32/h7: Enabled DWC2-based USB support for the platform 2025-07-11 20:26:35 -07:00
dragonmux
5baf6c9957 stm32/h7: Corrected the memory map, adding in base addresses for peripherals found on the value line parts 2025-07-11 20:26:35 -07:00
dragonmux
36326945c9 stm32/h7/rcc: Fixed a typo in one of the docs comments for the clocking configuration structure 2025-07-11 20:26:35 -07:00
blutack
bb152f3ab7 Enable fifos on G4 2025-07-11 19:28:40 -07:00
blutack
6778da3659 Add LPUART1 definition to usart.h for stm32g4x
Add LPUART1 definition for the STM32G4xx LPUART. It is possible to use LPUART1_BASE, but without the LPUART1 definition, usart_set_baudrate will calculate BRR incorrectly and the UART will not work due to an ifdef.
Tested and working @ 115200 on a NUCLEO-G474RE.
2025-07-11 19:28:40 -07:00
dragonmux
dc3f9cbcbd cm3/vector: Made the vector table and reset handler declarations LTO-safe by marking them used 2025-07-11 19:18:13 -07:00
dragonmux
133a1ddfaf cortexm-m-generic: Make the linker script LTO-safe by making sure the vector table is always retained 2025-07-11 19:18:13 -07:00
dragonmux
547b7c0e72 stm32/st_usbfs_v2: Fixed the use of pointer maths on void pointers in the packet I/O code 2025-07-11 19:18:13 -07:00
dragonmux
d7d6c3742c usb/usb_lm4f: Fixed the use of pointer maths on void pointers in the packet I/O code 2025-07-11 19:18:13 -07:00
dragonmux
6c6f926aee usb/usb_lm4f: Removed the unnecessary and standards-forbidden (void *) casts from the callback registrations 2025-07-11 19:18:13 -07:00
dragonmux
6ef29be9dd usb/usb_dwc_common: Removed the unnecessary and standards-forbidden (void *) casts from the callback registrations 2025-07-11 19:18:13 -07:00