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

flash.h

Committer:
hexfactory
Date:
2017-04-23
Revision:
1:f316de154ff7
Parent:
0:da00b5dd65c6

File content as of revision 1:f316de154ff7:

#ifndef __FLASH_H
#define __FLASH_H
/*=============================================================================================
        section 1 - includes
 ==============================================================================================*/

/*=============================================================================================
        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
 ==============================================================================================*/

/*=============================================================================================
        section 5 - public constants declaration
 ==============================================================================================*/
//extern 

/*=============================================================================================
        section 6 - public variables declaration
 ==============================================================================================*/
//extern 

/*=============================================================================================
        section 7 - public functions - declaration
 ==============================================================================================*/
/* init function */
void    flash_init(void);

/* getter functions */

/* setter functions */

/* 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
 ==============================================================================================*/