1530 Commits

Author SHA1 Message Date
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
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
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
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
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
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
93423cbd9b stm32/h7: Enabled DWC2-based USB support for the platform 2025-07-11 20:26:35 -07:00
blutack
bb152f3ab7 Enable fifos on G4 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
dragonmux
a50a15e660 stm32/common: Removed the unnecessary and standards-forbidden (void *) casts from the callback registrations 2025-07-11 19:18:13 -07:00
dragonmux
345b20fb9f stm32/timer: Moved the OC4 mode logic into its own function 2025-07-11 19:15:56 -07:00
dragonmux
1254cb8cc8 stm32/timer: Moved the OC3 mode logic into its own function 2025-07-11 19:15:56 -07:00
dragonmux
a058f77434 stm32/timer: Moved the OC2 mode logic into its own function 2025-07-11 19:15:56 -07:00
dragonmux
f2a1f2b6ae stm32/timer: Moved the OC1 mode logic into its own function 2025-07-11 19:15:56 -07:00
dragonmux
2fca2a11e9 usb_control: Cleaned up the usb_control_send_chunk() logic slightly to make for easier reading 2025-07-11 19:14:29 -07:00
dragonmux
4ea6f34450 efm32: Added the new USB implementation objects to the build systems for the lineup 2025-07-11 19:14:29 -07:00
dragonmux
901513166c lm4f: Added the new USB implementation objects to the build system 2025-07-11 19:14:29 -07:00
dragonmux
bf9094d46c stm32: Added the new USB implementation objects to the build systems for the lineup 2025-07-11 19:14:29 -07:00
dragonmux
f2db2a1c61 usb/microsoft: Implemented support for sending the feature descriptors 2025-07-11 19:14:29 -07:00
dragonmux
901f920f6d usb/microsoft: Implemented support for sending more of the descriptor set tree 2025-07-11 19:14:29 -07:00
dragonmux
7aa5270809 usb_control: Implemented support for dispatching to the microsoft OS descriptors handler 2025-07-11 19:14:29 -07:00
dragonmux
9efcb120f7 usb: Begun implementing support for sending the microsoft OS descriptor set structures 2025-07-11 19:14:29 -07:00
dragonmux
8f69cc974d usb_standard: Added computation of the total BOS length to build_bos_descriptor 2025-07-11 19:14:29 -07:00
dragonmux
c0c642cb06 usb_control: Cleaned up in usb_control_request_dispatch() 2025-07-11 19:14:29 -07:00
dragonmux
b7ddb7c7c0 usb: Implemented support for sending the Microsoft OS-specific descriptor component of a platform capability descriptor 2025-07-11 19:14:29 -07:00
dragonmux
1bc180c639 usb_standard: Implemented support for sending out what we have so far of a BOS descriptor 2025-07-11 19:14:29 -07:00
dragonmux
60ff345798 usb: Begun implementing support into the USB device machinary for BOS descriptors 2025-07-11 19:14:29 -07:00
dragonmux
1d97cbf6e1 usb: Begun implementing support for Binary Object Stores and their capability descriptors 2025-07-11 19:14:29 -07:00
Aron Szabo
3a85f91ed8 stm32l0: rcc: fix incorrect bit shift in rcc_set_lpuart1_sel()
The function `rcc_set_lpuart1_sel()` was incorrectly using `RCC_CCIPR_LPTIM1SEL_SHIFT`
instead of `RCC_CCIPR_LPUART1SEL_SHIFT`, causing incorrect LPUART1 clock source selection.

This patch corrects the bit shift to ensure the LPUART1SEL field is properly updated.

To verify check RM0377 Reference manual section 7.3.19.
2025-02-26 10:29:15 +01:00