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

utils/app_config.h

Committer:
dflet
Date:
2015-09-15
Revision:
22:f9b5e0b80bf2
Parent:
21:38c6b11aa348

File content as of revision 22:f9b5e0b80bf2:


#ifndef app_config_H
#define app_config_H

//*****************************************************************************
//
// If building with a C++ compiler, make all of the definitions in this header
// have a C binding.
//
//*****************************************************************************
#ifdef __cplusplus
extern "C"
{
#endif

#define ENABLE_JPEG
#define MT9D111_CAM
//#define OV5642_CAM
//#define OV2640_CAM

//#define XGA_FRAME
//#define VGA_FRAME
#define QVGA_FRAME
//#define QCIF_FRAME

#ifdef MT9D111_CAM
#define sensor_addr  0xBA//Dummy
#endif
#ifdef OV2640_CAM
#define sensor_addr  0x60
#endif
#ifdef OV5642_CAM
#define sensor_addr  0x78
#endif

#define SPAWN_TASK_PRIORITY            9//9
#define HTTP_SERVER_APP_TASK_PRIORITY  3//1
#define CAMERA_SERVICE_PRIORITY        3
#define OSI_STACK_SIZE                 8 * 1024

//*****************************************************************************
//
// Mark the end of the C bindings section for C++ compilers.
//
//*****************************************************************************
#ifdef __cplusplus
}
#endif

#endif