changeset 338:b730c7844233

fluid-mnf/fileio.c: passes compilation
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 13 Mar 2020 02:26:02 +0000
parents 814d3f24bed6
children 77c86062e253
files fluid-mnf/fileio.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/fluid-mnf/fileio.c	Thu Mar 12 20:46:33 2020 +0000
+++ b/fluid-mnf/fileio.c	Fri Mar 13 02:26:02 2020 +0000
@@ -15,14 +15,24 @@
 #include "fileio.h"
 #include "misc.h"
 #include "trace.h"
+#if 0
 #include "../target/target.h"
-#include "../inc/secure_types.h"   // Secure Calypso Plus
+#endif
+#include "calplus/secure_types.h"   // Secure Calypso Plus
 
 #include <stdio.h>
 #include <malloc.h>
 #include <stdlib.h>
 #include <string.h>
 
+/* definitions from ../target/target.h */
+
+// ESample
+#define CALP_OFFSET 0x4000000  // CS_MODE 0: Flash at 0x04000000 @ CS5
+
+// Secure Calypso Plus
+#define CMD_SECURE_CALP_OFFSET 0x08020000 // Flash programmer offset in internal SRAM.
+
 
 /******************************************************************************
  * Globals