-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0a6bb0
commit 871c34e
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
port/raspberrypi/rp2xxx/src/hal/pio/assembler/comparison_tests/movrx.pio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.program movrx | ||
|
||
.wrap_target | ||
mov rxfifoy, isr | ||
mov rxfifo0, isr | ||
mov rxfifo1, isr | ||
mov rxfifo2, isr | ||
mov rxfifo3, isr | ||
; mov osr, rxfifoy | ||
; mov osr, rxfifo0 | ||
; mov osr, rxfifo1 | ||
; mov osr, rxfifo2 | ||
; mov osr, rxfifo3 | ||
.wrap |
16 changes: 16 additions & 0 deletions
16
port/raspberrypi/rp2xxx/src/hal/pio/assembler/comparison_tests/movrx.pio.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
static const uint16_t movrx_program_instructions[] = { | ||
// 0b1000_ssss_0001_yiii | ||
0x8018, // mov rxfifoy, isr | ||
0x8010, // mov rxfifo0, isr | ||
0x8011, // mov rxfifo1, isr | ||
0x8012, // mov rxfifo2, isr | ||
0x8013, // mov rxfifo3, isr | ||
// 0b1000_ssss_1001_yiii | ||
// 0x8098, // mov osr, rxfifoy | ||
// 0x8090, // mov osr, rxfifo0 | ||
// 0x8091, // mov osr, rxfifo1 | ||
// 0x8092, // mov osr, rxfifo2 | ||
// 0x8093, // mov osr, rxfifo3 | ||
}; |