Skip to content

Commit e8b2084

Browse files
rfuestmvertescher
authored andcommitted
Add support for STM32F730
1 parent a66f6d2 commit e8b2084

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ as-slice = "0.1.0"
1919
cortex-m = "0.6.0"
2020
cortex-m-rt = "0.6.8"
2121
nb = "0.1.2"
22-
stm32f7 = "0.9.0"
22+
stm32f7 = "0.11.0"
2323
micromath = "1.0.0"
2424

2525
[dependencies.bare-metal]
@@ -51,6 +51,7 @@ ltdc = []
5151
rt = ["stm32f7/rt"]
5252
stm32f722 = ["stm32f7/stm32f7x2", "device-selected"]
5353
stm32f723 = ["stm32f7/stm32f7x3", "device-selected"]
54+
stm32f730 = ["stm32f7/stm32f730", "device-selected"]
5455
stm32f732 = ["stm32f7/stm32f7x2", "device-selected"]
5556
stm32f733 = ["stm32f7/stm32f7x3", "device-selected"]
5657
stm32f745 = ["stm32f7/stm32f745", "device-selected","dma-support"]

src/gpio.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ macro_rules! gpio {
674674
#[cfg(any(
675675
feature = "stm32f722",
676676
feature = "stm32f723",
677+
feature = "stm32f730",
677678
feature = "stm32f732",
678679
feature = "stm32f733",
679680
feature = "stm32f745",
@@ -708,6 +709,7 @@ gpio!(GPIOA, gpioa, gpioaen, PA, 0, [
708709
#[cfg(any(
709710
feature = "stm32f722",
710711
feature = "stm32f723",
712+
feature = "stm32f730",
711713
feature = "stm32f732",
712714
feature = "stm32f733",
713715
feature = "stm32f745",
@@ -742,6 +744,7 @@ gpio!(GPIOB, gpiob, gpioben, PB, 1, [
742744
#[cfg(any(
743745
feature = "stm32f722",
744746
feature = "stm32f723",
747+
feature = "stm32f730",
745748
feature = "stm32f732",
746749
feature = "stm32f733",
747750
feature = "stm32f745",
@@ -776,6 +779,7 @@ gpio!(GPIOC, gpioc, gpiocen, PC, 2, [
776779
#[cfg(any(
777780
feature = "stm32f722",
778781
feature = "stm32f723",
782+
feature = "stm32f730",
779783
feature = "stm32f732",
780784
feature = "stm32f733",
781785
feature = "stm32f745",
@@ -810,6 +814,7 @@ gpio!(GPIOD, gpiod, gpioden, pd, 3, [
810814
#[cfg(any(
811815
feature = "stm32f722",
812816
feature = "stm32f723",
817+
feature = "stm32f730",
813818
feature = "stm32f732",
814819
feature = "stm32f733",
815820
feature = "stm32f745",
@@ -844,6 +849,7 @@ gpio!(GPIOE, gpioe, gpioeen, PE, 4, [
844849
#[cfg(any(
845850
feature = "stm32f722",
846851
feature = "stm32f723",
852+
feature = "stm32f730",
847853
feature = "stm32f732",
848854
feature = "stm32f733",
849855
feature = "stm32f745",
@@ -878,6 +884,7 @@ gpio!(GPIOF, gpiof, gpiofen, PF, 5, [
878884
#[cfg(any(
879885
feature = "stm32f722",
880886
feature = "stm32f723",
887+
feature = "stm32f730",
881888
feature = "stm32f732",
882889
feature = "stm32f733",
883890
feature = "stm32f745",
@@ -912,6 +919,7 @@ gpio!(GPIOG, gpiog, gpiogen, PG, 6,[
912919
#[cfg(any(
913920
feature = "stm32f722",
914921
feature = "stm32f723",
922+
feature = "stm32f730",
915923
feature = "stm32f732",
916924
feature = "stm32f733",
917925
feature = "stm32f745",
@@ -946,6 +954,7 @@ gpio!(GPIOH, gpioh, gpiohen, PH, 7, [
946954
#[cfg(any(
947955
feature = "stm32f722",
948956
feature = "stm32f723",
957+
feature = "stm32f730",
949958
feature = "stm32f732",
950959
feature = "stm32f733",
951960
feature = "stm32f745",

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ compile_error!(
88
"This crate requires one of the following device features enabled:
99
stm32f722
1010
stm32f723
11+
stm32f730
1112
stm32f732
1213
stm32f733
1314
stm32f745
@@ -30,6 +31,9 @@ pub use stm32f7::stm32f7x2 as device;
3031
#[cfg(feature = "stm32f723")]
3132
pub use stm32f7::stm32f7x3 as device;
3233

34+
#[cfg(feature = "stm32f730")]
35+
pub use stm32f7::stm32f730 as device;
36+
3337
#[cfg(feature = "stm32f732")]
3438
pub use stm32f7::stm32f7x2 as device;
3539

src/rcc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ bus! {
683683
#[cfg(not(any(
684684
feature = "stm32f722",
685685
feature = "stm32f723",
686+
feature = "stm32f730",
686687
feature = "stm32f732",
687688
feature = "stm32f733"
688689
)))]

0 commit comments

Comments
 (0)