Merge pull request #3253 from i404788/usbh_prereq

Add OTG core DMA address registers
This commit is contained in:
Dario Nieuwenhuis 2024-08-13 16:31:13 +00:00 committed by GitHub
commit afd910016c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -272,6 +272,12 @@ impl Otg {
assert!(n < 12usize);
unsafe { Reg::from_ptr(self.ptr.add(0x0510usize + n * 32usize) as _) }
}
#[doc = "Host channel DMA address register"]
#[inline(always)]
pub const fn hcdma(self, n: usize) -> Reg<u32, RW> {
assert!(n < 12usize);
unsafe { Reg::from_ptr(self.ptr.add(0x0514usize + n * 32usize) as _) }
}
#[doc = "Device configuration register"]
#[inline(always)]
pub const fn dcfg(self) -> Reg<regs::Dcfg, RW> {
@ -364,6 +370,12 @@ impl Otg {
assert!(n < 16usize);
unsafe { Reg::from_ptr(self.ptr.add(0x0b10usize + n * 32usize) as _) }
}
#[doc = "Device OUT/IN endpoint DMA address register"]
#[inline(always)]
pub const fn doepdma(self, n: usize) -> Reg<u32, RW> {
assert!(n < 16usize);
unsafe { Reg::from_ptr(self.ptr.add(0x0b14usize + n * 32usize) as _) }
}
#[doc = "Power and clock gating control register"]
#[inline(always)]
pub const fn pcgcctl(self) -> Reg<regs::Pcgcctl, RW> {