test program for SIM808 GPRS + JPEG Camera library for LinkSprite LS-Y201 camera +MPU9150

Dependencies:   JPEGCamera MPU9150_DMP_Nucleo QuaternionMath mbed

Fork of JPEGCamera_SIM808_STM32F401RE by 涂 桂旺

Files at this revision

API Documentation at this revision

Comitter:
tgw
Date:
Sat Jul 01 06:33:25 2017 +0000
Parent:
4:c4c42e7c2298
Commit message:
gps

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r c4c42e7c2298 -r a4bb144ba3b7 main.cpp
--- a/main.cpp	Fri Jun 23 03:23:38 2017 +0000
+++ b/main.cpp	Sat Jul 01 06:33:25 2017 +0000
@@ -12,6 +12,8 @@
 #define sys_gprs        1
 #define sys_camera      2
 #define sys_mpu9150     3
+#define sys_gps         4
+#define sys_ble         5
 
 Serial pc(SERIAL_TX, SERIAL_RX); // SERIAL_TX(D1), SERIAL_RX(D0) read from bluetooth module VERIFIED
 Serial sim808(PA_9, PA_10); // TX(D8), RX(D2) to camera
@@ -352,7 +354,7 @@
     //Continuously wait for commands
     while(1) 
     {
-        //-------------------------事件处理-----------------------------------------------
+        //-------------------------E事件处理-----------------------------------------------
         //Check for bytes over serial from bluetooth/xbee
         if(pc.readable()) 
         {
@@ -374,6 +376,7 @@
                 pc.printf("sys_id is MPU9150\r\n");
             }
         }
+        //-------------------------I事件处理-----------------------------------------------
         
         //-------------------------运行线程-----------------------------------------------
         switch(sys_id)
@@ -387,6 +390,10 @@
             case sys_mpu9150:
                 pro_mpu9150();
                 break;
+             case sys_gps:
+                break;
+             case sys_ble:
+                break;
             default:
                 break;
         }
diff -r c4c42e7c2298 -r a4bb144ba3b7 mbed.bld
--- a/mbed.bld	Fri Jun 23 03:23:38 2017 +0000
+++ b/mbed.bld	Sat Jul 01 06:33:25 2017 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/mbed_official/code/mbed/builds/86740a56073b
\ No newline at end of file
+https://mbed.org/users/mbed_official/code/mbed/builds/64910690c574
\ No newline at end of file