Display Steuerung für Lampen per Relais. https://www.youtube.com/watch?v=_CupBMcZ8Xc

Dependencies:   BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG TS_DISCO_F746NG mbed

Revision:
0:da00b5dd65c6
Child:
1:f316de154ff7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flash.cpp	Mon Jan 30 20:58:13 2017 +0000
@@ -0,0 +1,22 @@
+
+#include "flash.h"
+#include "stm32746g_discovery_qspi.h"
+
+#define FLASH_START_ADDRESS 0
+#define FLASH_START_BLOCK   0
+
+void flash_init(void)
+{
+    BSP_QSPI_Init(); 
+}
+
+void flash_write(uint8_t* newFlashData)
+{   
+    BSP_QSPI_Erase_Block(FLASH_START_BLOCK); 
+    BSP_QSPI_Write(newFlashData, FLASH_START_ADDRESS, FLASH_DATA_SIZE);   
+}
+
+void flash_read(uint8_t* readFlashData)
+{    
+    BSP_QSPI_Read(readFlashData, FLASH_START_ADDRESS, FLASH_DATA_SIZE);
+}
\ No newline at end of file