mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-03-14 21:19:43 +01:00
Update tests to the latest version.
This commit is contained in:
parent
acf0a5bc74
commit
98231df538
42 changed files with 452 additions and 200 deletions
|
|
@ -33,6 +33,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // --------------- //
|
||||
// // directives_test //
|
||||
// // --------------- //
|
||||
|
|
@ -43,7 +49,7 @@
|
|||
//
|
||||
// #define directives_test_myconst 42
|
||||
//
|
||||
// static const uint16_t directives_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t directives_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xb442, // 0: nop side 1
|
||||
// 0x80a0, // 1: pull block
|
||||
|
|
@ -55,7 +61,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program directives_test_program = {
|
||||
// static __pio_const struct pio_program directives_test_program = {
|
||||
// .instructions = directives_test_program_instructions,
|
||||
// .length = 6,
|
||||
// .origin = 3,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------- //
|
||||
// // minimal //
|
||||
// // ------- //
|
||||
|
|
@ -24,14 +30,14 @@
|
|||
// #define minimal_wrap 0
|
||||
// #define minimal_pio_version 0
|
||||
//
|
||||
// static const uint16_t minimal_program_instructions[] = {
|
||||
// static __pio_const uint16_t minimal_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program minimal_program = {
|
||||
// static __pio_const struct pio_program minimal_program = {
|
||||
// .instructions = minimal_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -34,6 +34,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------------------- //
|
||||
// // everything_kitchen_sink //
|
||||
// // ----------------------- //
|
||||
|
|
@ -44,7 +50,7 @@
|
|||
//
|
||||
// #define everything_kitchen_sink_test_constant 42
|
||||
//
|
||||
// static const uint16_t everything_kitchen_sink_program_instructions[] = {
|
||||
// static __pio_const uint16_t everything_kitchen_sink_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xfb03, // 0: set pins, 3 side 2 [3]
|
||||
// 0x7608, // 1: out pins, 8 side 1 [2]
|
||||
|
|
@ -56,7 +62,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program everything_kitchen_sink_program = {
|
||||
// static __pio_const struct pio_program everything_kitchen_sink_program = {
|
||||
// .instructions = everything_kitchen_sink_program_instructions,
|
||||
// .length = 6,
|
||||
// .origin = 10,
|
||||
|
|
|
|||
|
|
@ -22,6 +22,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------- //
|
||||
// // in_sources //
|
||||
// // ---------- //
|
||||
|
|
@ -30,7 +36,7 @@
|
|||
// #define in_sources_wrap 6
|
||||
// #define in_sources_pio_version 0
|
||||
//
|
||||
// static const uint16_t in_sources_program_instructions[] = {
|
||||
// static __pio_const uint16_t in_sources_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4004, // 0: in pins, 4
|
||||
// 0x4028, // 1: in x, 8
|
||||
|
|
@ -43,7 +49,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program in_sources_program = {
|
||||
// static __pio_const struct pio_program in_sources_program = {
|
||||
// .instructions = in_sources_program_instructions,
|
||||
// .length = 7,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // -------- //
|
||||
// // irq_test //
|
||||
// // -------- //
|
||||
|
|
@ -31,7 +37,7 @@
|
|||
// #define irq_test_wrap 7
|
||||
// #define irq_test_pio_version 1
|
||||
//
|
||||
// static const uint16_t irq_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t irq_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xc000, // 0: irq nowait 0
|
||||
// 0xc007, // 1: irq nowait 7
|
||||
|
|
@ -45,7 +51,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program irq_test_program = {
|
||||
// static __pio_const struct pio_program irq_test_program = {
|
||||
// .instructions = irq_test_program_instructions,
|
||||
// .length = 8,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@ start:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // -------- //
|
||||
// // jmp_test //
|
||||
// // -------- //
|
||||
|
|
@ -32,7 +38,7 @@ start:
|
|||
// #define jmp_test_wrap 7
|
||||
// #define jmp_test_pio_version 0
|
||||
//
|
||||
// static const uint16_t jmp_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t jmp_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x0000, // 0: jmp 0
|
||||
// 0x0020, // 1: jmp !x, 0
|
||||
|
|
@ -46,7 +52,7 @@ start:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program jmp_test_program = {
|
||||
// static __pio_const struct pio_program jmp_test_program = {
|
||||
// .instructions = jmp_test_program_instructions,
|
||||
// .length = 8,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // --------- //
|
||||
// // mov_combo //
|
||||
// // --------- //
|
||||
|
|
@ -35,7 +41,7 @@
|
|||
// #define mov_combo_wrap 10
|
||||
// #define mov_combo_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_combo_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_combo_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa022, // 0: mov x, y
|
||||
// 0xa041, // 1: mov y, x
|
||||
|
|
@ -52,7 +58,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_combo_program = {
|
||||
// static __pio_const struct pio_program mov_combo_program = {
|
||||
// .instructions = mov_combo_program_instructions,
|
||||
// .length = 11,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // -------- //
|
||||
// // mov_test //
|
||||
// // -------- //
|
||||
|
|
@ -32,7 +38,7 @@
|
|||
// #define mov_test_wrap 8
|
||||
// #define mov_test_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa022, // 0: mov x, y
|
||||
// 0xa02a, // 1: mov x, ~y
|
||||
|
|
@ -47,7 +53,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_test_program = {
|
||||
// static __pio_const struct pio_program mov_test_program = {
|
||||
// .instructions = mov_test_program_instructions,
|
||||
// .length = 9,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------- //
|
||||
// // out_targets //
|
||||
// // ----------- //
|
||||
|
|
@ -31,7 +37,7 @@
|
|||
// #define out_targets_wrap 7
|
||||
// #define out_targets_pio_version 0
|
||||
//
|
||||
// static const uint16_t out_targets_program_instructions[] = {
|
||||
// static __pio_const uint16_t out_targets_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x6004, // 0: out pins, 4
|
||||
// 0x6028, // 1: out x, 8
|
||||
|
|
@ -45,7 +51,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program out_targets_program = {
|
||||
// static __pio_const struct pio_program out_targets_program = {
|
||||
// .instructions = out_targets_program_instructions,
|
||||
// .length = 8,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -25,6 +25,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // -------------- //
|
||||
// // push_pull_test //
|
||||
// // -------------- //
|
||||
|
|
@ -33,7 +39,7 @@
|
|||
// #define push_pull_test_wrap 9
|
||||
// #define push_pull_test_pio_version 0
|
||||
//
|
||||
// static const uint16_t push_pull_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t push_pull_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x8020, // 0: push block
|
||||
// 0x8020, // 1: push block
|
||||
|
|
@ -49,7 +55,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program push_pull_test_program = {
|
||||
// static __pio_const struct pio_program push_pull_test_program = {
|
||||
// .instructions = push_pull_test_program_instructions,
|
||||
// .length = 10,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------- //
|
||||
// // set_targets //
|
||||
// // ----------- //
|
||||
|
|
@ -27,7 +33,7 @@
|
|||
// #define set_targets_wrap 3
|
||||
// #define set_targets_pio_version 0
|
||||
//
|
||||
// static const uint16_t set_targets_program_instructions[] = {
|
||||
// static __pio_const uint16_t set_targets_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xe000, // 0: set pins, 0
|
||||
// 0xe021, // 1: set x, 1
|
||||
|
|
@ -37,7 +43,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program set_targets_program = {
|
||||
// static __pio_const struct pio_program set_targets_program = {
|
||||
// .instructions = set_targets_program_instructions,
|
||||
// .length = 4,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // --------- //
|
||||
// // wait_test //
|
||||
// // --------- //
|
||||
|
|
@ -31,7 +37,7 @@
|
|||
// #define wait_test_wrap 7
|
||||
// #define wait_test_pio_version 1
|
||||
//
|
||||
// static const uint16_t wait_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t wait_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x2005, // 0: wait 0 gpio, 5
|
||||
// 0x208a, // 1: wait 1 gpio, 10
|
||||
|
|
@ -45,7 +51,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wait_test_program = {
|
||||
// static __pio_const struct pio_program wait_test_program = {
|
||||
// .instructions = wait_test_program_instructions,
|
||||
// .length = 8,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -37,6 +37,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------------- //
|
||||
// // clock_div_integer //
|
||||
// // ----------------- //
|
||||
|
|
@ -45,14 +51,14 @@
|
|||
// #define clock_div_integer_wrap 0
|
||||
// #define clock_div_integer_pio_version 0
|
||||
//
|
||||
// static const uint16_t clock_div_integer_program_instructions[] = {
|
||||
// static __pio_const uint16_t clock_div_integer_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program clock_div_integer_program = {
|
||||
// static __pio_const struct pio_program clock_div_integer_program = {
|
||||
// .instructions = clock_div_integer_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -77,14 +83,14 @@
|
|||
// #define clock_div_fractional_wrap 0
|
||||
// #define clock_div_fractional_pio_version 0
|
||||
//
|
||||
// static const uint16_t clock_div_fractional_program_instructions[] = {
|
||||
// static __pio_const uint16_t clock_div_fractional_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program clock_div_fractional_program = {
|
||||
// static __pio_const struct pio_program clock_div_fractional_program = {
|
||||
// .instructions = clock_div_fractional_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -110,14 +116,14 @@
|
|||
// #define clock_div_small_fraction_wrap 0
|
||||
// #define clock_div_small_fraction_pio_version 0
|
||||
//
|
||||
// static const uint16_t clock_div_small_fraction_program_instructions[] = {
|
||||
// static __pio_const uint16_t clock_div_small_fraction_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program clock_div_small_fraction_program = {
|
||||
// static __pio_const struct pio_program clock_div_small_fraction_program = {
|
||||
// .instructions = clock_div_small_fraction_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -143,14 +149,14 @@
|
|||
// #define clock_div_large_fraction_wrap 0
|
||||
// #define clock_div_large_fraction_pio_version 0
|
||||
//
|
||||
// static const uint16_t clock_div_large_fraction_program_instructions[] = {
|
||||
// static __pio_const uint16_t clock_div_large_fraction_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program clock_div_large_fraction_program = {
|
||||
// static __pio_const struct pio_program clock_div_large_fraction_program = {
|
||||
// .instructions = clock_div_large_fraction_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -176,14 +182,14 @@
|
|||
// #define clock_div_max_integer_wrap 0
|
||||
// #define clock_div_max_integer_pio_version 0
|
||||
//
|
||||
// static const uint16_t clock_div_max_integer_program_instructions[] = {
|
||||
// static __pio_const uint16_t clock_div_max_integer_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program clock_div_max_integer_program = {
|
||||
// static __pio_const struct pio_program clock_div_max_integer_program = {
|
||||
// .instructions = clock_div_max_integer_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -209,14 +215,14 @@
|
|||
// #define clock_div_complex_wrap 0
|
||||
// #define clock_div_complex_pio_version 0
|
||||
//
|
||||
// static const uint16_t clock_div_complex_program_instructions[] = {
|
||||
// static __pio_const uint16_t clock_div_complex_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program clock_div_complex_program = {
|
||||
// static __pio_const struct pio_program clock_div_complex_program = {
|
||||
// .instructions = clock_div_complex_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -47,6 +47,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // --------- //
|
||||
// // delay_all //
|
||||
// // --------- //
|
||||
|
|
@ -55,7 +61,7 @@
|
|||
// #define delay_all_wrap 31
|
||||
// #define delay_all_pio_version 0
|
||||
//
|
||||
// static const uint16_t delay_all_program_instructions[] = {
|
||||
// static __pio_const uint16_t delay_all_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa142, // 1: nop [1]
|
||||
|
|
@ -93,7 +99,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program delay_all_program = {
|
||||
// static __pio_const struct pio_program delay_all_program = {
|
||||
// .instructions = delay_all_program_instructions,
|
||||
// .length = 32,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -55,6 +55,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------------ //
|
||||
// // fifo_comprehensive //
|
||||
// // ------------------ //
|
||||
|
|
@ -63,14 +69,14 @@
|
|||
// #define fifo_comprehensive_wrap 0
|
||||
// #define fifo_comprehensive_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_comprehensive_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_comprehensive_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_comprehensive_program = {
|
||||
// static __pio_const struct pio_program fifo_comprehensive_program = {
|
||||
// .instructions = fifo_comprehensive_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -96,14 +102,14 @@
|
|||
// #define fifo_comprehensive_rx_wrap 0
|
||||
// #define fifo_comprehensive_rx_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_comprehensive_rx_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_comprehensive_rx_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_comprehensive_rx_program = {
|
||||
// static __pio_const struct pio_program fifo_comprehensive_rx_program = {
|
||||
// .instructions = fifo_comprehensive_rx_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -129,14 +135,14 @@
|
|||
// #define fifo_comprehensive_txrx_wrap 0
|
||||
// #define fifo_comprehensive_txrx_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_comprehensive_txrx_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_comprehensive_txrx_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_comprehensive_txrx_program = {
|
||||
// static __pio_const struct pio_program fifo_comprehensive_txrx_program = {
|
||||
// .instructions = fifo_comprehensive_txrx_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -161,14 +167,14 @@
|
|||
// #define fifo_comprehensive_txput_wrap 0
|
||||
// #define fifo_comprehensive_txput_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_comprehensive_txput_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_comprehensive_txput_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_comprehensive_txput_program = {
|
||||
// static __pio_const struct pio_program fifo_comprehensive_txput_program = {
|
||||
// .instructions = fifo_comprehensive_txput_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -194,14 +200,14 @@
|
|||
// #define fifo_comprehensive_txget_wrap 0
|
||||
// #define fifo_comprehensive_txget_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_comprehensive_txget_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_comprehensive_txget_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_comprehensive_txget_program = {
|
||||
// static __pio_const struct pio_program fifo_comprehensive_txget_program = {
|
||||
// .instructions = fifo_comprehensive_txget_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -227,14 +233,14 @@
|
|||
// #define fifo_comprehensive_putget_wrap 0
|
||||
// #define fifo_comprehensive_putget_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_comprehensive_putget_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_comprehensive_putget_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_comprehensive_putget_program = {
|
||||
// static __pio_const struct pio_program fifo_comprehensive_putget_program = {
|
||||
// .instructions = fifo_comprehensive_putget_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -260,7 +266,7 @@
|
|||
// #define fifo_with_push_pull_txrx_wrap 1
|
||||
// #define fifo_with_push_pull_txrx_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_with_push_pull_txrx_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_with_push_pull_txrx_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x8020, // 0: push block
|
||||
// 0x80a0, // 1: pull block
|
||||
|
|
@ -268,7 +274,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_with_push_pull_txrx_program = {
|
||||
// static __pio_const struct pio_program fifo_with_push_pull_txrx_program = {
|
||||
// .instructions = fifo_with_push_pull_txrx_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -293,7 +299,7 @@
|
|||
// #define fifo_with_push_pull_rx_wrap 1
|
||||
// #define fifo_with_push_pull_rx_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_with_push_pull_rx_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_with_push_pull_rx_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x8020, // 0: push block
|
||||
// 0x80a0, // 1: pull block
|
||||
|
|
@ -301,7 +307,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_with_push_pull_rx_program = {
|
||||
// static __pio_const struct pio_program fifo_with_push_pull_rx_program = {
|
||||
// .instructions = fifo_with_push_pull_rx_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -59,6 +59,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------------------- //
|
||||
// // mov_status_tx_lessthan //
|
||||
// // ---------------------- //
|
||||
|
|
@ -67,7 +73,7 @@
|
|||
// #define mov_status_tx_lessthan_wrap 1
|
||||
// #define mov_status_tx_lessthan_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_tx_lessthan_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_tx_lessthan_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa025, // 0: mov x, status
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -75,7 +81,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_tx_lessthan_program = {
|
||||
// static __pio_const struct pio_program mov_status_tx_lessthan_program = {
|
||||
// .instructions = mov_status_tx_lessthan_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -101,14 +107,14 @@
|
|||
// #define mov_status_tx_zero_wrap 0
|
||||
// #define mov_status_tx_zero_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_tx_zero_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_tx_zero_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa025, // 0: mov x, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_tx_zero_program = {
|
||||
// static __pio_const struct pio_program mov_status_tx_zero_program = {
|
||||
// .instructions = mov_status_tx_zero_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -134,14 +140,14 @@
|
|||
// #define mov_status_tx_max_wrap 0
|
||||
// #define mov_status_tx_max_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_tx_max_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_tx_max_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa025, // 0: mov x, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_tx_max_program = {
|
||||
// static __pio_const struct pio_program mov_status_tx_max_program = {
|
||||
// .instructions = mov_status_tx_max_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -167,14 +173,14 @@
|
|||
// #define mov_status_rx_lessthan_wrap 0
|
||||
// #define mov_status_rx_lessthan_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_rx_lessthan_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_rx_lessthan_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa045, // 0: mov y, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_rx_lessthan_program = {
|
||||
// static __pio_const struct pio_program mov_status_rx_lessthan_program = {
|
||||
// .instructions = mov_status_rx_lessthan_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -200,14 +206,14 @@
|
|||
// #define mov_status_rx_max_wrap 0
|
||||
// #define mov_status_rx_max_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_rx_max_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_rx_max_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa045, // 0: mov y, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_rx_max_program = {
|
||||
// static __pio_const struct pio_program mov_status_rx_max_program = {
|
||||
// .instructions = mov_status_rx_max_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -233,14 +239,14 @@
|
|||
// #define mov_status_irq_set_wrap 0
|
||||
// #define mov_status_irq_set_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_irq_set_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_irq_set_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa0c5, // 0: mov isr, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_irq_set_program = {
|
||||
// static __pio_const struct pio_program mov_status_irq_set_program = {
|
||||
// .instructions = mov_status_irq_set_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -266,14 +272,14 @@
|
|||
// #define mov_status_irq_zero_wrap 0
|
||||
// #define mov_status_irq_zero_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_irq_zero_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_irq_zero_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa0c5, // 0: mov isr, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_irq_zero_program = {
|
||||
// static __pio_const struct pio_program mov_status_irq_zero_program = {
|
||||
// .instructions = mov_status_irq_zero_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -299,14 +305,14 @@
|
|||
// #define mov_status_irq_max_wrap 0
|
||||
// #define mov_status_irq_max_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_irq_max_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_irq_max_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa0c5, // 0: mov isr, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_irq_max_program = {
|
||||
// static __pio_const struct pio_program mov_status_irq_max_program = {
|
||||
// .instructions = mov_status_irq_max_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -332,14 +338,14 @@
|
|||
// #define mov_status_irq_rel_wrap 0
|
||||
// #define mov_status_irq_rel_pio_version 1
|
||||
//
|
||||
// static const uint16_t mov_status_irq_rel_program_instructions[] = {
|
||||
// static __pio_const uint16_t mov_status_irq_rel_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa0e5, // 0: mov osr, status
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program mov_status_irq_rel_program = {
|
||||
// static __pio_const struct pio_program mov_status_irq_rel_program = {
|
||||
// .instructions = mov_status_irq_rel_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -22,6 +22,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------- //
|
||||
// // origin_zero //
|
||||
// // ----------- //
|
||||
|
|
@ -30,7 +36,7 @@
|
|||
// #define origin_zero_wrap 1
|
||||
// #define origin_zero_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_zero_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_zero_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -38,7 +44,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_zero_program = {
|
||||
// static __pio_const struct pio_program origin_zero_program = {
|
||||
// .instructions = origin_zero_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = 0,
|
||||
|
|
@ -63,14 +69,14 @@
|
|||
// #define origin_five_wrap 0
|
||||
// #define origin_five_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_five_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_five_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_five_program = {
|
||||
// static __pio_const struct pio_program origin_five_program = {
|
||||
// .instructions = origin_five_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = 5,
|
||||
|
|
|
|||
|
|
@ -47,6 +47,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------------------ //
|
||||
// // pin_config_comprehensive //
|
||||
// // ------------------------ //
|
||||
|
|
@ -55,7 +61,7 @@
|
|||
// #define pin_config_comprehensive_wrap 2
|
||||
// #define pin_config_comprehensive_pio_version 1
|
||||
//
|
||||
// static const uint16_t pin_config_comprehensive_program_instructions[] = {
|
||||
// static __pio_const uint16_t pin_config_comprehensive_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xe005, // 0: set pins, 5
|
||||
// 0x4008, // 1: in pins, 8
|
||||
|
|
@ -64,7 +70,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pin_config_comprehensive_program = {
|
||||
// static __pio_const struct pio_program pin_config_comprehensive_program = {
|
||||
// .instructions = pin_config_comprehensive_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -94,14 +100,14 @@
|
|||
// #define pin_config_set_zero_wrap 0
|
||||
// #define pin_config_set_zero_pio_version 1
|
||||
//
|
||||
// static const uint16_t pin_config_set_zero_program_instructions[] = {
|
||||
// static __pio_const uint16_t pin_config_set_zero_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pin_config_set_zero_program = {
|
||||
// static __pio_const struct pio_program pin_config_set_zero_program = {
|
||||
// .instructions = pin_config_set_zero_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -127,14 +133,14 @@
|
|||
// #define pin_config_set_max_wrap 0
|
||||
// #define pin_config_set_max_pio_version 1
|
||||
//
|
||||
// static const uint16_t pin_config_set_max_program_instructions[] = {
|
||||
// static __pio_const uint16_t pin_config_set_max_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xe01f, // 0: set pins, 31
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pin_config_set_max_program = {
|
||||
// static __pio_const struct pio_program pin_config_set_max_program = {
|
||||
// .instructions = pin_config_set_max_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -160,14 +166,14 @@
|
|||
// #define pin_config_in_min_wrap 0
|
||||
// #define pin_config_in_min_pio_version 1
|
||||
//
|
||||
// static const uint16_t pin_config_in_min_program_instructions[] = {
|
||||
// static __pio_const uint16_t pin_config_in_min_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4001, // 0: in pins, 1
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pin_config_in_min_program = {
|
||||
// static __pio_const struct pio_program pin_config_in_min_program = {
|
||||
// .instructions = pin_config_in_min_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -194,14 +200,14 @@
|
|||
// #define pin_config_in_max_wrap 0
|
||||
// #define pin_config_in_max_pio_version 1
|
||||
//
|
||||
// static const uint16_t pin_config_in_max_program_instructions[] = {
|
||||
// static __pio_const uint16_t pin_config_in_max_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4000, // 0: in pins, 32
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pin_config_in_max_program = {
|
||||
// static __pio_const struct pio_program pin_config_in_max_program = {
|
||||
// .instructions = pin_config_in_max_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -228,14 +234,14 @@
|
|||
// #define pin_config_out_zero_wrap 0
|
||||
// #define pin_config_out_zero_pio_version 1
|
||||
//
|
||||
// static const uint16_t pin_config_out_zero_program_instructions[] = {
|
||||
// static __pio_const uint16_t pin_config_out_zero_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pin_config_out_zero_program = {
|
||||
// static __pio_const struct pio_program pin_config_out_zero_program = {
|
||||
// .instructions = pin_config_out_zero_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -262,14 +268,14 @@
|
|||
// #define pin_config_out_max_wrap 0
|
||||
// #define pin_config_out_max_pio_version 1
|
||||
//
|
||||
// static const uint16_t pin_config_out_max_program_instructions[] = {
|
||||
// static __pio_const uint16_t pin_config_out_max_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x6000, // 0: out pins, 32
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pin_config_out_max_program = {
|
||||
// static __pio_const struct pio_program pin_config_out_max_program = {
|
||||
// .instructions = pin_config_out_max_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -64,6 +64,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------- //
|
||||
// // shift_left //
|
||||
// // ---------- //
|
||||
|
|
@ -72,14 +78,14 @@
|
|||
// #define shift_left_wrap 0
|
||||
// #define shift_left_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_left_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_left_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4008, // 0: in pins, 8
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_left_program = {
|
||||
// static __pio_const struct pio_program shift_left_program = {
|
||||
// .instructions = shift_left_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -106,14 +112,14 @@
|
|||
// #define shift_right_wrap 0
|
||||
// #define shift_right_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_right_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_right_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4008, // 0: in pins, 8
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_right_program = {
|
||||
// static __pio_const struct pio_program shift_right_program = {
|
||||
// .instructions = shift_right_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -140,7 +146,7 @@
|
|||
// #define shift_autopush_wrap 1
|
||||
// #define shift_autopush_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_autopush_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_autopush_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4008, // 0: in pins, 8
|
||||
// 0x4008, // 1: in pins, 8
|
||||
|
|
@ -148,7 +154,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_autopush_program = {
|
||||
// static __pio_const struct pio_program shift_autopush_program = {
|
||||
// .instructions = shift_autopush_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -175,7 +181,7 @@
|
|||
// #define shift_autopush_threshold_wrap 1
|
||||
// #define shift_autopush_threshold_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_autopush_threshold_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_autopush_threshold_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4008, // 0: in pins, 8
|
||||
// 0x4008, // 1: in pins, 8
|
||||
|
|
@ -183,7 +189,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_autopush_threshold_program = {
|
||||
// static __pio_const struct pio_program shift_autopush_threshold_program = {
|
||||
// .instructions = shift_autopush_threshold_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -210,14 +216,14 @@
|
|||
// #define shift_out_left_wrap 0
|
||||
// #define shift_out_left_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_out_left_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_out_left_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x6004, // 0: out pins, 4
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_out_left_program = {
|
||||
// static __pio_const struct pio_program shift_out_left_program = {
|
||||
// .instructions = shift_out_left_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -244,14 +250,14 @@
|
|||
// #define shift_out_right_wrap 0
|
||||
// #define shift_out_right_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_out_right_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_out_right_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x6004, // 0: out pins, 4
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_out_right_program = {
|
||||
// static __pio_const struct pio_program shift_out_right_program = {
|
||||
// .instructions = shift_out_right_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -278,7 +284,7 @@
|
|||
// #define shift_out_autopull_wrap 1
|
||||
// #define shift_out_autopull_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_out_autopull_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_out_autopull_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x6008, // 0: out pins, 8
|
||||
// 0x6008, // 1: out pins, 8
|
||||
|
|
@ -286,7 +292,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_out_autopull_program = {
|
||||
// static __pio_const struct pio_program shift_out_autopull_program = {
|
||||
// .instructions = shift_out_autopull_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -313,7 +319,7 @@
|
|||
// #define shift_out_autopull_threshold_wrap 1
|
||||
// #define shift_out_autopull_threshold_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_out_autopull_threshold_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_out_autopull_threshold_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x6008, // 0: out pins, 8
|
||||
// 0x6008, // 1: out pins, 8
|
||||
|
|
@ -321,7 +327,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_out_autopull_threshold_program = {
|
||||
// static __pio_const struct pio_program shift_out_autopull_threshold_program = {
|
||||
// .instructions = shift_out_autopull_threshold_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -348,7 +354,7 @@
|
|||
// #define shift_combined_wrap 1
|
||||
// #define shift_combined_pio_version 1
|
||||
//
|
||||
// static const uint16_t shift_combined_program_instructions[] = {
|
||||
// static __pio_const uint16_t shift_combined_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4008, // 0: in pins, 8
|
||||
// 0x6004, // 1: out pins, 4
|
||||
|
|
@ -356,7 +362,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program shift_combined_program = {
|
||||
// static __pio_const struct pio_program shift_combined_program = {
|
||||
// .instructions = shift_combined_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // --------- //
|
||||
// // sideset_1 //
|
||||
// // --------- //
|
||||
|
|
@ -35,7 +41,7 @@
|
|||
// #define sideset_1_wrap 1
|
||||
// #define sideset_1_pio_version 0
|
||||
//
|
||||
// static const uint16_t sideset_1_program_instructions[] = {
|
||||
// static __pio_const uint16_t sideset_1_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop side 0
|
||||
// 0xb042, // 1: nop side 1
|
||||
|
|
@ -43,7 +49,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program sideset_1_program = {
|
||||
// static __pio_const struct pio_program sideset_1_program = {
|
||||
// .instructions = sideset_1_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -69,7 +75,7 @@
|
|||
// #define sideset_opt_wrap 1
|
||||
// #define sideset_opt_pio_version 0
|
||||
//
|
||||
// static const uint16_t sideset_opt_program_instructions[] = {
|
||||
// static __pio_const uint16_t sideset_opt_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xbc42, // 1: nop side 3
|
||||
|
|
@ -77,7 +83,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program sideset_opt_program = {
|
||||
// static __pio_const struct pio_program sideset_opt_program = {
|
||||
// .instructions = sideset_opt_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -103,14 +109,14 @@
|
|||
// #define sideset_pindirs_wrap 0
|
||||
// #define sideset_pindirs_pio_version 0
|
||||
//
|
||||
// static const uint16_t sideset_pindirs_program_instructions[] = {
|
||||
// static __pio_const uint16_t sideset_pindirs_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xbe42, // 0: nop side 7
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program sideset_pindirs_program = {
|
||||
// static __pio_const struct pio_program sideset_pindirs_program = {
|
||||
// .instructions = sideset_pindirs_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -28,6 +28,12 @@ wrap_mid:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------- //
|
||||
// // wrap_begin //
|
||||
// // ---------- //
|
||||
|
|
@ -36,7 +42,7 @@ wrap_mid:
|
|||
// #define wrap_begin_wrap 1
|
||||
// #define wrap_begin_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_begin_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_begin_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0x0000, // 1: jmp 0
|
||||
|
|
@ -44,7 +50,7 @@ wrap_mid:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_begin_program = {
|
||||
// static __pio_const struct pio_program wrap_begin_program = {
|
||||
// .instructions = wrap_begin_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -69,7 +75,7 @@ wrap_mid:
|
|||
// #define wrap_mid_wrap 2
|
||||
// #define wrap_mid_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_mid_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_mid_program_instructions[] = {
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap_target
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -78,7 +84,7 @@ wrap_mid:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_mid_program = {
|
||||
// static __pio_const struct pio_program wrap_mid_program = {
|
||||
// .instructions = wrap_mid_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------- //
|
||||
// // boundary_test //
|
||||
// // ------------- //
|
||||
|
|
@ -29,7 +35,7 @@
|
|||
// #define boundary_test_wrap 5
|
||||
// #define boundary_test_pio_version 0
|
||||
//
|
||||
// static const uint16_t boundary_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t boundary_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4001, // 0: in pins, 1
|
||||
// 0x4000, // 1: in pins, 32
|
||||
|
|
@ -41,7 +47,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program boundary_test_program = {
|
||||
// static __pio_const struct pio_program boundary_test_program = {
|
||||
// .instructions = boundary_test_program_instructions,
|
||||
// .length = 6,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@ start:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------ //
|
||||
// // complex_prog //
|
||||
// // ------------ //
|
||||
|
|
@ -32,7 +38,7 @@ start:
|
|||
// #define complex_prog_wrap 4
|
||||
// #define complex_prog_pio_version 0
|
||||
//
|
||||
// static const uint16_t complex_prog_program_instructions[] = {
|
||||
// static __pio_const uint16_t complex_prog_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x80a0, // 0: pull block
|
||||
// 0x7808, // 1: out pins, 8 side 1
|
||||
|
|
@ -43,7 +49,7 @@ start:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program complex_prog_program = {
|
||||
// static __pio_const struct pio_program complex_prog_program = {
|
||||
// .instructions = complex_prog_program_instructions,
|
||||
// .length = 5,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -55,6 +55,12 @@ public setup:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // -------------- //
|
||||
// // entry_at_start //
|
||||
// // -------------- //
|
||||
|
|
@ -65,7 +71,7 @@ public setup:
|
|||
//
|
||||
// #define entry_at_start_offset_entry_start 0u
|
||||
//
|
||||
// static const uint16_t entry_at_start_program_instructions[] = {
|
||||
// static __pio_const uint16_t entry_at_start_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -73,7 +79,7 @@ public setup:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program entry_at_start_program = {
|
||||
// static __pio_const struct pio_program entry_at_start_program = {
|
||||
// .instructions = entry_at_start_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -100,7 +106,7 @@ public setup:
|
|||
//
|
||||
// #define entry_in_middle_offset_entry_middle 1u
|
||||
//
|
||||
// static const uint16_t entry_in_middle_program_instructions[] = {
|
||||
// static __pio_const uint16_t entry_in_middle_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -109,7 +115,7 @@ public setup:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program entry_in_middle_program = {
|
||||
// static __pio_const struct pio_program entry_in_middle_program = {
|
||||
// .instructions = entry_in_middle_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -136,7 +142,7 @@ public setup:
|
|||
//
|
||||
// #define entry_at_end_offset_entry_end 2u
|
||||
//
|
||||
// static const uint16_t entry_at_end_program_instructions[] = {
|
||||
// static __pio_const uint16_t entry_at_end_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -145,7 +151,7 @@ public setup:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program entry_at_end_program = {
|
||||
// static __pio_const struct pio_program entry_at_end_program = {
|
||||
// .instructions = entry_at_end_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -174,7 +180,7 @@ public setup:
|
|||
// #define multiple_entries_offset_process 1u
|
||||
// #define multiple_entries_offset_cleanup 2u
|
||||
//
|
||||
// static const uint16_t multiple_entries_program_instructions[] = {
|
||||
// static __pio_const uint16_t multiple_entries_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -183,7 +189,7 @@ public setup:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program multiple_entries_program = {
|
||||
// static __pio_const struct pio_program multiple_entries_program = {
|
||||
// .instructions = multiple_entries_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -210,7 +216,7 @@ public setup:
|
|||
//
|
||||
// #define entry_with_wrap_offset_loop_start 0u
|
||||
//
|
||||
// static const uint16_t entry_with_wrap_program_instructions[] = {
|
||||
// static __pio_const uint16_t entry_with_wrap_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -218,7 +224,7 @@ public setup:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program entry_with_wrap_program = {
|
||||
// static __pio_const struct pio_program entry_with_wrap_program = {
|
||||
// .instructions = entry_with_wrap_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -245,7 +251,7 @@ public setup:
|
|||
//
|
||||
// #define entry_outside_wrap_offset_setup 0u
|
||||
//
|
||||
// static const uint16_t entry_outside_wrap_program_instructions[] = {
|
||||
// static __pio_const uint16_t entry_outside_wrap_program_instructions[] = {
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap_target
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -254,7 +260,7 @@ public setup:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program entry_outside_wrap_program = {
|
||||
// static __pio_const struct pio_program entry_outside_wrap_program = {
|
||||
// .instructions = entry_outside_wrap_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -49,6 +49,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------- //
|
||||
// // max_program //
|
||||
// // ----------- //
|
||||
|
|
@ -57,7 +63,7 @@
|
|||
// #define max_program_wrap 31
|
||||
// #define max_program_pio_version 0
|
||||
//
|
||||
// static const uint16_t max_program_program_instructions[] = {
|
||||
// static __pio_const uint16_t max_program_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -95,7 +101,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program max_program_program = {
|
||||
// static __pio_const struct pio_program max_program_program = {
|
||||
// .instructions = max_program_program_instructions,
|
||||
// .length = 32,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------ //
|
||||
// // prog_a //
|
||||
// // ------ //
|
||||
|
|
@ -27,14 +33,14 @@
|
|||
// #define prog_a_wrap 0
|
||||
// #define prog_a_pio_version 0
|
||||
//
|
||||
// static const uint16_t prog_a_program_instructions[] = {
|
||||
// static __pio_const uint16_t prog_a_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program prog_a_program = {
|
||||
// static __pio_const struct pio_program prog_a_program = {
|
||||
// .instructions = prog_a_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -59,14 +65,14 @@
|
|||
// #define prog_b_wrap 0
|
||||
// #define prog_b_pio_version 0
|
||||
//
|
||||
// static const uint16_t prog_b_program_instructions[] = {
|
||||
// static __pio_const uint16_t prog_b_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program prog_b_program = {
|
||||
// static __pio_const struct pio_program prog_b_program = {
|
||||
// .instructions = prog_b_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -42,6 +42,12 @@ start:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------------------- //
|
||||
// // origin_zero_with_jumps //
|
||||
// // ---------------------- //
|
||||
|
|
@ -50,7 +56,7 @@ start:
|
|||
// #define origin_zero_with_jumps_wrap 2
|
||||
// #define origin_zero_with_jumps_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_zero_with_jumps_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_zero_with_jumps_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x0000, // 0: jmp 0
|
||||
// 0x0002, // 1: jmp 2
|
||||
|
|
@ -59,7 +65,7 @@ start:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_zero_with_jumps_program = {
|
||||
// static __pio_const struct pio_program origin_zero_with_jumps_program = {
|
||||
// .instructions = origin_zero_with_jumps_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = 0,
|
||||
|
|
@ -84,7 +90,7 @@ start:
|
|||
// #define origin_at_end_wrap 2
|
||||
// #define origin_at_end_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_at_end_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_at_end_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -93,7 +99,7 @@ start:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_at_end_program = {
|
||||
// static __pio_const struct pio_program origin_at_end_program = {
|
||||
// .instructions = origin_at_end_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = 29,
|
||||
|
|
@ -118,7 +124,7 @@ start:
|
|||
// #define origin_with_wrap_target_wrap 1
|
||||
// #define origin_with_wrap_target_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_with_wrap_target_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_with_wrap_target_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -126,7 +132,7 @@ start:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_with_wrap_target_program = {
|
||||
// static __pio_const struct pio_program origin_with_wrap_target_program = {
|
||||
// .instructions = origin_with_wrap_target_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = 15,
|
||||
|
|
@ -151,7 +157,7 @@ start:
|
|||
// #define origin_affects_jmp_wrap 1
|
||||
// #define origin_affects_jmp_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_affects_jmp_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_affects_jmp_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x0000, // 0: jmp 0
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -159,7 +165,7 @@ start:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_affects_jmp_program = {
|
||||
// static __pio_const struct pio_program origin_affects_jmp_program = {
|
||||
// .instructions = origin_affects_jmp_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = 10,
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------------------- //
|
||||
// // origin_overwrite_simple //
|
||||
// // ----------------------- //
|
||||
|
|
@ -35,7 +41,7 @@
|
|||
// #define origin_overwrite_simple_wrap 1
|
||||
// #define origin_overwrite_simple_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_overwrite_simple_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_overwrite_simple_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -43,7 +49,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_overwrite_simple_program = {
|
||||
// static __pio_const struct pio_program origin_overwrite_simple_program = {
|
||||
// .instructions = origin_overwrite_simple_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = 10,
|
||||
|
|
@ -68,14 +74,14 @@
|
|||
// #define origin_overwrite_multiple_wrap 0
|
||||
// #define origin_overwrite_multiple_pio_version 0
|
||||
//
|
||||
// static const uint16_t origin_overwrite_multiple_program_instructions[] = {
|
||||
// static __pio_const uint16_t origin_overwrite_multiple_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program origin_overwrite_multiple_program = {
|
||||
// static __pio_const struct pio_program origin_overwrite_multiple_program = {
|
||||
// .instructions = origin_overwrite_multiple_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = 20,
|
||||
|
|
|
|||
|
|
@ -66,6 +66,12 @@ loop2:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------------------- //
|
||||
// // wrap_single_instruction //
|
||||
// // ----------------------- //
|
||||
|
|
@ -74,14 +80,14 @@ loop2:
|
|||
// #define wrap_single_instruction_wrap 0
|
||||
// #define wrap_single_instruction_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_single_instruction_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_single_instruction_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_single_instruction_program = {
|
||||
// static __pio_const struct pio_program wrap_single_instruction_program = {
|
||||
// .instructions = wrap_single_instruction_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -106,7 +112,7 @@ loop2:
|
|||
// #define wrap_last_instruction_wrap 2
|
||||
// #define wrap_last_instruction_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_last_instruction_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_last_instruction_program_instructions[] = {
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
// // .wrap_target
|
||||
|
|
@ -115,7 +121,7 @@ loop2:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_last_instruction_program = {
|
||||
// static __pio_const struct pio_program wrap_last_instruction_program = {
|
||||
// .instructions = wrap_last_instruction_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -140,7 +146,7 @@ loop2:
|
|||
// #define wrap_entire_program_wrap 3
|
||||
// #define wrap_entire_program_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_entire_program_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_entire_program_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -150,7 +156,7 @@ loop2:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_entire_program_program = {
|
||||
// static __pio_const struct pio_program wrap_entire_program_program = {
|
||||
// .instructions = wrap_entire_program_program_instructions,
|
||||
// .length = 4,
|
||||
// .origin = -1,
|
||||
|
|
@ -175,7 +181,7 @@ loop2:
|
|||
// #define wrap_skip_first_wrap 2
|
||||
// #define wrap_skip_first_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_skip_first_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_skip_first_program_instructions[] = {
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap_target
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -184,7 +190,7 @@ loop2:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_skip_first_program = {
|
||||
// static __pio_const struct pio_program wrap_skip_first_program = {
|
||||
// .instructions = wrap_skip_first_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -209,7 +215,7 @@ loop2:
|
|||
// #define wrap_skip_last_wrap 1
|
||||
// #define wrap_skip_last_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_skip_last_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_skip_last_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -218,7 +224,7 @@ loop2:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_skip_last_program = {
|
||||
// static __pio_const struct pio_program wrap_skip_last_program = {
|
||||
// .instructions = wrap_skip_last_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -243,7 +249,7 @@ loop2:
|
|||
// #define wrap_with_jmp_outside_wrap 1
|
||||
// #define wrap_with_jmp_outside_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_with_jmp_outside_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_with_jmp_outside_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x0002, // 0: jmp 2
|
||||
// 0xa042, // 1: nop
|
||||
|
|
@ -252,7 +258,7 @@ loop2:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_with_jmp_outside_program = {
|
||||
// static __pio_const struct pio_program wrap_with_jmp_outside_program = {
|
||||
// .instructions = wrap_with_jmp_outside_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
@ -277,7 +283,7 @@ loop2:
|
|||
// #define wrap_nested_loops_wrap 2
|
||||
// #define wrap_nested_loops_pio_version 0
|
||||
//
|
||||
// static const uint16_t wrap_nested_loops_program_instructions[] = {
|
||||
// static __pio_const uint16_t wrap_nested_loops_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x0040, // 0: jmp x--, 0
|
||||
// 0x0002, // 1: jmp 2
|
||||
|
|
@ -286,7 +292,7 @@ loop2:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program wrap_nested_loops_program = {
|
||||
// static __pio_const struct pio_program wrap_nested_loops_program = {
|
||||
// .instructions = wrap_nested_loops_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -33,6 +33,12 @@ start:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------- //
|
||||
// // define_values //
|
||||
// // ------------- //
|
||||
|
|
@ -57,14 +63,14 @@ start:
|
|||
// #define define_values_paren_val 30
|
||||
// #define define_values_star_val 9
|
||||
//
|
||||
// static const uint16_t define_values_program_instructions[] = {
|
||||
// static __pio_const uint16_t define_values_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program define_values_program = {
|
||||
// static __pio_const struct pio_program define_values_program = {
|
||||
// .instructions = define_values_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------- //
|
||||
// // expr_arith //
|
||||
// // ---------- //
|
||||
|
|
@ -29,7 +35,7 @@
|
|||
// #define expr_arith_wrap 3
|
||||
// #define expr_arith_pio_version 0
|
||||
//
|
||||
// static const uint16_t expr_arith_program_instructions[] = {
|
||||
// static __pio_const uint16_t expr_arith_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xe00c, // 0: set pins, 12
|
||||
// 0xe008, // 1: set pins, 8
|
||||
|
|
@ -39,7 +45,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program expr_arith_program = {
|
||||
// static __pio_const struct pio_program expr_arith_program = {
|
||||
// .instructions = expr_arith_program_instructions,
|
||||
// .length = 4,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -22,6 +22,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------ //
|
||||
// // expr_bitwise //
|
||||
// // ------------ //
|
||||
|
|
@ -30,7 +36,7 @@
|
|||
// #define expr_bitwise_wrap 4
|
||||
// #define expr_bitwise_pio_version 0
|
||||
//
|
||||
// static const uint16_t expr_bitwise_program_instructions[] = {
|
||||
// static __pio_const uint16_t expr_bitwise_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xe007, // 0: set pins, 7
|
||||
// 0xe001, // 1: set pins, 1
|
||||
|
|
@ -41,7 +47,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program expr_bitwise_program = {
|
||||
// static __pio_const struct pio_program expr_bitwise_program = {
|
||||
// .instructions = expr_bitwise_program_instructions,
|
||||
// .length = 5,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------ //
|
||||
// // expr_complex //
|
||||
// // ------------ //
|
||||
|
|
@ -29,7 +35,7 @@
|
|||
// #define expr_complex_wrap 1
|
||||
// #define expr_complex_pio_version 0
|
||||
//
|
||||
// static const uint16_t expr_complex_program_instructions[] = {
|
||||
// static __pio_const uint16_t expr_complex_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xe008, // 0: set pins, 8
|
||||
// 0xe005, // 1: set pins, 5
|
||||
|
|
@ -37,7 +43,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program expr_complex_program = {
|
||||
// static __pio_const struct pio_program expr_complex_program = {
|
||||
// .instructions = expr_complex_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,12 @@ start:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------- //
|
||||
// // unary_test //
|
||||
// // ---------- //
|
||||
|
|
@ -29,14 +35,14 @@ start:
|
|||
// #define unary_test_neg_val -5
|
||||
// #define unary_test_rev_val -2147483648
|
||||
//
|
||||
// static const uint16_t unary_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t unary_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program unary_test_program = {
|
||||
// static __pio_const struct pio_program unary_test_program = {
|
||||
// .instructions = unary_test_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@ end:
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------- //
|
||||
// // symbol_test //
|
||||
// // ----------- //
|
||||
|
|
@ -33,7 +39,7 @@ end:
|
|||
//
|
||||
// #define symbol_test_entry_point 0
|
||||
//
|
||||
// static const uint16_t symbol_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t symbol_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x0001, // 0: jmp 1
|
||||
// 0x0002, // 1: jmp 2
|
||||
|
|
@ -42,7 +48,7 @@ end:
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program symbol_test_program = {
|
||||
// static __pio_const struct pio_program symbol_test_program = {
|
||||
// .instructions = symbol_test_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------------ //
|
||||
// // code_block_program //
|
||||
// // ------------------ //
|
||||
|
|
@ -27,14 +33,14 @@
|
|||
// #define code_block_program_wrap 0
|
||||
// #define code_block_program_pio_version 0
|
||||
//
|
||||
// static const uint16_t code_block_program_program_instructions[] = {
|
||||
// static __pio_const uint16_t code_block_program_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program code_block_program_program = {
|
||||
// static __pio_const struct pio_program code_block_program_program = {
|
||||
// .instructions = code_block_program_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ---------- //
|
||||
// // fifo_txput //
|
||||
// // ---------- //
|
||||
|
|
@ -35,14 +41,14 @@
|
|||
// #define fifo_txput_wrap 0
|
||||
// #define fifo_txput_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_txput_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_txput_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_txput_program = {
|
||||
// static __pio_const struct pio_program fifo_txput_program = {
|
||||
// .instructions = fifo_txput_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -68,14 +74,14 @@
|
|||
// #define fifo_txget_wrap 0
|
||||
// #define fifo_txget_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_txget_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_txget_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_txget_program = {
|
||||
// static __pio_const struct pio_program fifo_txget_program = {
|
||||
// .instructions = fifo_txget_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
@ -101,14 +107,14 @@
|
|||
// #define fifo_putget_wrap 0
|
||||
// #define fifo_putget_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_putget_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_putget_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_putget_program = {
|
||||
// static __pio_const struct pio_program fifo_putget_program = {
|
||||
// .instructions = fifo_putget_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ----------- //
|
||||
// // format_test //
|
||||
// // ----------- //
|
||||
|
|
@ -24,14 +30,14 @@
|
|||
// #define format_test_wrap 0
|
||||
// #define format_test_pio_version 0
|
||||
//
|
||||
// static const uint16_t format_test_program_instructions[] = {
|
||||
// static __pio_const uint16_t format_test_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0xa042, // 0: nop
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program format_test_program = {
|
||||
// static __pio_const struct pio_program format_test_program = {
|
||||
// .instructions = format_test_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------------ //
|
||||
// // pio_v0_basic //
|
||||
// // ------------ //
|
||||
|
|
@ -25,14 +31,14 @@
|
|||
// #define pio_v0_basic_wrap 0
|
||||
// #define pio_v0_basic_pio_version 0
|
||||
//
|
||||
// static const uint16_t pio_v0_basic_program_instructions[] = {
|
||||
// static __pio_const uint16_t pio_v0_basic_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x2007, // 0: wait 0 gpio, 7
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pio_v0_basic_program = {
|
||||
// static __pio_const struct pio_program pio_v0_basic_program = {
|
||||
// .instructions = pio_v0_basic_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // --------------- //
|
||||
// // pio_v1_features //
|
||||
// // --------------- //
|
||||
|
|
@ -29,7 +35,7 @@
|
|||
// #define pio_v1_features_wrap 4
|
||||
// #define pio_v1_features_pio_version 1
|
||||
//
|
||||
// static const uint16_t pio_v1_features_program_instructions[] = {
|
||||
// static __pio_const uint16_t pio_v1_features_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x2060, // 0: wait 0 jmppin
|
||||
// 0x20e2, // 1: wait 1 jmppin + 2
|
||||
|
|
@ -40,7 +46,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program pio_v1_features_program = {
|
||||
// static __pio_const struct pio_program pio_v1_features_program = {
|
||||
// .instructions = pio_v1_features_program_instructions,
|
||||
// .length = 5,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // ------- //
|
||||
// // fifo_tx //
|
||||
// // ------- //
|
||||
|
|
@ -40,7 +46,7 @@
|
|||
// #define fifo_tx_wrap 1
|
||||
// #define fifo_tx_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_tx_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_tx_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x80a0, // 0: pull block
|
||||
// 0x6008, // 1: out pins, 8
|
||||
|
|
@ -48,7 +54,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_tx_program = {
|
||||
// static __pio_const struct pio_program fifo_tx_program = {
|
||||
// .instructions = fifo_tx_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -74,7 +80,7 @@
|
|||
// #define fifo_rx_wrap 1
|
||||
// #define fifo_rx_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_rx_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_rx_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x4008, // 0: in pins, 8
|
||||
// 0x8020, // 1: push block
|
||||
|
|
@ -82,7 +88,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_rx_program = {
|
||||
// static __pio_const struct pio_program fifo_rx_program = {
|
||||
// .instructions = fifo_rx_program_instructions,
|
||||
// .length = 2,
|
||||
// .origin = -1,
|
||||
|
|
@ -108,7 +114,7 @@
|
|||
// #define fifo_txrx_wrap 2
|
||||
// #define fifo_txrx_pio_version 1
|
||||
//
|
||||
// static const uint16_t fifo_txrx_program_instructions[] = {
|
||||
// static __pio_const uint16_t fifo_txrx_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x80a0, // 0: pull block
|
||||
// 0xa0c7, // 1: mov isr, osr
|
||||
|
|
@ -117,7 +123,7 @@
|
|||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program fifo_txrx_program = {
|
||||
// static __pio_const struct pio_program fifo_txrx_program = {
|
||||
// .instructions = fifo_txrx_program_instructions,
|
||||
// .length = 3,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,12 @@
|
|||
// #include "hardware/pio.h"
|
||||
// #endif
|
||||
//
|
||||
// #ifdef __cpp_constexpr
|
||||
// #define __pio_const constexpr
|
||||
// #else
|
||||
// #define __pio_const const
|
||||
// #endif
|
||||
//
|
||||
// // -------- //
|
||||
// // gpio_ext //
|
||||
// // -------- //
|
||||
|
|
@ -25,14 +31,14 @@
|
|||
// #define gpio_ext_wrap 0
|
||||
// #define gpio_ext_pio_version 1
|
||||
//
|
||||
// static const uint16_t gpio_ext_program_instructions[] = {
|
||||
// static __pio_const uint16_t gpio_ext_program_instructions[] = {
|
||||
// // .wrap_target
|
||||
// 0x200f, // 0: wait 0 gpio, 47
|
||||
// // .wrap
|
||||
// };
|
||||
//
|
||||
// #if !PICO_NO_HARDWARE
|
||||
// static const struct pio_program gpio_ext_program = {
|
||||
// static __pio_const struct pio_program gpio_ext_program = {
|
||||
// .instructions = gpio_ext_program_instructions,
|
||||
// .length = 1,
|
||||
// .origin = -1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue