Stephen Dickey
/
C027_LeakageTest_revb
Leakage Test for C027 Rev B Hardware.
Embed:
(wiki syntax)
Show/hide line numbers
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 }
Generated on Wed Aug 10 2022 17:23:10 by 1.7.2