Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pio files to match pico sdk 2.1 #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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