Leakage Test for C027 Rev B Hardware.

Dependencies:   C027-REVB mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "C027.h"
00003 
00004 DigitalOut mdm_activity(LED);
00005 
00006 int main() 
00007 {
00008     int led_toggle_count = 5;
00009 
00010     // the instantiation of the type, calls C027::C027
00011     C027 c027;
00012     
00013     // c027.mdmPower(true);
00014     c027.LeakageTest();
00015 
00016 #if 1
00017     while(1) {
00018         mdm_activity = !mdm_activity;
00019         wait(0.2);
00020     }
00021 #else
00022     while( led_toggle_count-- > 0 )
00023     {
00024         mdm_activity = !mdm_activity;
00025         wait(0.2);
00026     }
00027 #endif
00028 }