Tx only does not work

This commit is contained in:
Priec
2025-11-05 21:03:30 +01:00
parent f7fdd72d7f
commit f2fda10c7a
17 changed files with 2365 additions and 0 deletions

16
dma_gpio2/src/config.rs Normal file
View File

@@ -0,0 +1,16 @@
// src/config.rs
use crate::software_uart::uart_emulation::{Parity, StopBits, UartConfig};
pub const BAUD: u32 = 9_600;
pub const TX_PIN_BIT: u8 = 2; // PA2
pub const TX_OVERSAMPLE: u16 = 1;
pub const RX_OVERSAMPLE: u16 = 16;
pub const RX_RING_BYTES: usize = 4096;
pub const TX_RING_BYTES: usize = 4096;
pub const PIPE_RX_SIZE: usize = 256;
pub const UART_CFG: UartConfig = UartConfig {
data_bits: 8,
parity: Parity::None,
stop_bits: StopBits::One,
};