Fork to support REVB hardware.
Dependents: C027_BootTest_revb C027_EthernetSniffTest C027_M3_SerialEcho C027_HelloWorld_revb ... more
Fork of C027 by
Diff: C027.cpp
- Revision:
- 22:2ab87e985526
- Parent:
- 21:db7c445289f5
--- a/C027.cpp Fri Dec 13 23:32:11 2013 +0000 +++ b/C027.cpp Sun Dec 15 21:17:22 2013 +0000 @@ -57,6 +57,11 @@ wait_ms(3000); } + +// this is a test function designed to turn on all hardware that +// might leak current into the LISA chip, while disabling the +// LISA chip itself. This is intended to be as harsh as possible, +// and is most relevant to REV B hardware. void C027::LeakageTest( void ) { mdmEn = 0; //disable @@ -73,9 +78,9 @@ mdmUsbDet = ( use_mdmuart? 0:1 ); // USBDET: 0=enable uart, 1=USB Only wait_ms(10); mdmEn = 1; // LDOEN: 0=off -> 1=on - wait_ms(50); // RST line will come up as soon as + wait_ms(50); // mdmPwrOn = 0; // PWRON: 0=turn on -> 1=idle - wait_ms(300); // power on sequence is triggered by keeping reset 50ms-300ms low + wait_ms(300); // power on is triggered by asserting PwrOn mdmPwrOn = 1; // PWRON: 0=turn on -> 1=idle mdmIsEnabled = true; wait_ms(1000);