Feature request: Add .include directive for pioasm #523

Open
opened 2021-07-21 09:53:37 -05:00 by thierer · 1 comment
thierer commented 2021-07-21 09:53:37 -05:00 (Migrated from github.com)

(I see this was already discussed in https://www.raspberrypi.org/forums/viewtopic.php?f=145&t=313984, but I haven't found an actual issue which was created as a consequence, so here you go)

It would be useful to have an.include directive for pioasm, so .defines relevant for multiple PIO files could be placed in one common file and included from the others.

My current workaround is to use CMake's configure_file(), but an .include directive for pioasm would be more convenient.

(*I see this was already discussed in https://www.raspberrypi.org/forums/viewtopic.php?f=145&t=313984, but I haven't found an actual issue which was created as a consequence, so here you go*) It would be useful to have an`.include` directive for pioasm, so `.define`s relevant for multiple PIO files could be placed in one common file and included from the others. My current workaround is to use CMake's `configure_file()`, but an `.include` directive for pioasm would be more convenient.
visenri commented 2025-03-09 15:43:26 -05:00 (Migrated from github.com)

Using "pico_generate_pio_header_pre" as I've implemented here:
https://github.com/visenri/pico_cmake_extras
allows the use of all c preprocessor features.

So it can be used to include other files or use preprocessor macros defined elsewhere.

@kilograham:
This should be easy to integrate into the next SDK release.

Using "pico_generate_pio_header_pre" as I've implemented here: https://github.com/visenri/pico_cmake_extras allows the use of all c preprocessor features. So it can be used to include other files or use preprocessor macros defined elsewhere. @kilograham: This should be easy to integrate into the next SDK release.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#523
No description provided.