Open dthelegend opened 3 months ago
It's not currently possible, but it sounds like a nice enhancement.
However, I'm not sure if it's possible to actually evaluate N inside the macro at compile time.
I checked and you cannot evaluate constants at macro time, so this is DOA :(
I also noticed that since you can't get the type out from the public defines, you can't declare a pio_asm! as a constant variable. It might be worth adding a way to forward declare the ExpandedDefines type with a new option(public_defines_type) or something.
I can see a world where if you can at least declare it constant at compile time one could modify the program at compile with a custom define they needed.
Is there any way of doing the following:
Essentially where you can add a define to a pio_asm at compile time? If not I would like to propose this addition.