Skip to content

Commit 0c14f79

Browse files
committed
rename generator config
1 parent e3f8778 commit 0c14f79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/analog/dac.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ macro_rules! dac {
130130
}
131131
}
132132

133-
pub fn enable_generator(self, mode: GeneratorConfig) -> $CX<WaveGenerator> {
133+
pub fn enable_generator(self, config: GeneratorConfig) -> $CX<WaveGenerator> {
134134
let dac = unsafe { &(*DAC::ptr()) };
135135

136136
dac.dac_mcr.modify(|_, w| unsafe { w.$mode().bits(0) });
137137
dac.dac_cr.modify(|_, w| unsafe {
138-
w.$wave().bits(mode.mode);
138+
w.$wave().bits(config.mode);
139139
w.$ten().set_bit();
140-
w.$mamp().bits(mode.amp);
140+
w.$mamp().bits(config.amp);
141141
w.$en().set_bit()
142142
});
143143

0 commit comments

Comments
 (0)