Skip to content

Commit

Permalink
Update pio files to match pico sdk 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
unitware committed Feb 18, 2025
1 parent c8ecde5 commit fab221e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interfaceLibForPicoSDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ target_sources(picodmx INTERFACE
${CMAKE_CURRENT_LIST_DIR}/src/DmxOutput.cpp
)

pico_generate_pio_header(picodmx
${CMAKE_CURRENT_LIST_DIR}/extras/DmxInputInverted.pio
)
pico_generate_pio_header(picodmx
${CMAKE_CURRENT_LIST_DIR}/extras/DmxInput.pio
)
Expand Down
5 changes: 5 additions & 0 deletions src/DmxInput.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#define DmxInput_wrap_target 4
#define DmxInput_wrap 10
#define DmxInput_pio_version 0

static const uint16_t DmxInput_program_instructions[] = {
0xe03d, // 0: set x, 29
Expand All @@ -36,6 +37,10 @@ static const struct pio_program DmxInput_program = {
.instructions = DmxInput_program_instructions,
.length = 11,
.origin = -1,
.pio_version = DmxInput_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
};

static inline pio_sm_config DmxInput_program_get_default_config(uint offset) {
Expand Down
7 changes: 7 additions & 0 deletions src/DmxInputInverted.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// This file is autogenerated by pioasm; do not edit! //
// -------------------------------------------------- //

#pragma once

#if !PICO_NO_HARDWARE
#include "hardware/pio.h"
#endif
Expand All @@ -12,6 +14,7 @@

#define DmxInputInverted_wrap_target 5
#define DmxInputInverted_wrap 12
#define DmxInputInverted_pio_version 0

static const uint16_t DmxInputInverted_program_instructions[] = {
0xe03d, // 0: set x, 29
Expand All @@ -36,6 +39,10 @@ static const struct pio_program DmxInputInverted_program = {
.instructions = DmxInputInverted_program_instructions,
.length = 13,
.origin = -1,
.pio_version = DmxInputInverted_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
};

static inline pio_sm_config DmxInputInverted_program_get_default_config(uint offset) {
Expand Down
7 changes: 7 additions & 0 deletions src/DmxOutput.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// This file is autogenerated by pioasm; do not edit! //
// -------------------------------------------------- //

#pragma once

#if !PICO_NO_HARDWARE
#include "hardware/pio.h"
#endif
Expand All @@ -12,6 +14,7 @@

#define DmxOutput_wrap_target 3
#define DmxOutput_wrap 6
#define DmxOutput_pio_version 0

static const uint16_t DmxOutput_program_instructions[] = {
0xf035, // 0: set x, 21 side 0
Expand All @@ -30,6 +33,10 @@ static const struct pio_program DmxOutput_program = {
.instructions = DmxOutput_program_instructions,
.length = 7,
.origin = -1,
.pio_version = DmxOutput_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
};

static inline pio_sm_config DmxOutput_program_get_default_config(uint offset) {
Expand Down

0 comments on commit fab221e

Please sign in to comment.