there is some bug

This commit is contained in:
Priec
2025-11-12 16:07:59 +01:00
parent 829cff872f
commit 05662a45d0
9 changed files with 120 additions and 29 deletions

View File

@@ -40,8 +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 { 0 };
// let set_low = |bit: u8| -> u32 { 1u32 << (bit as u32 + 16) };
// let set_low = |bit: u8| -> u32 { 0 }; // ODR
let set_low = |bit: u8| -> u32 { 1u32 << (bit as u32 + 16) }; // BSRR
let mut idx = 0usize;