From 7ad7e53f94e96e16f4981568e97c40849a12e677 Mon Sep 17 00:00:00 2001 From: Neil Gershenfeld <gersh@cba.mit.edu> Date: Mon, 16 Aug 2021 20:23:16 -0400 Subject: [PATCH] wip --- GPIO/IMXRT1062/ring.IMXRT1062.ino | 27 +++++++++++++++++++++++++++ index.html | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 GPIO/IMXRT1062/ring.IMXRT1062.ino diff --git a/GPIO/IMXRT1062/ring.IMXRT1062.ino b/GPIO/IMXRT1062/ring.IMXRT1062.ino new file mode 100644 index 0000000..c0097be --- /dev/null +++ b/GPIO/IMXRT1062/ring.IMXRT1062.ino @@ -0,0 +1,27 @@ +// +// ring.IMXRT1062.ino +// +// ring oscillator test +// +// Neil Gershenfeld 8/12/21 +// +// 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. +// + +void setup() { + pinMode(0,OUTPUT); + } + +void loop() { + while (1) { + uint8_t data = GPIO6_DR; + if (data & 0b100) // pin 1 + GPIO6_DR = 0; + else + GPIO6_DR = 0b1000; // pin 0 + } + } diff --git a/index.html b/index.html index 2ef0f55..8c57736 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@ The GPIO test measures how quickly pins can communicate with a processor core; t <tr> <td>23.08</td> <td>IMXRT1062</td> -<td>Teensy 4.1, 600 MHz, <a href=GPIO/Arduino/ring.ino>Arduino</a>, GPIO</td> +<td>Teensy 4.1, 600 MHz, <a href=GPIO/Arduino/ring.ino>Arduino</a>, <a href=GPIO/IMXRT1062/ring.IMXRT1062.ino>GPIO</a></td> <td>August, 2021</td> </tr> -- GitLab