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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"   
00002 #include "C027.h"
00003 
00004 DigitalOut myled(LED);
00005 DigitalOut mdm_activity(LED1);
00006 
00007 int main() 
00008 {
00009     // the instantiation of the type, calls C027::C027
00010     C027 c027;
00011     
00012     // power on the LISA chip
00013     c027.mdmPower(true,false);
00014     
00015     // power on the GPS chip, and enable the buffer
00016     //   for LISA access to the GPS chip.
00017     c027.gpsPower(true, true);
00018     
00019 #if 1
00020     while(1) {
00021         myled = !myled;
00022         wait(0.2);
00023     }
00024 #endif
00025 
00026 }