-
Notifications
You must be signed in to change notification settings - Fork 106
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
cca83d5
commit 74b91f9
Showing
11 changed files
with
1,589 additions
and
1,336 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
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
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,4 @@ | ||
pub const CPU = enum { | ||
RP2040, | ||
RP2350, | ||
}; |
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
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
4 changes: 3 additions & 1 deletion
4
port/raspberrypi/rp2xxx/src/hal/pio/assembler/comparison_tests/README.md
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# PIO example programs for testing | ||
|
||
These were all taken from [the official pico examples repo](https://github.com/raspberrypi/pico-examples). | ||
These were all taken from [the official pico examples | ||
repo](https://github.com/raspberrypi/pico-examples). | ||
|
||
The headers are generated using `pioasm`. |
14 changes: 14 additions & 0 deletions
14
port/raspberrypi/rp2xxx/src/hal/pio/assembler/comparison_tests/irq.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 irq | ||
.side_set 1 | ||
|
||
.wrap_target | ||
irq set 1 prev side 0 ; DELETEME | ||
irq set 1 rel side 0 ; DELETEME | ||
irq set 1 next side 0 ; DELETEME | ||
irq wait 1 prev side 0 ; DELETEME | ||
irq wait 1 rel side 0 ; DELETEME | ||
irq wait 1 next side 0 ; DELETEME | ||
irq clear 1 prev side 0 ; DELETEME | ||
irq clear 1 rel side 0 ; DELETEME | ||
irq clear 1 next side 0 ; DELETEME | ||
.wrap |
14 changes: 14 additions & 0 deletions
14
port/raspberrypi/rp2xxx/src/hal/pio/assembler/comparison_tests/irq.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,14 @@ | ||
#pragma once | ||
|
||
// TODO: Exercise more? delays, optional sideset, etc? | ||
static const uint16_t irq_program_instructions[] = { | ||
0xc009, // irq set 1 prev side 0 | ||
0xc011, // irq set 1 rel side 0 | ||
0xc019, // irq set 1 next side 0 | ||
0xc029, // irq wait 1 prev side 0 | ||
0xc031, // irq wait 1 rel side 0 | ||
0xc039, // irq wait 1 next side 0 | ||
0xc049, // irq clear 1 prev side 0 | ||
0xc051, // irq clear 1 rel side 0 | ||
0xc059, // irq clear 1 next side 0 | ||
}; |
Oops, something went wrong.