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
00001 #ifndef INCLUDE_MAIN 00002 #define INCLUDE_MAIN 00003 00004 #include "mbed.h" 00005 #include "TS_DISCO_F746NG.h" 00006 #include "LCD_DISCO_F746NG.h" 00007 #include "QSPI_DISCO_F746NG.h" 00008 00009 // Macros 00010 #define BUFFER_SIZE ((uint32_t)0x0200) 00011 #define WRITE_READ_ADDR ((uint32_t)0x0050) 00012 #define QSPI_BASE_ADDR ((uint32_t)0x90000000) 00013 00014 00015 // Functions declaration 00016 void led_power (int state); 00017 void led_on (void); 00018 void led_off (void); 00019 void led_toggle (void); 00020 00021 #endif
Generated on Tue Jul 12 2022 18:10:44 by 1.7.2