Basic Example / test application for the on-board MICRON QSPI-Flash. Ported from DISCO_L476VG_QSPI. Added printing on serial output and LCD screen.

Dependencies:   BSP_DISCO_F746NG LCD_DISCO_F746NG QSPI_DISCO_F746NG TS_DISCO_F746NG mbed

Committer:
capsavon
Date:
Sun Nov 15 14:31:04 2015 +0000
Revision:
4:95cde28a5cf1
Parent:
3:13b323fb08e8
Implementation of the QSPI and Flash SPI IC interface (porting from DISCO-STM32L476VG library).; Implementation of a basic test (init, erase, write, read).; Test passes OK.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
capsavon 2:a655d6640167 1 #ifndef INCLUDE_MAIN
capsavon 2:a655d6640167 2 #define INCLUDE_MAIN
capsavon 2:a655d6640167 3
capsavon 4:95cde28a5cf1 4 #include "mbed.h"
capsavon 4:95cde28a5cf1 5 #include "TS_DISCO_F746NG.h"
capsavon 4:95cde28a5cf1 6 #include "LCD_DISCO_F746NG.h"
capsavon 4:95cde28a5cf1 7 #include "QSPI_DISCO_F746NG.h"
capsavon 4:95cde28a5cf1 8
capsavon 4:95cde28a5cf1 9 // Macros
capsavon 4:95cde28a5cf1 10 #define BUFFER_SIZE ((uint32_t)0x0200)
capsavon 4:95cde28a5cf1 11 #define WRITE_READ_ADDR ((uint32_t)0x0050)
capsavon 4:95cde28a5cf1 12 #define QSPI_BASE_ADDR ((uint32_t)0x90000000)
capsavon 4:95cde28a5cf1 13
capsavon 2:a655d6640167 14
capsavon 3:13b323fb08e8 15 // Functions declaration
capsavon 3:13b323fb08e8 16 void led_power (int state);
capsavon 3:13b323fb08e8 17 void led_on (void);
capsavon 3:13b323fb08e8 18 void led_off (void);
capsavon 3:13b323fb08e8 19 void led_toggle (void);
capsavon 2:a655d6640167 20
capsavon 2:a655d6640167 21 #endif