bors[bot] 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6d0e6d563d 
							
						 
					 
					
						
						
							
							Merge  #714  
						
						... 
						
						
						
						714: add more clock options for l4 and l5 r=Dirbaio a=ant32
- added an assert so it panics if pll48div is not 48Mhz
- added MSI as a clock source for PLL
- removed hsi48 option for MCUs mentioned in l4 rcc presentation
- copied some code from l4 to l5, but don't have a way of testing it.
Co-authored-by: Philip A Reimer <antreimer@gmail.com> 
						
						
					 
					
						2022-04-12 21:42:36 +00:00 
						 
				 
			
				
					
						
							
							
								Matous Hybl 
							
						 
					 
					
						
						
						
						
							
						
						
							371f3ef419 
							
						 
					 
					
						
						
							
							Add ADC support for H7  
						
						
						
						
					 
					
						2022-04-12 22:25:00 +02:00 
						 
				 
			
				
					
						
							
							
								Philip A Reimer 
							
						 
					 
					
						
						
						
						
							
						
						
							d90ecbbe40 
							
						 
					 
					
						
						
							
							add more clock options for l4 and l5  
						
						
						
						
					 
					
						2022-04-11 19:11:02 -06:00 
						 
				 
			
				
					
						
							
							
								Philip A Reimer 
							
						 
					 
					
						
						
						
						
							
						
						
							d8860c0b80 
							
						 
					 
					
						
						
							
							add stm32l4 hsi48 and usb example  
						
						
						
						
					 
					
						2022-04-09 14:55:03 -06:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							8b757e1aec 
							
						 
					 
					
						
						
							
							Add stm32wlexx support  
						
						
						
						
					 
					
						2022-04-08 03:43:58 +02:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							50ff63ab88 
							
						 
					 
					
						
						
							
							Add STM32L5 support.  
						
						
						
						
					 
					
						2022-04-08 03:11:38 +02:00 
						 
				 
			
				
					
						
							
							
								Philip A Reimer 
							
						 
					 
					
						
						
						
						
							
						
						
							1f59f8e7d0 
							
						 
					 
					
						
						
							
							add pllsai1 and allow for 120Mhz clock on stm32l4+  
						
						
						
						
					 
					
						2022-04-01 22:42:43 -06:00 
						 
				 
			
				
					
						
							
							
								Joonas Javanainen 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a608d0deaf 
							
						 
					 
					
						
						
							
							Add minimal STM32F2 RCC  
						
						... 
						
						
						
						No support for PLL or other clocks than SYSCLK/AHB/APB1/APB2 
						
						
					 
					
						2022-03-27 18:40:49 +03:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							609975f821 
							
						 
					 
					
						
						
							
							rustfmt  
						
						
						
						
					 
					
						2022-03-04 18:04:12 +01:00 
						 
				 
			
				
					
						
							
							
								Matthew W. Samsonoff 
							
						 
					 
					
						
						
						
						
							
						
						
							047ff9a2f2 
							
						 
					 
					
						
						
							
							Use new stm32-data registers and fix AHB clock calculation  
						
						... 
						
						
						
						The original code for calculating the AHB clock did not account for the gap in
