Commit 4553ad9
committed
rp2pio: Add offset & pc (program counter) properties
If StateMachine.run needs to contain a JMP instruction, the offset property
can be used to correctly encode the target address.
StateMachine.pc is useful for debugging, as it can give an overall
statistical idea of which state machine instructions are executing, or
show the instruction where the machine is stalled.1 parent 5f66400 commit 4553ad9
File tree
3 files changed
+49
-0
lines changed- ports/raspberrypi
- bindings/rp2pio
- common-hal/rp2pio
3 files changed
+49
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
816 | 845 | | |
817 | 846 | | |
818 | 847 | | |
| |||
836 | 865 | | |
837 | 866 | | |
838 | 867 | | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
839 | 871 | | |
840 | 872 | | |
841 | 873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1091 | 1105 | | |
1092 | 1106 | | |
1093 | 1107 | | |
0 commit comments