TI's CC3100 websocket camera demo with Arducam mini ov5642 and freertos. Should work with other M3's. Work in progress test demo.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FreeRTOSConfig.h Source File

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 #include "myBoardInit.h"
00081 extern uint32_t SystemCoreClock;
00082 //#define vPortYieldProcessor swi_handler
00083 
00084 #define configUSE_PREEMPTION        1
00085 #define configUSE_IDLE_HOOK         0
00086 #define configMAX_PRIORITIES        ( ( unsigned portBASE_TYPE ) 5 )
00087 #define configUSE_TICK_HOOK         0
00088 #define configCPU_CLOCK_HZ          ( ( unsigned long ) SystemCoreClock )
00089 #define configTICK_RATE_HZ          ( ( portTickType ) 1000 )
00090 #define configMINIMAL_STACK_SIZE    ( ( unsigned short ) 80 )
00091 #define configTOTAL_HEAP_SIZE       ( ( size_t ) ( 8 * 1024 ) )
00092 #define configMAX_TASK_NAME_LEN     ( 16 )
00093 #define configUSE_TRACE_FACILITY    1
00094 #define configUSE_16_BIT_TICKS      0
00095 #define configIDLE_SHOULD_YIELD     1//0
00096 #define configUSE_CO_ROUTINES       0
00097 #define configUSE_MUTEXES           1
00098 
00099 //#define configMAX_PRIORITIES          ( 10UL )
00100 /* Co-routine definitions. */
00101 #define configUSE_CO_ROUTINES       0
00102 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
00103 
00104 #define configUSE_COUNTING_SEMAPHORES   1//0
00105 #define configUSE_ALTERNATIVE_API       1//0
00106 #define configCHECK_FOR_STACK_OVERFLOW  0
00107 #define configUSE_RECURSIVE_MUTEXES     1
00108 #define configQUEUE_REGISTRY_SIZE       10
00109 #define configGENERATE_RUN_TIME_STATS   0
00110 
00111 /* Timer related defines. */
00112 #define configUSE_TIMERS                0
00113 #define configTIMER_TASK_PRIORITY       2
00114 #define configTIMER_QUEUE_LENGTH        20
00115 #define configTIMER_TASK_STACK_DEPTH    ( configMINIMAL_STACK_SIZE * 2 )
00116 #define configUSE_MALLOC_FAILED_HOOK    0//1
00117 #define configENABLE_BACKWARD_COMPATIBILITY 1//0
00118 
00119 /* Set the following definitions to 1 to include the API function, or zero
00120 to exclude the API function. */
00121 
00122 #define INCLUDE_vTaskPrioritySet                1
00123 #define INCLUDE_uxTaskPriorityGet               1
00124 #define INCLUDE_vTaskDelete                     1
00125 #define INCLUDE_vTaskCleanUpResources           1
00126 #define INCLUDE_vTaskSuspend                    1
00127 #define INCLUDE_vTaskDelayUntil                 1
00128 #define INCLUDE_vTaskDelay                      1
00129 #define INCLUDE_uxTaskGetStackHighWaterMark     0
00130 #define INCLUDE_xTaskGetSchedulerState          1
00131 #define INCLUDE_xTimerGetTimerDaemonTaskHandle  0
00132 #define INCLUDE_xTaskGetIdleTaskHandle          1
00133 #define INCLUDE_pcTaskGetTaskName               1
00134 #define INCLUDE_eTaskGetState                   1
00135 #define INCLUDE_xSemaphoreGetMutexHolder        0
00136 
00137 
00138 /* Use the system definition, if there is one */
00139 #ifdef __NVIC_PRIO_BITS
00140     #define configPRIO_BITS       __NVIC_PRIO_BITS
00141 #else
00142     #define configPRIO_BITS       5        /* 32 priority levels */
00143 #endif
00144 
00145 /* Define to trap errors during development. */
00146 //void vAssertCalled( const char *pcFile, unsigned long ulLine );
00147 //  #define configASSERT( x ) if( x == 0 ) vAssertCalled( __FILE__, __LINE__ );
00148 
00149 /* The lowest priority. */
00150 #define configKERNEL_INTERRUPT_PRIORITY     ( 31 << (8 - configPRIO_BITS) )
00151 /* Priority 5, or 160 as only the top three bits are implemented. */
00152 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
00153 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
00154 #define configMAX_SYSCALL_INTERRUPT_PRIORITY    ( 5 << (8 - configPRIO_BITS) )
00155 
00156 /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
00157 standard names - or at least those used in the unmodified vector table. */
00158 #define vPortSVCHandler SVC_Handler
00159 #define xPortPendSVHandler PendSV_Handler
00160 #define xPortSysTickHandler SysTick_Handler
00161 
00162 
00163 #endif /* FREERTOS_CONFIG_H */