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:
1:f316de154ff7
Parent:
0:da00b5dd65c6
--- a/flash.h	Mon Jan 30 20:58:13 2017 +0000
+++ b/flash.h	Sun Apr 23 17:15:53 2017 +0000
@@ -1,20 +1,53 @@
-#ifndef FLASH_H
-#define FLASH_H
+#ifndef __FLASH_H
+#define __FLASH_H
+/*=============================================================================================
+        section 1 - includes
+ ==============================================================================================*/
 
-#include "mbed.h"
+/*=============================================================================================
+        section 2 - public defines / enumerations
+ ==============================================================================================*/
+#define FLASH_DATA_SIZE             4
+enum E_FLASH_INDEX{
+    FLASH_TOGGLE_BYTE_LIGHT1 = 0,
+    FLASH_TOGGLE_BYTE_LIGHT2 = 1,
+    FLASH_LIGHT_AUTOMATIC1   = 2,
+    FLASH_LIGHT_AUTOMATIC2   = 3
+};
+/*=============================================================================================
+        section 3 - public typedefs
+ ==============================================================================================*/
+
+/*=============================================================================================
+        section 4 - public macros
+ ==============================================================================================*/
 
-/* global defines */
-#define FLASH_DATA_SIZE             2
-/*
-    BYTE 0 => TOGGLE_BYTE_LIGHT0
-    BYTE 1 => TOGGLE_BYTE_LIGHT1
-*/
-#define FLASH_TOGGLE_BYTE_LIGHT1    0
-#define FLASH_TOGGLE_BYTE_LIGHT2    1
+/*=============================================================================================
+        section 5 - public constants declaration
+ ==============================================================================================*/
+//extern 
+
+/*=============================================================================================
+        section 6 - public variables declaration
+ ==============================================================================================*/
+//extern 
 
-/* global function declaration */
-void flash_init(void);
-void flash_write(uint8_t* newFlashData);
-void flash_read(uint8_t* readFlashData);
+/*=============================================================================================
+        section 7 - public functions - declaration
+ ==============================================================================================*/
+/* init function */
+void    flash_init(void);
+
+/* getter functions */
+
+/* setter functions */
 
-#endif
\ No newline at end of file
+/* other functions */
+void    flash_write(E_FLASH_INDEX index, uint8_t data);
+uint8_t flash_read(E_FLASH_INDEX index);
+void    flash_task(void);
+
+#endif /* __FLASH_H */
+/*=============================================================================================
+        end of file
+ ==============================================================================================*/
\ No newline at end of file