Skip to content

Commit

Permalink
doc correction
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Jul 4, 2024
1 parent d7c2744 commit 3196d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion va108xx-hal/src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ impl<UART: Instance> UartBase<UART> {
let frac = ((sys_clk.raw() % (config.baudrate.raw() * 16)) * 64
+ (config.baudrate.raw() * 8))
/ (config.baudrate.raw() * 16);
// Calculations here are derived from chapter 10.4.4 (p.74) of the datasheet.
// Calculations here are derived from chapter 4.8.5 (p.79) of the datasheet.
let x = sys_clk.raw() as f32 / (config.baudrate.raw() * baud_multiplier) as f32;
let integer_part = x as u32;
self.uart.clkscale().write(|w| unsafe {
Expand Down

0 comments on commit 3196d74

Please sign in to comment.