Open
Description
Is there any way of doing the following:
fn some_function<const N : u8> -> ! {
let led_program = pio_proc::pio_asm!(
".define T1 42",
".wrap_target",
"mov pins , 0 [T0]",
"mov pins , 1 [T1]",
".wrap",
define(T0 = N) // Add T0 defined to the value of compile constant N
);
...
}
Essentially where you can add a define to a pio_asm at compile time? If not I would like to propose this addition.
Activity