diff --git a/data/registers/otg_v2.json b/data/registers/otg_v2.json index 8b8d0fda..697ccf9d 100644 --- a/data/registers/otg_v2.json +++ b/data/registers/otg_v2.json @@ -1,5 +1,5 @@ { - "block/OTG_HS": { + "block/OTG": { "description": "OTG_HS.", "items": [ { diff --git a/stm32-metapac/src/peripherals/otg_v2.rs b/stm32-metapac/src/peripherals/otg_v2.rs index e1271946..b676659c 100644 --- a/stm32-metapac/src/peripherals/otg_v2.rs +++ b/stm32-metapac/src/peripherals/otg_v2.rs @@ -5,7 +5,7 @@ # [doc = "OTG_HS."] # [derive (Copy , Clone , Eq , PartialEq)] -pub struct OtgHs { ptr : * mut u8 } unsafe impl Send for OtgHs { } unsafe impl Sync for OtgHs { } impl OtgHs { # [inline (always)] +pub struct Otg { ptr : * mut u8 } unsafe impl Send for Otg { } unsafe impl Sync for Otg { } impl Otg { # [inline (always)] pub const unsafe fn from_ptr (ptr : * mut ()) -> Self { Self { ptr : ptr as _ , } } # [inline (always)] pub const fn as_ptr (& self) -> * mut () { self . ptr as _ } # [doc = "Control and status register"] # [inline (always)] diff --git a/stm32-metapac/src/registers/otg_v2.rs b/stm32-metapac/src/registers/otg_v2.rs index 18f5b917..a77d3bae 100644 --- a/stm32-metapac/src/registers/otg_v2.rs +++ b/stm32-metapac/src/registers/otg_v2.rs @@ -3,7 +3,7 @@ pub(crate) static REGISTERS: IR = IR { blocks: &[ Block { - name: "OtgHs", + name: "Otg", extends: None, description: Some( "OTG_HS.",