Memoria Flash AT45DB161D

Dependencies:   mbed at45db161d

Committer:
gorazdko
Date:
Mon Jun 03 06:49:39 2019 +0000
Revision:
1:39c12ab0a83a
Parent:
0:6c3378666293
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
apm_litoral 0:6c3378666293 1 #include "mbed.h"
apm_litoral 0:6c3378666293 2 #include "at45db161d.h"
apm_litoral 0:6c3378666293 3
apm_litoral 0:6c3378666293 4 DigitalOut myled(LED1);
gorazdko 1:39c12ab0a83a 5 ATD45DB161D Flash(P0_8,P0_9,P0_6,P1_15); // PinName mosi, PinName miso, PinName sclk, PinName cs
apm_litoral 0:6c3378666293 6
apm_litoral 0:6c3378666293 7 int main() {
apm_litoral 0:6c3378666293 8 Flash.Init();
apm_litoral 0:6c3378666293 9 Flash.ChipErase();
apm_litoral 0:6c3378666293 10 Flash.DeepPowerDown();
apm_litoral 0:6c3378666293 11 wait(5);
apm_litoral 0:6c3378666293 12 Flash.ResumeFromDeepPowerDown();
gorazdko 1:39c12ab0a83a 13
gorazdko 1:39c12ab0a83a 14
gorazdko 1:39c12ab0a83a 15 while (1)
gorazdko 1:39c12ab0a83a 16 {
gorazdko 1:39c12ab0a83a 17
gorazdko 1:39c12ab0a83a 18 }
apm_litoral 0:6c3378666293 19 }