Skip to content

Commit b7ff2e9

Browse files
Fix pio headers that are used in SDK docs (#581)
The PIO version in no longer hard coded.
1 parent 80a3acd commit b7ff2e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pio/squarewave/generated/squarewave.pio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static const struct pio_program squarewave_program = {
3030
.instructions = squarewave_program_instructions,
3131
.length = 4,
3232
.origin = -1,
33-
.pio_version = 0,
33+
.pio_version = squarewave_pio_version,
3434
#if PICO_PIO_VERSION > 0
3535
.used_gpio_ranges = 0x0
3636
#endif

pio/squarewave/generated/squarewave_wrap.pio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static const struct pio_program squarewave_wrap_program = {
2929
.instructions = squarewave_wrap_program_instructions,
3030
.length = 3,
3131
.origin = -1,
32-
.pio_version = 0,
32+
.pio_version = squarewave_wrap_pio_version,
3333
#if PICO_PIO_VERSION > 0
3434
.used_gpio_ranges = 0x0
3535
#endif

pio/ws2812/generated/ws2812.pio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static const struct pio_program ws2812_program = {
3434
.instructions = ws2812_program_instructions,
3535
.length = 4,
3636
.origin = -1,
37-
.pio_version = 0,
37+
.pio_version = ws2812_pio_version,
3838
#if PICO_PIO_VERSION > 0
3939
.used_gpio_ranges = 0x0
4040
#endif
@@ -90,7 +90,7 @@ static const struct pio_program ws2812_parallel_program = {
9090
.instructions = ws2812_parallel_program_instructions,
9191
.length = 4,
9292
.origin = -1,
93-
.pio_version = 0,
93+
.pio_version = ws2812_parallel_pio_version,
9494
#if PICO_PIO_VERSION > 0
9595
.used_gpio_ranges = 0x0
9696
#endif

0 commit comments

Comments
 (0)