prescaler values (32 is not an available value.) The bit shifting and math has
been replaced by a `match`. 
						
						
					 
					
						2022-03-04 18:03:55 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							ea5cd19c30 
							
						 
					 
					
						
						
							
							stm32: fix build for h7ab  
						
						
						
						
					 
					
						2022-02-24 06:28:29 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							e8ca5f9b04 
							
						 
					 
					
						
						
							
							stm32/rcc: fix build on l0 chips without CRS  
						
						
						
						
					 
					
						2022-02-24 06:28:29 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							30ce71127a 
							
						 
					 
					
						
						
							
							stm32: move MCO pin impls to build.rs  
						
						
						
						
					 
					
						2022-02-23 19:54:46 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							1e69a8c484 
							
						 
					 
					
						
						
							
							stm32: move pin trait impls from macrotables to build.rs  
						
						
						
						
					 
					
						2022-02-23 19:54:46 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							2abb04d4d1 
							
						 
					 
					
						
						
							
							stm32/rcc: fix f3 build failure.  
						
						
						
						
					 
					
						2022-02-23 03:42:46 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							39d06b59cd 
							
						 
					 
					
						
						
							
							Update stm32-data  
						
						
						
						
					 
					
						2022-02-14 02:12:06 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							b99ab3d5d9 
							
						 
					 
					
						
						
							
							stm32: Add standard crate-wide macros for pin/dma traits, switch all drivers to use them.  
						
						
						
						
					 
					
						2022-02-10 21:38:03 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							8160af6af9 
							
						 
					 
					
						
						
							
							stm32: replace peripheral_rcc! macrotable with build.rs  
						
						
						
						
					 
					
						2022-02-09 00:58:17 +01:00 
						 
				 
			
				
					
						
							
							
								Matous Hybl 
							
						 
					 
					
						
						
						
						
							
						
						
							fee1de109d 
							
						 
					 
					
						
						
							
							Fix RCC configuration for H7.  
						
						
						
						
					 
					
						2022-02-08 14:36:53 +01:00 
						 
				 
			
				
					
						
							
							
								Greg V 
							
						 
					 
					
						
						
						
						
							
						
						
							8bb41a3281 
							
						 
					 
					
						
						
							
							stm32f3: fix nonexistent cfg tests  
						
						... 
						
						
						
						The rcc code was taken from stm32-rs which uses 'x' features, but
embassy uses features with full chip names.
Add these 'x' wildcards as cfgs and use them in rcc.
They will be useful for USB too. 
						
						
					 
					
						2022-02-02 22:53:03 +03:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							a8580ec78a 
							
						 
					 
					
						
						
							
							stm32/rcc: fix stm32f410  
						
						
						
						
					 
					
						2022-01-24 00:50:35 +01:00 
						 
				 
			
				
					
						
							
							
								Greg V 
							
						 
					 
					
						
						
						
						
							
						
						
							9fcc207629 
							
						 
					 
					
						
						
							
							stm32l1/rcc: fix clock frequency assertion  
						
						... 
						
						
						
						It was comparing a number in Hz (!) to "32" (MHz).
embassy-stm32's units don't work like those used by stm32-hal :/ 
						
						
					 
					
						2022-01-14 22:59:57 +03:00 
						 
				 
			
				
					
						
							
							
								Greg V 
							
						 
					 
					
						
						
						
						
							
						
						
							456b56d4fd 
							
						 
					 
					
						
						
							
							stm32l1/rcc: set required flash bits for high frequencies  
						
						... 
						
						
						
						As is done for lots of other families 
						
						
					 
					
						2022-01-14 22:59:57 +03:00 
						 
				 
			
				
					
						
							
							
								Matous Hybl 
							
						 
					 
					
						
						
						
						
							
						
						
							e07df92651 
							
						 
					 
					
						
						
							
							Make RCC accessible using low-level API.  
						
						
						
						
					 
					
						2022-01-13 16:12:45 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							2eb0cc5df7 
							
						 
					 
					
						
						
							
							stm32/rcc: remove Rcc struct, RccExt trait.  
						
						... 
						
						
						
						All the RCC configuration is executed in init(). 
						
						
					 
					
						2022-01-05 00:00:44 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							c3fd9a0f44 
							
						 
					 
					
						
						
							
							stm32/rcc: f4/f7 cleanup and make a bit more consistent.  
						
						
						
						
					 
					
						2022-01-04 21:17:17 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							b06e705a73 
							
						 
					 
					
						
						
							
							stm32/rcc: change family-specific code from dirs to single files.  
						
						... 
						
						
						
						Consistent with how other peripherals handle their versions. 
						
						
					 
					
						2022-01-04 19:28:15 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							89b009b11d 
							
						 
					 
					
						
						
							
							stm32h7/rcc: remove unneeded DMA enable settings.  
						
						... 
						
						
						
						These are automatically enabled by dma::init(). 
						
						
					 
					
						2022-01-04 13:31:30 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							5d2f40b337 
							
						 
					 
					
						
						
							
							stm32wl/rcc: remove unneded gpio enables in RCC.  
						
						... 
						
						
						
						These are already done by gpio::init(). 
						
						
					 
					
						2022-01-04 13:31:30 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							cdc66e110f 
							
						 
					 
					
						
						
							
							stm32/rcc: remove builders on Config.  
						
						... 
						
						
						
						This makes API consistent with other Config structs in Embassy, where
