RevB Hardware This is the BootTest for revb hardware, for the C027 platform. This code performs a boot operation on the LISA-C200 module, bringing up the signals in the correct order, as reviewed by the hardware team at U-Blox. This simple code performs the boot operation on the LISA-C200, and proceeds into an infinite loop toggling an LED on the board, so that we visually know that the LISA boot operation is complete.

Dependencies:   C027-REVB mbed

Committer:
dixter1
Date:
Thu Dec 12 19:17:36 2013 +0000
Revision:
0:048bb9e158e9
Child:
1:ba85fcc30fe1
Boot Test for REVB Hardware

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dixter1 0:048bb9e158e9 1 #include "mbed.h"
dixter1 0:048bb9e158e9 2 #include "C027.h"
dixter1 0:048bb9e158e9 3 #include "WANDongle.h"
dixter1 0:048bb9e158e9 4 #include "USBSerialStream.h"
dixter1 0:048bb9e158e9 5 #include "UbloxCDMAModemInitializer.h"
dixter1 0:048bb9e158e9 6 #include "UbloxGSMModemInitializer.h"
dixter1 0:048bb9e158e9 7
dixter1 0:048bb9e158e9 8 DigitalOut myled(LED);
dixter1 0:048bb9e158e9 9 DigitalOut mdm_activity(LED1);
dixter1 0:048bb9e158e9 10
dixter1 0:048bb9e158e9 11 int main()
dixter1 0:048bb9e158e9 12 {
dixter1 0:048bb9e158e9 13 // the instantiation of the type, calls C027::C027
dixter1 0:048bb9e158e9 14 C027 c027;
dixter1 0:048bb9e158e9 15
dixter1 0:048bb9e158e9 16 // c027.mdmUsbEnable(true);
dixter1 0:048bb9e158e9 17
dixter1 0:048bb9e158e9 18 c027.mdmPower(true);
dixter1 0:048bb9e158e9 19
dixter1 0:048bb9e158e9 20 #if 1
dixter1 0:048bb9e158e9 21 while(1) {
dixter1 0:048bb9e158e9 22 myled = !myled;
dixter1 0:048bb9e158e9 23 wait(0.2);
dixter1 0:048bb9e158e9 24 }
dixter1 0:048bb9e158e9 25 #endif
dixter1 0:048bb9e158e9 26
dixter1 0:048bb9e158e9 27 }