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

Revision:
15:5433f9d94cd7
Parent:
14:90603ea1e85b
Child:
16:7e5aab2fabba
--- a/main.cpp	Tue Aug 25 22:03:00 2015 +0000
+++ b/main.cpp	Fri Aug 28 21:04:44 2015 +0000
@@ -55,6 +55,11 @@
 #include "stm32f4xx_hal_rcc.h"
 
 /* Free-RTOS includes */
+#include "FreeRTOS.h"
+#include "task.h"
+#include "semphr.h"
+#include "portmacro.h"
+
 #include "osi.h"
 
 #include "cli_uart.h"
@@ -67,9 +72,6 @@
 extern DCMI_HandleTypeDef hdcmi;
 extern DMA_HandleTypeDef hdma_dcmi;
 
-void DCMI_IRQHandler(void);
-void DMA2_Stream1_IRQHandler(void);
-
 /* Warning if pin changes are made below then the same changes have to be made in the following files.
  * httpserverapp.cpp
  * HttpCore.cpp
@@ -120,7 +122,7 @@
     GPIO_InitStruct.Alternate = GPIO_AF0_MCO;
     HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
     
-#if defined OV5642_CAM || defined OV2640_CAM
+#if defined OV5642_CAM 
     /* MCO1 output 16MHz */   
     HAL_RCC_MCOConfig(RCC_MCO1, RCC_MCO1SOURCE_HSE, RCC_MCODIV_1);
 #else 
@@ -210,6 +212,8 @@
     //
     DisplayBanner(APP_NAME);
     
+    createMutex();
+    
 //#endif
 
     //