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

main.h

Committer:
capsavon
Date:
2015-11-15
Revision:
6:0d48b7bc80bf
Parent:
4:95cde28a5cf1

File content as of revision 6:0d48b7bc80bf:

#ifndef INCLUDE_MAIN
#define INCLUDE_MAIN

#include "mbed.h"
#include "TS_DISCO_F746NG.h"
#include "LCD_DISCO_F746NG.h"
#include "QSPI_DISCO_F746NG.h"

// Macros
#define BUFFER_SIZE         ((uint32_t)0x0200)
#define WRITE_READ_ADDR     ((uint32_t)0x0050)
#define QSPI_BASE_ADDR      ((uint32_t)0x90000000)


// Functions declaration
void led_power (int state);
void led_on (void);
void led_off (void);
void led_toggle (void);

#endif