|
@@ -243,7 +243,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn get_duty(&self) -> u16 {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr1.read().ccr1().bits() }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr1.read().ccr().bits() }
|
|
|
}
|
|
|
|
|
|
fn get_max_duty(&self) -> u16 {
|
|
@@ -251,7 +251,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn set_duty(&mut self, duty: u16) {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr1.write(|w| w.ccr1().bits(duty)) }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr1.write(|w| w.ccr().bits(duty)) }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -267,7 +267,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn get_duty(&self) -> u16 {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr2.read().ccr2().bits() }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr2.read().ccr().bits() }
|
|
|
}
|
|
|
|
|
|
fn get_max_duty(&self) -> u16 {
|
|
@@ -275,7 +275,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn set_duty(&mut self, duty: u16) {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr2.write(|w| w.ccr2().bits(duty)) }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr2.write(|w| w.ccr().bits(duty)) }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -291,7 +291,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn get_duty(&self) -> u16 {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr3.read().ccr3().bits() }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr3.read().ccr().bits() }
|
|
|
}
|
|
|
|
|
|
fn get_max_duty(&self) -> u16 {
|
|
@@ -299,7 +299,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn set_duty(&mut self, duty: u16) {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr3.write(|w| w.ccr3().bits(duty)) }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr3.write(|w| w.ccr().bits(duty)) }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -315,7 +315,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn get_duty(&self) -> u16 {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr4.read().ccr4().bits() }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr4.read().ccr().bits() }
|
|
|
}
|
|
|
|
|
|
fn get_max_duty(&self) -> u16 {
|
|
@@ -323,7 +323,7 @@ macro_rules! hal {
|
|
|
}
|
|
|
|
|
|
fn set_duty(&mut self, duty: u16) {
|
|
|
- unsafe { (*$TIMX::ptr()).ccr4.write(|w| w.ccr4().bits(duty)) }
|
|
|
+ unsafe { (*$TIMX::ptr()).ccr4.write(|w| w.ccr().bits(duty)) }
|
|
|
}
|
|
|
}
|
|
|
)+
|