pico-sdk/tools
Uri Shaked 4328b2c75f
fix pioasm python output (#479)
While working on the [online pioasm](https://wokwi.com/tools/pioasm), I found several PIO instructions that result in invalid python code. Here is a small program that demonstrate the issue:

```
.program python_issue

    push block
    wait 0 irq 1 rel
    irq clear 1 rel
```

And the resulting Python program:

```python
# -------------------------------------------------- #
# This file is autogenerated by pioasm; do not edit! #
# -------------------------------------------------- #

import rp2
from machine import Pin
# ----------- #
# python_test #
# ----------- #

@rp2.asm_pio()
def python_test():
    wrap_target()
    push(, block)                         # 0
    wait(0, irq, 1 rel)                   # 1
    irq(clear 1 rel)                      # 2
    wrap()
```

After this fix, the above program compiles to a valid python syntax:

```python
# -------------------------------------------------- #
# This file is autogenerated by pioasm; do not edit! #
# -------------------------------------------------- #

import rp2
from machine import Pin
# ----------- #
# python_test #
# ----------- #

@rp2.asm_pio()
def python_test():
    wrap_target()
    push(block)                           # 0
    wait(0, irq, rel(1))                  # 1
    irq(clear, rel(1))                    # 2
    wrap()
```
2021-06-07 22:02:04 -05:00
..
elf2uf2 fixup elf2uf2 to allow blocked_ram (flash) binaries (#294) 2021-04-01 15:03:04 -05:00
pioasm fix pioasm python output (#479) 2021-06-07 22:02:04 -05:00
check_doxygen_groups.py Initial Release 2021-01-20 10:44:27 -06:00
CMakeLists.txt Delete some redundant CMake parts (#240) 2021-03-08 12:02:22 -06:00
extract_configs.py Modify extract_configs.py to deal with _u(X) macros (#222) 2021-03-04 21:22:48 -06:00
FindELF2UF2.cmake Prevent the literal string DEBUG from being appended to some messages in CMake < 3.15 (#433) 2021-05-25 17:10:55 -05:00
FindPioasm.cmake Prevent the literal string DEBUG from being appended to some messages in CMake < 3.15 (#433) 2021-05-25 17:10:55 -05:00