summaryrefslogtreecommitdiff
path: root/dummy_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'dummy_functions.c')
-rw-r--r--dummy_functions.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/dummy_functions.c b/dummy_functions.c
index 98d0afb..9f3abb3 100644
--- a/dummy_functions.c
+++ b/dummy_functions.c
@@ -1,4 +1,5 @@
#include "dummy_functions.h"
+#include "globals.h"
void Menu_Refresh() {}
void Menu_Update_Display() {}
@@ -8,4 +9,24 @@ void GPIB_Set_Device_Dependent_Error() {}
void GPIB_Set_Execution_Error() {}
void Main_update_shift_registers() { }
void Error_check(void* p) { }
-void writeUserBlock(int addr, int numbytes) {}
+
+int readUserBlock(FlashStruct mem)
+{
+ // read the flash.copy file into the FlashStruct
+ // and return the number of bytes read in
+
+ // if the file does not exist, then "return 0";
+ return 0;
+}
+
+void writeUserBlock(FlashStruct mem, int addr, int numbytes)
+{
+ // check if flash.copy file exists
+ // - if it does, update the requested address and
+ // number of bytes
+
+ // - if does not, create the file and
+ // set addr = 0, numbytes = sizeof (mem)
+ // so that entire struct will be written,
+ // instead of just the requested range
+}