Memoria Flash AT45DB161D
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "at45db161d.h" 00003 00004 DigitalOut myled(LED1); 00005 ATD45DB161D Flash(P0_8,P0_9,P0_6,P1_15); // PinName mosi, PinName miso, PinName sclk, PinName cs 00006 00007 int main() { 00008 Flash.Init(); 00009 Flash.ChipErase(); 00010 Flash.DeepPowerDown(); 00011 wait(5); 00012 Flash.ResumeFromDeepPowerDown(); 00013 00014 00015 while (1) 00016 { 00017 00018 } 00019 }
Generated on Thu Jul 14 2022 06:26:23 by
1.7.2