A small glitch but it took me a while to detect my own problems duue to this:
my current code is:
let uart_result = BufferedUart::new(
uart_device,
IrqsLpuart1,
rx_pin,
tx_pin,
....
in the original Embassy example the namkes of rx_pin and tx_pin are swapped that created a major confusion on my site.
in fact the ultimate origin of the confusion is with Embassy . here they go:
impl<'d> BufferedUart<'d> {
/// Create a new bidirectional buffered UART driver
pub fn new<T: Instance>(
peri: impl Peripheral<P = T> + 'd,
_irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd,
rx: impl Peripheral<P = impl RxPin<T>> + 'd,
tx: impl Peripheral<P = impl TxPin<T>> + 'd,
tx_buffer: &'d mut [u8],
rx_buffer: &'d mut [u8],
config: Config,
) -> Result<Self, ConfigError> {
having the sequence of the pins reverse regarding the sequence of the buffers. :( :( :(
A small glitch but it took me a while to detect my own problems duue to this:
my current code is:
in the original
Embassyexample the namkes ofrx_pinandtx_pinare swapped that created a major confusion on my site.in fact the ultimate origin of the confusion is with
Embassy. here they go:having the sequence of the pins reverse regarding the sequence of the buffers. :( :( :(