add docs for pio_instructions.h #624
No reviewers
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk!624
Loading…
Reference in a new issue
No description provided.
Delete branch "pio_instruction_doc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -9,7 +9,18 @@Not sure if you need "debug" twice? 🤷
@ -44,6 +55,12 @@ enum pio_instr_bits {#define _PIO_INVALID_MOV_DEST 0uvalue -> values ?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);Closing-parenthesis which has no matching opening-parenthesis?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);bits slot -> slot bits ?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);pico_encode_delay->pio_encode_delay@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);Closing-parenthesis which has no matching opening-parenthesis?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);Closing-parenthesis which has no matching opening-parenthesis?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);pico_encode_delay->pio_encode_delay@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);bits slot -> slot bits ?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);Should be
\param dest?@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);Should be talking about PULL rather than PUSH?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);pico_encode_sideset->pio_encode_sidesetpico_encode_sideset_opt->pio_encode_sideset_optHmmm, was this function simply missing before?
@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);removed "slot"
yup
@ -105,0 +226,4 @@static inline uint pio_encode_jmp_x_ne_y(uint addr) {return _pio_encode_instr_and_args(pio_instr_bits_jmp, 5, addr);}The
\param srcpart still needs changing to\param dest(to matchpio_encode_out(enum pio_src_dest dest, uint count)).@ -127,1 +320,3 @@inline static uint pio_encode_out(enum pio_src_dest dest, uint value) {/*! \brief Encode an OUT instruction* \ingroup pio_instructions*Seems to be missing a
\param polarity?@ -132,1 +335,3 @@inline static uint pio_encode_push(bool if_full, bool block) {/*! \brief Encode a PUSH instruction* \ingroup pio_instructions*Seems to be missing a
\param polarity?@ -75,100 +92,388 @@ inline static uint _pio_encode_instr_and_args(enum pio_instr_bits instr_bits, uireturn instr_bits | (arg1 << 5u) | (arg2 & 0x1fu);These lines both still have
PUSHat the end (should bePULL).Hah, I've only just noticed that PIO has both
IRQ WAITandWAIT IRQ🙃 😄Looks good but there are quite a few pending tweaks suggested by @lurch