pio-rs icon indicating copy to clipboard operation
pio-rs copied to clipboard

Support of slice for Program code

Open ibuki2003 opened this issue 1 year ago • 2 comments

Now Program::code is ArrayVec type, which contains its own data. I think almost all of use cases are to program "static" one, and it is not necessary to allocate memory every time.

So I suggest to add slice support for Program::code.

Furthermore, I want pio_proc assembler macros to support slice as well. The macros returns ProgramWithDefines<> type, which has dynamic type parameter, so it is not possible to use it as static variable.

I am able to work with this change, but I am not sure if it is good idea or not.

ibuki2003 avatar Feb 08 '24 17:02 ibuki2003