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
6cd967ea
Commit
6cd967ea
authored
2 years ago
by
Neil Gershenfeld (test)
Browse files
Options
Downloads
Patches
Plain Diff
add ESP32C3
parent
3bd85919
No related branches found
No related tags found
No related merge requests found
Pipeline
#24292
passed
2 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GPIO/ESP32/ring.ESP32C3.ino
+48
-0
48 additions, 0 deletions
GPIO/ESP32/ring.ESP32C3.ino
with
48 additions
and
0 deletions
GPIO/ESP32/ring.ESP32C3.ino
0 → 100644
+
48
−
0
View file @
6cd967ea
//
// ring.ESP32C3.ino
// ESP32C3 ring oscillator test
// connect GPIO 8 and 20
//
// Neil Gershenfeld 12/26/22
//
// This work may be reproduced, modified, distributed,
// performed, and displayed for any purpose, but must
// acknowledge this project. Copyright is retained and
// must be preserved. The work is provided as is; no
// warranty is provided, and users accept all liability.
//
uint32_t
input
,
output
;
void
setup
()
{
pinMode
(
8
,
OUTPUT
);
output
=
(
1
<<
8
);
input
=
(
1
<<
20
);
}
void
loop
()
{
//
// direct port I/O version
// 3.79 MHz at 160 MHz clock
//
/**/
while
(
1
)
{
if
(
GPIO
.
in
.
val
&
input
)
GPIO
.
out_w1tc
.
val
=
output
;
else
GPIO
.
out_w1ts
.
val
=
output
;
}
/**/
//
// Arduino version
// 736 kHz at 166 MHz clock
//
/*
while (1) {
if (digitalRead(20))
digitalWrite(8,LOW);
else
digitalWrite(8,HIGH);
}
*/
}
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