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

Committer:
hexfactory
Date:
Mon Jan 30 20:58:13 2017 +0000
Revision:
0:da00b5dd65c6
Child:
1:f316de154ff7
First Release; 0x08 ARM mbed 001 -  Display Steuerung - GUI und Schalter (Relai) [DE]; https://www.youtube.com/watch?v=_CupBMcZ8Xc

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hexfactory 0:da00b5dd65c6 1
hexfactory 0:da00b5dd65c6 2 #include "flash.h"
hexfactory 0:da00b5dd65c6 3 #include "stm32746g_discovery_qspi.h"
hexfactory 0:da00b5dd65c6 4
hexfactory 0:da00b5dd65c6 5 #define FLASH_START_ADDRESS 0
hexfactory 0:da00b5dd65c6 6 #define FLASH_START_BLOCK 0
hexfactory 0:da00b5dd65c6 7
hexfactory 0:da00b5dd65c6 8 void flash_init(void)
hexfactory 0:da00b5dd65c6 9 {
hexfactory 0:da00b5dd65c6 10 BSP_QSPI_Init();
hexfactory 0:da00b5dd65c6 11 }
hexfactory 0:da00b5dd65c6 12
hexfactory 0:da00b5dd65c6 13 void flash_write(uint8_t* newFlashData)
hexfactory 0:da00b5dd65c6 14 {
hexfactory 0:da00b5dd65c6 15 BSP_QSPI_Erase_Block(FLASH_START_BLOCK);
hexfactory 0:da00b5dd65c6 16 BSP_QSPI_Write(newFlashData, FLASH_START_ADDRESS, FLASH_DATA_SIZE);
hexfactory 0:da00b5dd65c6 17 }
hexfactory 0:da00b5dd65c6 18
hexfactory 0:da00b5dd65c6 19 void flash_read(uint8_t* readFlashData)
hexfactory 0:da00b5dd65c6 20 {
hexfactory 0:da00b5dd65c6 21 BSP_QSPI_Read(readFlashData, FLASH_START_ADDRESS, FLASH_DATA_SIZE);
hexfactory 0:da00b5dd65c6 22 }