Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 6:a27c0fd4f210
- Parent:
- 5:0a3fb48e39a3
- Child:
- 7:b98d752b7b95
--- a/main.cpp Sat Sep 29 23:33:16 2012 +0000
+++ b/main.cpp Tue Oct 02 01:16:03 2012 +0000
@@ -41,6 +41,11 @@
jtag.writeMemory(address, value);
//core is running......
+
+ int* ro_readings = new int [70]; //0-63: Oscillator (DDRO), 64-65: SRAM/Core Power, 66-69: Leakage
+ master_write();
+ master_read(ro_readings);
+
if( some GPIO != 0) {powerDown();}
}
*/
@@ -66,8 +71,8 @@
wait_us(10);
RESET = 1;
for(int iii=0; iii<1; iii++) {
- //master_write();
- //master_read(ro_readings);
+ master_write();
+ master_read(ro_readings);
for (int ii=0; ii<64; ii++) {
#ifdef FILE_OUTPUT
fprintf(outFile, "RO %d %d\n", ii, ro_readings[ii]);
@@ -109,7 +114,7 @@
RESET = 1;
//jtag.JTAG_test();
/*
- while (higher - lower >100) {
+ while (higher - lower >30) {
s.printf("testing %d\n", frequency);
if(jtag.JTAG_test()) {
lower = frequency;
@@ -130,6 +135,7 @@
}
}
*/
+
#ifdef FILE_OUTPUT
fprintf(outFile, "fmax %d\n", lower*5);
#endif