the convention is to not use builders. 
						
						
					 
					
						2022-01-04 13:31:30 +01:00 
						 
				 
			
				
					
						
							
							
								Sjoerd Simons 
							
						 
					 
					
						
						
						
						
							
						
						
							a93b1141e9 
							
						 
					 
					
						
						
							
							stm32f1: Store adc clock rate in Clocks struct  
						
						
						
						
					 
					
						2021-12-30 10:50:28 +01:00 
						 
				 
			
				
					
						
							
							
								bors[bot] 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d5a3064c2c 
							
						 
					 
					
						
						
							
							Merge  #540  
						
						... 
						
						
						
						540: Initial support for STM32F3 r=Dirbaio a=VasanthakumarV
The [companion PR](https://github.com/embassy-rs/stm32-data/pull/109 ) in `stm32-data` should be merged before this PR.
The examples were tested on an STM32F303VC MCU.
Co-authored-by: VasanthakumarV <vasanth260m12@gmail.com>
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net> 
						
						
					 
					
						2021-12-16 07:30:03 +00:00 
						 
				 
			
				
					
						
							
							
								VasanthakumarV 
							
						 
					 
					
						
						
						
						
							
						
						
							3f33d307ff 
							
						 
					 
					
						
						
							
							[feature] Add rcc register support for F3  
						
						
						
						
					 
					
						2021-12-13 14:50:13 +05:30 
						 
				 
			
				
					
						
							
							
								Matous Hybl 
							
						 
					 
					
						
						
						
						
							
						
						
							1dd5a71c07 
							
						 
					 
					
						
						
							
							Add DCMI peripheral support.  
						
						
						
						
					 
					
						2021-12-09 12:56:39 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							b0fabfab5d 
							
						 
					 
					
						
						
							
							Update stm32-data: rcc regs info comes from yamls now.  
						
						
						
						
					 
					
						2021-11-29 02:28:02 +01:00 
						 
				 
			
				
					
						
							
							
								Ulf Lilleengen 
							
						 
					 
					
						
						
						
						
							
						
						
							25b49a8a2a 
							
						 
					 
					
						
						
							
							Remove common clock types  
						
						... 
						
						
						
						Different STM32 RCC peripherals have different capabilities and register
values. Define types for each RCC types inside each module to ensure
full range of capabilities for each family can be used 
						
						
					 
					
						2021-11-28 16:46:08 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Nieuwenhuis 
							
						 
					 
					
						
						
						
						
							
						
						
							88d4b0c00d 
							
						 
					 
					
						
						
							
							stm32: add stm32g4 support.  
						
						
						
						
					 
					
						2021-11-27 02:34:23 +01:00 
						 
				 
			
				
					
						
							
							
								bors[bot] 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8193885cb5 
							
						 
					 
					
						
						
							
							Merge  #482  
						
						... 
						
						
						
						482: Add MCO peripheral. r=Dirbaio a=matoushybl
This PR adds an abstraction over STM32 RCC feature called MCO (Microcontroller Clock Output). The clock output can bind to several clock sources and then can be scaled using a prescaler.
Given that from the embassy ecosystem the RCC is generaly invisible to the user, the MCO was implemented as a separate peripheral bound to the pin where the clock should appear.
Co-authored-by: Matous Hybl <hyblmatous@gmail.com> 
						
						
					 
					
						2021-11-11 16:20:02 +00:00 
						 
				 
			
				
					
						
							
							
								Matous Hybl 
							
						 
					 
					
						
						
						
						
							
						
						
							c14642cffc 
							
						 
					 
					
						
						
							
							Add MCO peripheral.  
						
						
						
						
					 
					
						2021-11-11 11:34:09 +01:00 
						 
				 
			
				
					
						
							
							
								Bob McWhirter 
							
						 
					 
					
						
						
						
						
							
						
						
							12a64b867b 
							
						 
					 
					
						
						
							
							More support for U5 PWR (ish), RCC, and FLASH (ish).  
						
						
						
						
					 
					
						2021-11-08 14:27:33 -05:00 
						 
				 
			
				
					
						
							
							
								Bob McWhirter 
							
						 
					 
					
						
						
						
						
							
						
						
							5f124ec49f 
							
						 
					 
					
						
						
							
							Update U5 to init RCC.  
						
						
						
						
					 
					
						2021-11-08 14:20:51 -05:00 
						 
				 
			
				
					
						
							
							
								Bob McWhirter 
							
						 
					 
					
						
						
						
						
							
						
						
							d1272e00bb 
							
						 
					 
					
						
						
							
							Prefix unused variable for now.  
						
						
						
						
					 
					
						2021-11-02 15:45:56 -04:00 
						 
				 
			
				
					
						
							
							
								Bob McWhirter 
							
						 
					 
					
						
						
						
						
							
						
						
							f12b70535b 
							
						 
					 
					
						
						
							
							Adjust for STM32U5.  
						
						
						
						
					 
					
						2021-11-02 12:05:24 -04:00 
						 
				 
			
				
					
						
							
							
								Matous Hybl 
							
						 
					 
					
						
						
						
						
							
						
						
							015cad84dd 
							
						 
					 
					
						
						
							
							Initial support for STM32F767ZI.  
						
						
						
						
					 
					
						2021-10-26 17:33:28 +02:00 
						 
				 
			
				
					
						
							
							
								Ulf Lilleengen 
							
						 
					 
					
						
						
						
						
							
						
						
							e55726964d 
							
						 
					 
					
						
						
							
							Fix clock setup for MSI and PLL to allow RNG opereation  
						
						... 
						
						
						
						Add RNG example using PLL as clock source. 
						
						
					 
					
						2021-10-26 13:45:53 +02:00 
						 
				 
			
				
					
						
							
							
								Ben Gamari 
							
						 
					 
					
						
						
						
						
							
						
						
							573e6ec373 
							
						 
					 
					
						
						
							
							stm32g0: Add support for low-power run  
						
						
						
						
					 
					
						2021-09-28 21:19:10 -04:00 
						 
				 
			
				
					
						
							
							
								Ben Gamari 
							
						 
					 
					
						
						
						
						
							
						
						
							794798e225 
							
						 
					 
					
						
						
							
							stm32g0: Add support for HSI divider  
						
						
						
						
					 
					
						2021-09-28 21:19:10 -04:00 
						 
				 
			
				
					
						
							
							
								Mariusz Ryndzionek 
							
						 
					 
					
						
						
						
						
							
						
						
							ce361abb1b 
							
						 
					 
					
						
						
							
							Changing the casts (code review request)  
						
						
						
						
					 
					
						2021-09-28 18:31:04 +02:00 
						 
				 
			
				
					
						
							
							
								Mariusz Ryndzionek 
							
						 
					 
					
						
						
						
						
							
						
						
							bce909ec1e 
							
						 
					 
					
						
						
							
							Initial STM32F1 family support with two examples for STM32F103C8 (Blue Pill)  
						
						
						
						
					 
					
						2021-09-28 18:31:04 +02:00 
						 
				 
			
				
					
						
							
							
								Vincent Stakenburg 
							
						 
					 
					
						
						
						
						
							
						
						
							7d6d274d55 
							
						 
					 
					
						
						
							
							Add MSI and PLL clock source for L4  
						
						
						
						
					 
					
						2021-09-24 18:27:39 +02:00