Skip to content

Support of slice for Program code #55

Open
@ibuki2003

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions