From d59e06cdf635a813d80d924a3d96ee1652510316 Mon Sep 17 00:00:00 2001
From: Neil Gershenfeld <gersh@cba.mit.edu>
Date: Sun, 6 Dec 2020 18:05:58 -0500
Subject: [PATCH] wip

---
 GPIO/ESP32/ring.ESP32.ino | 34 ++++++++++++++++++++++++++++++++++
 index.html                |  7 +++++++
 2 files changed, 41 insertions(+)
 create mode 100644 GPIO/ESP32/ring.ESP32.ino

diff --git a/GPIO/ESP32/ring.ESP32.ino b/GPIO/ESP32/ring.ESP32.ino
new file mode 100644
index 0000000..11d1ea5
--- /dev/null
+++ b/GPIO/ESP32/ring.ESP32.ino
@@ -0,0 +1,34 @@
+//
+// ring.ESP32.ino
+//
+// ESP32 ring oscillator test
+//
+// Neil Gershenfeld 12/6/20
+//
+// 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() {
+   setCpuFrequencyMhz(240);
+   output = 1 << 16;
+   input = 1 << 17;
+   GPIO.enable_w1ts = output;
+   }
+
+void loop() {
+   while (1) {
+      //
+      // GPIO: 3.81 MHz
+      //
+      if (GPIO.in & input)
+         GPIO.out_w1tc = output;
+      else
+         GPIO.out_w1ts = output;
+      }
+   }
diff --git a/index.html b/index.html
index 394c4be..2925eb9 100644
--- a/index.html
+++ b/index.html
@@ -53,6 +53,13 @@ The GPIO test measures how quickly pins can communicate with a processor core; t
 <td>October, 2015</td>
 </tr>
 
+<tr>
+<td>3.810</td>
+<td>ESP32-WROOM</td>
+<td><a href=GPIO/ESP32/ring.ESP32.ino>GPIO</a></td>
+<td>December, 2020</td>
+</tr>
+
 <tr>
 <td>2.528</td>
 <td>ATSAMD11C</td>
-- 
GitLab