Gorazd Kovacic
/
AT45DB161D
Memoria Flash AT45DB161D
main.cpp
- Committer:
- gorazdko
- Date:
- 2019-06-03
- Revision:
- 1:39c12ab0a83a
- Parent:
- 0:6c3378666293
File content as of revision 1:39c12ab0a83a:
#include "mbed.h" #include "at45db161d.h" DigitalOut myled(LED1); ATD45DB161D Flash(P0_8,P0_9,P0_6,P1_15); // PinName mosi, PinName miso, PinName sclk, PinName cs int main() { Flash.Init(); Flash.ChipErase(); Flash.DeepPowerDown(); wait(5); Flash.ResumeFromDeepPowerDown(); while (1) { } }