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.
FreeRTOSConfig.h
00001 /* 00002 FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. 00003 All rights reserved 00004 00005 VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. 00006 00007 *************************************************************************** 00008 * * 00009 * FreeRTOS provides completely free yet professionally developed, * 00010 * robust, strictly quality controlled, supported, and cross * 00011 * platform software that has become a de facto standard. * 00012 * * 00013 * Help yourself get started quickly and support the FreeRTOS * 00014 * project by purchasing a FreeRTOS tutorial book, reference * 00015 * manual, or both from: http://www.FreeRTOS.org/Documentation * 00016 * * 00017 * Thank you! * 00018 * * 00019 *************************************************************************** 00020 00021 This file is part of the FreeRTOS distribution. 00022 00023 FreeRTOS is free software; you can redistribute it and/or modify it under 00024 the terms of the GNU General Public License (version 2) as published by the 00025 Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception. 00026 00027 >>! NOTE: The modification to the GPL is included to allow you to distribute 00028 >>! a combined work that includes FreeRTOS without being obliged to provide 00029 >>! the source code for proprietary components outside of the FreeRTOS 00030 >>! kernel. 00031 00032 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY 00033 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00034 FOR A PARTICULAR PURPOSE. Full license text is available from the following 00035 link: http://www.freertos.org/a00114.html 00036 00037 1 tab == 4 spaces! 00038 00039 *************************************************************************** 00040 * * 00041 * Having a problem? Start by reading the FAQ "My application does * 00042 * not run, what could be wrong?" * 00043 * * 00044 * http://www.FreeRTOS.org/FAQHelp.html * 00045 * * 00046 *************************************************************************** 00047 00048 http://www.FreeRTOS.org - Documentation, books, training, latest versions, 00049 license and Real Time Engineers Ltd. contact details. 00050 00051 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products, 00052 including FreeRTOS+Trace - an indispensable productivity tool, a DOS 00053 compatible FAT file system, and our tiny thread aware UDP/IP stack. 00054 00055 http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High 00056 Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS 00057 licenses offer ticketed support, indemnification and middleware. 00058 00059 http://www.SafeRTOS.com - High Integrity Systems also provide a safety 00060 engineered and independently SIL3 certified version for use in safety and 00061 mission critical applications that require provable dependability. 00062 00063 1 tab == 4 spaces! 00064 */ 00065 00066 #ifndef FREERTOS_CONFIG_H 00067 #define FREERTOS_CONFIG_H 00068 00069 /*----------------------------------------------------------- 00070 * Application specific definitions. 00071 * 00072 * These definitions should be adjusted for your particular hardware and 00073 * application requirements. 00074 * 00075 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE 00076 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. 00077 *----------------------------------------------------------*/ 00078 00079 #include <stdint.h> 00080 extern uint32_t SystemCoreClock; 00081 00082 #define configUSE_PREEMPTION 1 00083 #define configUSE_IDLE_HOOK 0 00084 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) 00085 #define configUSE_TICK_HOOK 0 00086 #define configCPU_CLOCK_HZ ( ( unsigned long ) SystemCoreClock ) 00087 #define configTICK_RATE_HZ ( ( portTickType ) 1000 ) 00088 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 130 ) 00089 #define configTOTAL_HEAP_SIZE ( ( size_t ) (36 * 1024) ) 00090 #define configMAX_TASK_NAME_LEN ( 24 ) 00091 #define configUSE_TRACE_FACILITY 1 00092 #define configUSE_16_BIT_TICKS 0 00093 #define configIDLE_SHOULD_YIELD 1//0 00094 #define configUSE_MUTEXES 1 00095 00096 /* Co-routine definitions. */ 00097 #define configUSE_CO_ROUTINES 0 00098 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) 00099 00100 #define configUSE_COUNTING_SEMAPHORES 1//0 00101 #define configUSE_ALTERNATIVE_API 1//0 00102 #define configCHECK_FOR_STACK_OVERFLOW 0 00103 #define configUSE_RECURSIVE_MUTEXES 1 00104 #define configQUEUE_REGISTRY_SIZE 10 00105 #define configGENERATE_RUN_TIME_STATS 0 00106 00107 /* Timer related defines. */ 00108 #define configUSE_TIMERS 0 00109 #define configTIMER_TASK_PRIORITY 2 00110 #define configTIMER_QUEUE_LENGTH 20 00111 #define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 ) 00112 #define configUSE_MALLOC_FAILED_HOOK 0//1 00113 #define configENABLE_BACKWARD_COMPATIBILITY 1//0 00114 00115 /* Set the following definitions to 1 to include the API function, or zero 00116 to exclude the API function. */ 00117 00118 #define INCLUDE_vTaskPrioritySet 1 00119 #define INCLUDE_uxTaskPriorityGet 1 00120 #define INCLUDE_vTaskDelete 1 00121 #define INCLUDE_vTaskCleanUpResources 1 00122 #define INCLUDE_vTaskSuspend 1 00123 #define INCLUDE_vTaskDelayUntil 1 00124 #define INCLUDE_vTaskDelay 1 00125 #define INCLUDE_uxTaskGetStackHighWaterMark 0 00126 #define INCLUDE_xTaskGetSchedulerState 1 00127 #define INCLUDE_xTimerGetTimerDaemonTaskHandle 0 00128 #define INCLUDE_xTaskGetIdleTaskHandle 1 00129 #define INCLUDE_pcTaskGetTaskName 1 00130 #define INCLUDE_eTaskGetState 1 00131 #define INCLUDE_xSemaphoreGetMutexHolder 0 00132 00133 00134 /* Use the system definition, if there is one */ 00135 #ifdef __NVIC_PRIO_BITS 00136 #define configPRIO_BITS __NVIC_PRIO_BITS 00137 #else 00138 #if (THIS_BOARD == Seeed_Arch_Max) 00139 #define configPRIO_BITS 4 /* 15 priority levels */ 00140 #else 00141 #define configPRIO_BITS 5 /* 32 priority levels */ 00142 #endif 00143 #endif 00144 00145 #if (THIS_BOARD == Seeed_Arch_Max) 00146 00147 /* The lowest interrupt priority that can be used in a call to a "set priority" 00148 function. */ 00149 #define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0xf 00150 00151 /* The highest interrupt priority that can be used by any interrupt service 00152 routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL 00153 INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER 00154 PRIORITY THAN THIS! (higher priorities are lower numeric values. */ 00155 #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5 00156 00157 /* Interrupt priorities used by the kernel port layer itself. These are generic 00158 to all Cortex-M ports, and do not rely on any particular library functions. */ 00159 #define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) 00160 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! 00161 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ 00162 #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) ) 00163 #else 00164 00165 /* Define to trap errors during development. */ 00166 //void vAssertCalled( const char *pcFile, unsigned long ulLine ); 00167 // #define configASSERT( x ) if( x == 0 ) vAssertCalled( __FILE__, __LINE__ ); 00168 00169 /* The lowest priority. */ 00170 #define configKERNEL_INTERRUPT_PRIORITY ( 31 << (8 - configPRIO_BITS) ) 00171 /* Priority 5, or 160 as only the top three bits are implemented. */ 00172 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! 00173 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ 00174 #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) ) 00175 #endif 00176 00177 /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS 00178 standard names - or at least those used in the unmodified vector table. */ 00179 #define vPortSVCHandler SVC_Handler 00180 #define xPortPendSVHandler PendSV_Handler 00181 #define xPortSysTickHandler SysTick_Handler 00182 00183 00184 #endif /* FREERTOS_CONFIG_H */
Generated on Tue Jul 12 2022 22:22:38 by 1.7.2