Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ring
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
ring
Commits
37f3088d
Commit
37f3088d
authored
2 years ago
by
Neil Gershenfeld (test)
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
f0d5963b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#24286
passed
2 years ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GPIO/RP2040/ring.RP2040.ino
+19
-0
19 additions, 0 deletions
GPIO/RP2040/ring.RP2040.ino
index.html
+7
-0
7 additions, 0 deletions
index.html
with
26 additions
and
0 deletions
GPIO/RP2040/ring.RP2040.ino
+
19
−
0
View file @
37f3088d
...
...
@@ -12,6 +12,9 @@
// warranty is provided, and users accept all liability.
//
#define digitalWriteFast(pin,val) gpio_put(pin, val ? 1 : 0)
#define digitalReadFast(pin) (gpio_get(pin) ? 1 : 0)
void
setup
()
{
//
// nothing to do in first core
...
...
@@ -36,12 +39,27 @@ void loop1() {
//
uint32_t
pin1
=
(
1
<<
1
);
uint32_t
pin2
=
(
1
<<
2
);
/**/
while
(
1
)
{
if
(
pin1
&
sio_hw
->
gpio_in
)
sio_hw
->
gpio_clr
=
pin2
;
else
sio_hw
->
gpio_set
=
pin2
;
}
/**/
//
// Arduino Fast version
// 8.77 MHz at 250 MHz clock
// 8.16 MHz at 133 MHz clock
//
/*
while (1) {
if (digitalReadFast(1))
digitalWriteFast(2,LOW);
else
digitalWriteFast(2,HIGH);
}
*/
//
// Arduino version
// 1.11 MHz at 250 MHz clock
...
...
@@ -56,3 +74,4 @@ void loop1() {
}
*/
}
This diff is collapsed.
Click to expand it.
index.html
+
7
−
0
View file @
37f3088d
...
...
@@ -67,6 +67,13 @@ The GPIO test measures how quickly pins can communicate with a processor core; t
<td>
December 2022
</td>
</tr>
<tr>
<td>
8.77
</td>
<td>
RP2040
</td>
<td><a
href=
GPIO/RP2040/ring.RP2040.ino
>
Arduino, digitalRead/WriteFast, 250 MHz
</a></td>
<td>
December 2022
</td>
</tr>
<tr>
<td>
4.62
</td>
<td>
ATSAME54
</td>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment