pico-sdk/tools/pioasm
Richard Hulme 5a2cbf93a6
Use 'constexpr' when including pio header files from a C++ compiler (#2651)
* Use 'constexpr' when including pio header files from a C++ compiler

In particular this allows compile-time checks to be performed on the
contents of pio_program structs via 'static_assert'.

This could be used (for example) to confirm that multiple PIO programs
fit in a single PIO module and abort compilation if not.

Fixes #2650

* Use feature test macro to check for 'constexpr' support

* Rename modifier PIO_CONST to __pio_const

---------

Co-authored-by: Graham Sanderson <graham.sanderson@gmail.com>
2026-03-02 14:12:14 -06:00
..
cmake SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
gen some minor pioasm fixes for #1950 (#2056) 2024-11-21 11:56:22 -06:00
test add pioasm --version, and print version number in generated files (#2554) 2025-07-15 15:09:36 -05:00
ada_output.cpp add pioasm --version, and print version number in generated files (#2554) 2025-07-15 15:09:36 -05:00
BUILD.bazel [bazel] Run buildifier on Bazel build files (#2825) 2026-03-02 10:24:17 +00:00
c_sdk_output.cpp Use 'constexpr' when including pio header files from a C++ compiler (#2651) 2026-03-02 14:12:14 -06:00
CMakeLists.txt add pioasm --version, and print version number in generated files (#2554) 2025-07-15 15:09:36 -05:00
go_output.cpp add pioasm --version, and print version number in generated files (#2554) 2025-07-15 15:09:36 -05:00
hex_output.cpp Initial Release 2021-01-20 10:44:27 -06:00
json_output.cpp [pioasm] Fix build warning due to extra parameters (#1625) 2024-05-19 16:48:53 -05:00
lexer.ll SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
main.cpp add pioasm --version, and print version number in generated files (#2554) 2025-07-15 15:09:36 -05:00
output_format.h Fix pioasm build failure caused by GCC 15 changes (#2448) (#2468) 2025-05-20 15:30:17 -05:00
parser.yy some minor pioasm fixes for #1950 (#2056) 2024-11-21 11:56:22 -06:00
pio_assembler.cpp Fix WAIT GPIO n for n > 32 and when using gpio_base = 16 (#2265) 2025-02-14 09:26:22 -06:00
pio_assembler.h SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
pio_disassembler.cpp small pioasm improvements (#2224) 2025-02-05 10:55:24 -06:00
pio_disassembler.h SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
pio_enums.h SDK 2.0.0 release 2024-08-08 08:54:38 -05:00
pio_types.h Fix pioasm build failure caused by GCC 15 changes (#2448) (#2468) 2025-05-20 15:30:17 -05:00
python_output.cpp add pioasm --version, and print version number in generated files (#2554) 2025-07-15 15:09:36 -05:00
version.h.in add pioasm --version, and print version number in generated files (#2554) 2025-07-15 15:09:36 -05:00