only improvements

This commit is contained in:
Priec
2025-11-05 14:45:36 +01:00
parent d57d16935d
commit 41c31f6b2a
4 changed files with 18 additions and 15 deletions

View File

@@ -40,7 +40,8 @@ pub fn encode_uart_byte_cfg(
) -> usize {
// GPIOx_BSRR register str. 636 kap. 13.4.7
let set_high = |bit: u8| -> u32 { 1u32 << bit };
let set_low = |bit: u8| -> u32 { 1u32 << (bit as u32 + 16) };
let set_low = |bit: u8| -> u32 { 0 };
// let set_low = |bit: u8| -> u32 { 1u32 << (bit as u32 + 16) };
let mut idx = 0usize;