Skip to content

Commit e3a05cc

Browse files
authored
Merge pull request #1 from adamgreig/fixes
Fix typos in zynq7000-hal
2 parents 4ec2f2b + 0583c92 commit e3a05cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

firmware/zynq7000-hal/src/clocks/pll.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub fn configure_io_pll(boot_mode: BootMode, pll_config: PllConfig) {
209209
return;
210210
}
211211
// Safety: This will only run at most once because of the atomic boolean check.
212-
unsafe { configure_arm_pll_unchecked(boot_mode, pll_config) };
212+
unsafe { configure_io_pll_unchecked(boot_mode, pll_config) };
213213
}
214214

215215
/// This function configures the DDR PLL based on the provided [PllConfig].
@@ -218,7 +218,7 @@ pub fn configure_ddr_pll(boot_mode: BootMode, pll_config: PllConfig) {
218218
return;
219219
}
220220
// Safety: This will only run at most once because of the atomic boolean check.
221-
unsafe { configure_arm_pll_unchecked(boot_mode, pll_config) };
221+
unsafe { configure_ddr_pll_unchecked(boot_mode, pll_config) };
222222
}
223223

224224
/// This function configures the ARM PLL based on the provided [PllConfig].

firmware/zynq7000-hal/src/ddr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub mod memtest {
129129
/// This tests writes and reads on a memory block starting at the base address
130130
/// with the size `words` times 4.
131131
pub unsafe fn walking_one_test(base_addr: usize, words: usize) -> Result<(), MemTestError> {
132-
unsafe { walking_value_test(true, base_addr, words) }
132+
unsafe { walking_value_test(false, base_addr, words) }
133133
}
134134

135135
/// # Safety

0 commit comments

Comments
 (0)