Skip to content

pico_generate_pio_header supports only one pio fileΒ #1448

@romain145

Description

@romain145

Looking at this example: https://github.com/raspberrypi/pico-examples/blob/master/pio/squarewave/CMakeLists.txt
It takes 3 pico_generate_pio_header to generate the 3 .pio.h files.

pico_generate_pio_header(pio_squarewave ${CMAKE_CURRENT_LIST_DIR}/squarewave.pio)
pico_generate_pio_header(pio_squarewave ${CMAKE_CURRENT_LIST_DIR}/squarewave_wrap.pio)
pico_generate_pio_header(pio_squarewave ${CMAKE_CURRENT_LIST_DIR}/squarewave_fast.pio)

Can this syntax be used instead?

pico_generate_pio_header(pio_squarewave
        ${CMAKE_CURRENT_LIST_DIR}/squarewave.pio
        ${CMAKE_CURRENT_LIST_DIR}/squarewave_wrap.pio
        ${CMAKE_CURRENT_LIST_DIR}/squarewave_fast.pio
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions