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:
- 5:0a3fb48e39a3
- Parent:
- 4:fc56fa8aa794
- Child:
- 6:a27c0fd4f210
--- a/main.cpp Sat Sep 29 19:22:38 2012 +0000
+++ b/main.cpp Sat Sep 29 23:33:16 2012 +0000
@@ -11,6 +11,40 @@
Serial s(USBTX, USBRX);
DigitalOut finish_flag (LED3);
+/*
+int main()
+{
+
+ PLL clk;
+ JTAG jtag;
+
+ powerReset();
+ powerUp(1);
+ wait_us(10);
+ RESET=1;
+ wait_us(10);
+ RESET=0;
+ wait_us(10);
+ RESET=1;
+ clk.setPLL(100);
+ RESET=0;
+ wait_us(10);
+ RESET=1;
+ jtag.DAP_enable();
+ unsigned int address, value;
+ jtag.loadProgram();
+ address = 0x44000008;
+ value = 0x00000001;
+ jtag.writeMemory(address, value);
+
+ address = 0x44000004;
+ jtag.writeMemory(address, value);
+ //core is running......
+
+ if( some GPIO != 0) {powerDown();}
+}
+*/
+
int main()
{
s.printf("DDRO_software starts ...\r\n");
@@ -32,8 +66,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]);