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.cpp

Committer:
hexfactory
Date:
2017-01-30
Revision:
0:da00b5dd65c6
Child:
1:f316de154ff7

File content as of revision 0:da00b5dd65c6:


#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);
}