diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-03-07 16:03:03 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-03-07 16:03:03 -0500 |
commit | 33a10e4f938f99f71ddeb65d71fe59efef1ae8b0 (patch) | |
tree | 46d58bf3696dcb8c6b2d8081d82613176c27ebe8 /examples/test-fsmc.cpp | |
parent | f044da4ff39c0e72d3dd0efb8b6b5eb26719838c (diff) | |
download | librambutan-33a10e4f938f99f71ddeb65d71fe59efef1ae8b0.tar.gz librambutan-33a10e4f938f99f71ddeb65d71fe59efef1ae8b0.zip |
Slightly faster RAM writes (6.5MHz).
Diffstat (limited to 'examples/test-fsmc.cpp')
-rw-r--r-- | examples/test-fsmc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/test-fsmc.cpp b/examples/test-fsmc.cpp index ff55330..d1c8567 100644 --- a/examples/test-fsmc.cpp +++ b/examples/test-fsmc.cpp @@ -49,6 +49,7 @@ void test_all_addresses() { uint16 count = 0;
uint16 *ptr;
Serial1.println("Now writing all memory addresses (unrolled loop)");
+ SerialUSB.end();
start = micros();
for (ptr = ptr_start; ptr < ptr_end;) {
*ptr++ = count++;
@@ -69,6 +70,7 @@ void test_all_addresses() { *ptr++ = count++;
}
end = micros();
+ SerialUSB.begin();
Serial1.print("Done. Elapsed time (us): ");
Serial1.println(end - start);
|