Leakage Test for C027 Rev B Hardware.

Dependencies:   C027-REVB mbed

main.cpp

Committer:
dixter1
Date:
2013-12-14
Revision:
0:0fdd1cbe701a

File content as of revision 0:0fdd1cbe701a:

#include "mbed.h"
#include "C027.h"

DigitalOut mdm_activity(LED);

int main() 
{
    int led_toggle_count = 5;

    // the instantiation of the type, calls C027::C027
    C027 c027;
    
    // c027.mdmPower(true);
    c027.LeakageTest();

#if 1
    while(1) {
        mdm_activity = !mdm_activity;
        wait(0.2);
    }
#else
    while( led_toggle_count-- > 0 )
    {
        mdm_activity = !mdm_activity;
        wait(0.2);
    }
#endif
}