aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.h
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-01-24 08:41:39 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-01-24 08:41:39 +0200
commit91d4a6eceb00882a0898016e743130d62156e33b (patch)
tree65afc01dc073db62daf7aae7c06f02508039fe55 /Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.h
parentfcf4662cdd456796d0572b6bc4e27769bae8e45a (diff)
downloadTango-91d4a6eceb00882a0898016e743130d62156e33b.tar.gz
Tango-91d4a6eceb00882a0898016e743130d62156e33b.zip
1.3.5.0 changes
==================================== 1. preparations for keeping data in internal flash 2. keep applicative data in external flash: software parameters, dispensers data, etc. 3. moved to new alarms definitions, tamper alarms, improved temperature alarms, cone presence alarm, 4. support for Machine Studio 4 5. some tests for memory allocations 6. thread load proto code 7. Hardware: doors tampering switches, drier fan, blower PWM control, new backplane support, new motor drivers support, 8. FPGA jtag code loading 9. Heaters: alarms on set temperature band. test facilities. 10. motors - additional complex actions for thread load support. new drivers support 11. preparations for control debugging 12. read motor status and mid tank level 13. collect and store dispenser usage data 14. IDS - controlled operation of motor and valve. backlash movement after refill 15. bug fixes in job handling
Diffstat (limited to 'Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.h')
-rw-r--r--Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.h b/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.h
new file mode 100644
index 000000000..a21afd52b
--- /dev/null
+++ b/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.h
@@ -0,0 +1,32 @@
+/*
+ * FlashProgram.h
+ *
+ * Created on: Jan 22, 2019
+ * Author: shlomo
+ */
+
+#ifndef DRIVERS_FLASH_RAM_FLASHPROGRAM_H_
+#define DRIVERS_FLASH_RAM_FLASHPROGRAM_H_
+
+#define FLASH_RAM_BASE 0x000B0000
+
+#define MOTOR_MAP_IN_FLASH FLASH_RAM_BASE+0X0000
+#define ALARM_MAP_IN_FLASH FLASH_RAM_BASE+0X2000
+#define JOB_MAP_IN_FLASH FLASH_RAM_BASE+0X4000
+#define GENHWCFG_MAP_IN_FLASH FLASH_RAM_BASE+0X10000
+#define OTHER_MAP_IN_FLASH FLASH_RAM_BASE+0X12000
+#define FLASH_SIZE 0X50000
+
+//*****************************************************************************
+//
+// Read application data from a buffer and program it into flash.
+//
+// \return Zero if successful or non-zero if the file cannot be read or
+// programmed.
+//
+//*****************************************************************************
+uint32_t ReadAppAndProgram(uint32_t ui32FlashStart,uint32_t ui32FileSize,void* buffer);
+
+
+
+#endif /* DRIVERS_FLASH_RAM_FLASHPROGRAM_H_ */