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.
main.cpp@1:ba85fcc30fe1, 2013-12-13 (annotated)
- Committer:
- dixter1
- Date:
- Fri Dec 13 20:26:52 2013 +0000
- Revision:
- 1:ba85fcc30fe1
- Parent:
- 0:048bb9e158e9
- Child:
- 2:7f1ba05e56f7
Boot Test for REVB Hardware, Updated. 3s delay after setting lines to initial (off) states, but prior to turning anything on. Also turns on GPS after Modem is turned on.
Who changed what in which revision?
User | Revision | Line number | New 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 | 1:ba85fcc30fe1 | 15 | // power on the GPS chip |
dixter1 | 1:ba85fcc30fe1 | 16 | c027.gpsPower(true); |
dixter1 | 1:ba85fcc30fe1 | 17 | |
dixter1 | 0:048bb9e158e9 | 18 | #if 1 |
dixter1 | 0:048bb9e158e9 | 19 | while(1) { |
dixter1 | 0:048bb9e158e9 | 20 | myled = !myled; |
dixter1 | 0:048bb9e158e9 | 21 | wait(0.2); |
dixter1 | 0:048bb9e158e9 | 22 | } |
dixter1 | 0:048bb9e158e9 | 23 | #endif |
dixter1 | 0:048bb9e158e9 | 24 | |
dixter1 | 0:048bb9e158e9 | 25 | } |