Port of TI's CC3100 Websock camera demo. Using FreeRTOS, mbedTLS, also parts of Arducam for cams ov5642 and 0v2640. Can also use MT9D111. Work in progress. Be warned some parts maybe a bit flacky. This is for Seeed Arch max only, for an M3, see the demo for CM3 using the 0v5642 aducam mini.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
dflet
Date:
Tue Sep 15 16:45:04 2015 +0000
Parent:
21:38c6b11aa348
Commit message:
Removed some debug.

Changed in this revision

camera_app/camera_app.cpp Show annotated file Show diff for this revision Revisions of this file
simplelink/cc3100_sl_common.h Show annotated file Show diff for this revision Revisions of this file
diff -r 38c6b11aa348 -r f9b5e0b80bf2 camera_app/camera_app.cpp
--- a/camera_app/camera_app.cpp	Tue Sep 15 15:39:38 2015 +0000
+++ b/camera_app/camera_app.cpp	Tue Sep 15 16:45:04 2015 +0000
@@ -450,8 +450,7 @@
     phdcmi.Init.HSPolarity       = DCMI_HSPOLARITY_LOW;//Active low
 #endif    
 #ifdef MT9D111_CAM
-    phdcmi.Init.PCKPolarity      = DCMI_PCKPOLARITY_RISING;//Data clocked out on rising edge 
-//    phdcmi.Init.PCKPolarity      = DCMI_PCKPOLARITY_FALLING;//Data clocked out on falling edge       
+    phdcmi.Init.PCKPolarity      = DCMI_PCKPOLARITY_RISING;//Data clocked out on rising edge      
     phdcmi.Init.VSPolarity       = DCMI_VSPOLARITY_LOW;//Active high
     phdcmi.Init.HSPolarity       = DCMI_HSPOLARITY_LOW;//Active high    
 #endif        
@@ -621,14 +620,12 @@
 void HAL_DCMI_LineEventCallback(DCMI_HandleTypeDef *hdcmi)
 {
     //g_lines++;
-    //HttpDebug("\r\nDCMI_LineEventCallback! 0x%x\r\n",hdcmi->ErrorCode);
 
 }
 
 void HAL_DCMI_VsyncEventCallback(DCMI_HandleTypeDef *hdcmi)
 {
     //g_lines = 0;
-//    printf("\r\nVsyncEventCallback\r\n");
 
 }
 
diff -r 38c6b11aa348 -r f9b5e0b80bf2 simplelink/cc3100_sl_common.h
--- a/simplelink/cc3100_sl_common.h	Tue Sep 15 15:39:38 2015 +0000
+++ b/simplelink/cc3100_sl_common.h	Tue Sep 15 16:45:04 2015 +0000
@@ -67,11 +67,11 @@
  * Values for below macros shall be modified per the access-point's (AP) properties
  * SimpleLink device will connect to following AP when the application is executed
  */
-#define SSID_NAME         "SKY2B112"
+#define SSID_NAME         "***********"
 //#define SSID_NAME       "OpenWrt"         /* Access point name to connect to. */
 #define SEC_TYPE        SL_SEC_TYPE_WPA_WPA2    /* Security type of the Access point */
-#define PASSKEY           "YBCVWVCB"
-//#define PASSKEY         "BCVWVCBY"                  /* Password in case of secure AP */
+#define PASSKEY           "*************"
+//#define PASSKEY         "***********"                  /* Password in case of secure AP */
 #define PASSKEY_LEN     strlen(PASSKEY)  /* Password length in case of secure AP */
 
 /* Configuration of the device when it comes up in AP mode */