SPI NOR Flash Single IO Nucleo F767ZI Helloworld 1Gb NOR Flash S70FL01GS

Dependencies:   S70FL01GS mbed

Fork of SPI_FLASH_MEM by Shivanand Gowda

Committer:
bcostm
Date:
Fri Feb 21 12:38:59 2014 +0000
Revision:
0:21b36798fd00
Child:
2:f62261b0ef55
Initial version.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:21b36798fd00 1 #include "mbed.h"
bcostm 0:21b36798fd00 2
bcostm 0:21b36798fd00 3 SPI device(SPI_MOSI, SPI_MISO, SPI_SCK);
bcostm 0:21b36798fd00 4
bcostm 0:21b36798fd00 5 int main() {
bcostm 0:21b36798fd00 6 int i = 0;
bcostm 0:21b36798fd00 7 while(1) {
bcostm 0:21b36798fd00 8 device.write(0x55);
bcostm 0:21b36798fd00 9 device.write(i++);
bcostm 0:21b36798fd00 10 device.write(0xE0);
bcostm 0:21b36798fd00 11 wait_us(50);
bcostm 0:21b36798fd00 12 }
bcostm 0:21b36798fd00 13 }
bcostm 0:21b36798fd00 14