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:
Fri Dec 13 23:41:57 2013 +0000
Revision:
2:7f1ba05e56f7
Parent:
1:ba85fcc30fe1
Latest updates for latest lib, for boot test, revb hardwarwe

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dixter1 1:ba85fcc30fe1 1 #include "mbed.h"
dixter1 0:048bb9e158e9 2 #include "C027.h"
dixter1 0:048bb9e158e9 3
dixter1 0:048bb9e158e9 4 DigitalOut myled(LED);
dixter1 0:048bb9e158e9 5 DigitalOut mdm_activity(LED1);
dixter1 0:048bb9e158e9 6
dixter1 0:048bb9e158e9 7 int main()
dixter1 0:048bb9e158e9 8 {
dixter1 0:048bb9e158e9 9 // the instantiation of the type, calls C027::C027
dixter1 0:048bb9e158e9 10 C027 c027;
dixter1 0:048bb9e158e9 11
dixter1 1:ba85fcc30fe1 12 // power on the LISA chip
dixter1 1:ba85fcc30fe1 13 c027.mdmPower(true,false);
dixter1 0:048bb9e158e9 14
dixter1 2:7f1ba05e56f7 15 // power on the GPS chip, and enable the buffer
dixter1 2:7f1ba05e56f7 16 // for LISA access to the GPS chip.
dixter1 2:7f1ba05e56f7 17 c027.gpsPower(true, true);
dixter1 1:ba85fcc30fe1 18
dixter1 0:048bb9e158e9 19 #if 1
dixter1 0:048bb9e158e9 20 while(1) {
dixter1 0:048bb9e158e9 21 myled = !myled;
dixter1 0:048bb9e158e9 22 wait(0.2);
dixter1 0:048bb9e158e9 23 }
dixter1 0:048bb9e158e9 24 #endif
dixter1 0:048bb9e158e9 25
dixter1 0:048bb9e158e9 26 }