Memoria Flash AT45DB161D

Dependencies:   at45db161d mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "at45db161d.h"
00003 
00004 DigitalOut myled(LED1);
00005 ATD45DB161D Flash(p5,p6,p7,p8);
00006 
00007 int main() {
00008     Flash.Init();
00009     Flash.ChipErase();
00010     Flash.DeepPowerDown();
00011     wait(5);
00012     Flash.ResumeFromDeepPowerDown();
00013 }