![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Memoria Flash AT45DB161D
main.cpp@0:6c3378666293, 2012-06-07 (annotated)
- Committer:
- apm_litoral
- Date:
- Thu Jun 07 05:19:49 2012 +0000
- Revision:
- 0:6c3378666293
- Child:
- 1:39c12ab0a83a
Who changed what in which revision?
User | Revision | Line number | New 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); |
apm_litoral | 0:6c3378666293 | 5 | ATD45DB161D Flash(p5,p6,p7,p8); |
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(); |
apm_litoral | 0:6c3378666293 | 13 | } |