fork

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
136:19b9e6abb86f
Parent:
131:ef5973569c02
Child:
137:8b99cf0842f9
Child:
145:f023b2f18b82
--- a/Command.c	Thu Apr 14 16:48:48 2016 +0000
+++ b/Command.c	Fri Apr 15 14:20:15 2016 +0000
@@ -14,6 +14,46 @@
 unsigned int CountParam=0;
 
 
+
+
+unsigned int pDestT ; 
+GyroParam *Flash;
+  
+ 
+ void ReadFlash ( void)
+ {
+  WriteCon("\r\n Pirivet Flash");
+  pDestT= (unsigned int) (0x10000);
+  Flash = (GyroParam*) pDestT;
+  GyroP = *(Flash);
+  sprintf((Time)," dffddfd <%07d> ",	GyroP.Str.K_WP_rst_heating);
+  WriteCon(Time);
+ 
+ }
+ 
+ 
+ 
+ unsigned int memdump( char *base, int n )
+{
+  
+    unsigned int    *p;
+
+    printf( "  memdump from 0x%08X for %d bytes", (unsigned long)base, n );
+
+    p   = (unsigned int *)((unsigned int)base & ~(unsigned int)0x3);
+
+    for ( int i = 0; i < (n >> 2); i++, p++ ) {
+        if ( !(i % 4) )
+            printf( "\r\n  0x%08X :", (unsigned int)p );
+            printf( " 0x%08X", *p );
+        }
+
+    printf( "\r\n" );
+
+
+}
+
+
 void CMD_M_Param_R(void)
 {
    unsigned int NP;