From b7ff2e980550fc165bcfc7ee38bf03754772982c Mon Sep 17 00:00:00 2001 From: Peter Harper <77111776+peterharperuk@users.noreply.github.com> Date: Sat, 23 Nov 2024 19:16:19 +0000 Subject: [PATCH] Fix pio headers that are used in SDK docs (#581) The PIO version in no longer hard coded. --- pio/squarewave/generated/squarewave.pio.h | 2 +- pio/squarewave/generated/squarewave_wrap.pio.h | 2 +- pio/ws2812/generated/ws2812.pio.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pio/squarewave/generated/squarewave.pio.h b/pio/squarewave/generated/squarewave.pio.h index af84dbd94..9cc0b42b9 100644 --- a/pio/squarewave/generated/squarewave.pio.h +++ b/pio/squarewave/generated/squarewave.pio.h @@ -30,7 +30,7 @@ static const struct pio_program squarewave_program = { .instructions = squarewave_program_instructions, .length = 4, .origin = -1, - .pio_version = 0, + .pio_version = squarewave_pio_version, #if PICO_PIO_VERSION > 0 .used_gpio_ranges = 0x0 #endif diff --git a/pio/squarewave/generated/squarewave_wrap.pio.h b/pio/squarewave/generated/squarewave_wrap.pio.h index c02819d65..f9644dae1 100644 --- a/pio/squarewave/generated/squarewave_wrap.pio.h +++ b/pio/squarewave/generated/squarewave_wrap.pio.h @@ -29,7 +29,7 @@ static const struct pio_program squarewave_wrap_program = { .instructions = squarewave_wrap_program_instructions, .length = 3, .origin = -1, - .pio_version = 0, + .pio_version = squarewave_wrap_pio_version, #if PICO_PIO_VERSION > 0 .used_gpio_ranges = 0x0 #endif diff --git a/pio/ws2812/generated/ws2812.pio.h b/pio/ws2812/generated/ws2812.pio.h index 100af23ee..5bbbdefd5 100644 --- a/pio/ws2812/generated/ws2812.pio.h +++ b/pio/ws2812/generated/ws2812.pio.h @@ -34,7 +34,7 @@ static const struct pio_program ws2812_program = { .instructions = ws2812_program_instructions, .length = 4, .origin = -1, - .pio_version = 0, + .pio_version = ws2812_pio_version, #if PICO_PIO_VERSION > 0 .used_gpio_ranges = 0x0 #endif @@ -90,7 +90,7 @@ static const struct pio_program ws2812_parallel_program = { .instructions = ws2812_parallel_program_instructions, .length = 4, .origin = -1, - .pio_version = 0, + .pio_version = ws2812_parallel_pio_version, #if PICO_PIO_VERSION > 0 .used_gpio_ranges = 0x0 #endif