@@ -42,6 +42,7 @@ pub enum Device {
4242 Stm32L4S5 ,
4343 Stm32L4S7 ,
4444 Stm32L4S9 ,
45+ Stm32Wbx5 ,
4546}
4647
4748impl Device {
@@ -110,6 +111,8 @@ impl Device {
110111 item ! ( Self :: Stm32L4S5 ) ;
111112 item ! ( Self :: Stm32L4S7 ) ;
112113 item ! ( Self :: Stm32L4S9 ) ;
114+ family ! ( "STM32WB multi-protocol wireless / bluetooth" ) ;
115+ item ! ( Self :: Stm32Wbx5 ) ;
113116 Ok ( ( ) )
114117 }
115118
@@ -146,8 +149,9 @@ impl Device {
146149 | Self :: Stm32L4R9
147150 | Self :: Stm32L4S5
148151 | Self :: Stm32L4S7
149- | Self :: Stm32L4S9 => "thumbv7em-none-eabihf" ,
150- }
152+ | Self :: Stm32L4S9
153+ | Self :: Stm32Wbx5 => "thumbv7em-none-eabihf" ,
154+ }
151155 }
152156
153157 /// Returns the origin of the Flash memory.
@@ -180,7 +184,8 @@ impl Device {
180184 | Self :: Stm32L4R9
181185 | Self :: Stm32L4S5
182186 | Self :: Stm32L4S7
183- | Self :: Stm32L4S9 => 0x0800_0000 ,
187+ | Self :: Stm32L4S9
188+ | Self :: Stm32Wbx5 => 0x0800_0000 ,
184189 }
185190 }
186191
@@ -217,7 +222,8 @@ impl Device {
217222 | Self :: Stm32L4R9
218223 | Self :: Stm32L4S5
219224 | Self :: Stm32L4S7
220- | Self :: Stm32L4S9 => 0x2000_0000 ,
225+ | Self :: Stm32L4S9
226+ | Self :: Stm32Wbx5 => 0x2000_0000 ,
221227 }
222228 }
223229
@@ -251,7 +257,8 @@ impl Device {
251257 | Self :: Stm32L4R9
252258 | Self :: Stm32L4S5
253259 | Self :: Stm32L4S7
254- | Self :: Stm32L4S9 => Some ( 4_000_000 ) ,
260+ | Self :: Stm32L4S9
261+ | Self :: Stm32Wbx5 => Some ( 4_000_000 ) ,
255262 }
256263 }
257264
@@ -288,7 +295,8 @@ impl Device {
288295 | Self :: Stm32L4R9
289296 | Self :: Stm32L4S5
290297 | Self :: Stm32L4S7
291- | Self :: Stm32L4S9 => ( crates:: Platform :: CortexM , "cortex_m4f_r0p1" , & [ "fpu" ] ) ,
298+ | Self :: Stm32L4S9
299+ | Self :: Stm32Wbx5 => ( crates:: Platform :: CortexM , "cortex_m4f_r0p1" , & [ "fpu" ] ) ,
292300 }
293301 }
294302
@@ -380,6 +388,7 @@ impl Device {
380388 Self :: Stm32L4S9 => ( crates:: Bindings :: Stm32 , "stm32l4s9" , & [
381389 "adc" , "dma" , "exti" , "gpio" , "i2c" , "rtc" , "spi" , "tim" , "uart" ,
382390 ] ) ,
391+ Self :: Stm32Wbx5 => ( crates:: Bindings :: Stm32 , "stm32wbx5" , & [ ] ) ,
383392 }
384393 }
385394
@@ -414,6 +423,7 @@ impl Device {
414423 | Self :: Stm32L4S5
415424 | Self :: Stm32L4S7
416425 | Self :: Stm32L4S9 => & [ Probe :: Bmp , Probe :: Openocd ] ,
426+ Self :: Stm32Wbx5 => & [ Probe :: Openocd ] ,
417427 }
418428 }
419429
@@ -450,6 +460,7 @@ impl Device {
450460 | Self :: Stm32L4S5
451461 | Self :: Stm32L4S7
452462 | Self :: Stm32L4S9 => & [ "target/stm32l4x.cfg" ] ,
463+ Self :: Stm32Wbx5 => & [ "target/stm32wbx.cfg" ] ,
453464 }
454465 }
455466}
0 commit comments