Update revision to use TI's mqtt and Freertos.
Dependencies: mbed client server
Fork of cc3100_Test_mqtt_CM3 by
FreeRTOS_V8_2_1/FreeRTOSConfig.h@3:a8c249046181, 2015-09-03 (annotated)
- Committer:
- dflet
- Date:
- Thu Sep 03 14:02:37 2015 +0000
- Revision:
- 3:a8c249046181
SPI Mode change 1 to 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dflet | 3:a8c249046181 | 1 | /* |
dflet | 3:a8c249046181 | 2 | FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. |
dflet | 3:a8c249046181 | 3 | All rights reserved |
dflet | 3:a8c249046181 | 4 | |
dflet | 3:a8c249046181 | 5 | VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. |
dflet | 3:a8c249046181 | 6 | |
dflet | 3:a8c249046181 | 7 | *************************************************************************** |
dflet | 3:a8c249046181 | 8 | * * |
dflet | 3:a8c249046181 | 9 | * FreeRTOS provides completely free yet professionally developed, * |
dflet | 3:a8c249046181 | 10 | * robust, strictly quality controlled, supported, and cross * |
dflet | 3:a8c249046181 | 11 | * platform software that has become a de facto standard. * |
dflet | 3:a8c249046181 | 12 | * * |
dflet | 3:a8c249046181 | 13 | * Help yourself get started quickly and support the FreeRTOS * |
dflet | 3:a8c249046181 | 14 | * project by purchasing a FreeRTOS tutorial book, reference * |
dflet | 3:a8c249046181 | 15 | * manual, or both from: http://www.FreeRTOS.org/Documentation * |
dflet | 3:a8c249046181 | 16 | * * |
dflet | 3:a8c249046181 | 17 | * Thank you! * |
dflet | 3:a8c249046181 | 18 | * * |
dflet | 3:a8c249046181 | 19 | *************************************************************************** |
dflet | 3:a8c249046181 | 20 | |
dflet | 3:a8c249046181 | 21 | This file is part of the FreeRTOS distribution. |
dflet | 3:a8c249046181 | 22 | |
dflet | 3:a8c249046181 | 23 | FreeRTOS is free software; you can redistribute it and/or modify it under |
dflet | 3:a8c249046181 | 24 | the terms of the GNU General Public License (version 2) as published by the |
dflet | 3:a8c249046181 | 25 | Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception. |
dflet | 3:a8c249046181 | 26 | |
dflet | 3:a8c249046181 | 27 | >>! NOTE: The modification to the GPL is included to allow you to distribute |
dflet | 3:a8c249046181 | 28 | >>! a combined work that includes FreeRTOS without being obliged to provide |
dflet | 3:a8c249046181 | 29 | >>! the source code for proprietary components outside of the FreeRTOS |
dflet | 3:a8c249046181 | 30 | >>! kernel. |
dflet | 3:a8c249046181 | 31 | |
dflet | 3:a8c249046181 | 32 | FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY |
dflet | 3:a8c249046181 | 33 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
dflet | 3:a8c249046181 | 34 | FOR A PARTICULAR PURPOSE. Full license text is available from the following |
dflet | 3:a8c249046181 | 35 | link: http://www.freertos.org/a00114.html |
dflet | 3:a8c249046181 | 36 | |
dflet | 3:a8c249046181 | 37 | 1 tab == 4 spaces! |
dflet | 3:a8c249046181 | 38 | |
dflet | 3:a8c249046181 | 39 | *************************************************************************** |
dflet | 3:a8c249046181 | 40 | * * |
dflet | 3:a8c249046181 | 41 | * Having a problem? Start by reading the FAQ "My application does * |
dflet | 3:a8c249046181 | 42 | * not run, what could be wrong?" * |
dflet | 3:a8c249046181 | 43 | * * |
dflet | 3:a8c249046181 | 44 | * http://www.FreeRTOS.org/FAQHelp.html * |
dflet | 3:a8c249046181 | 45 | * * |
dflet | 3:a8c249046181 | 46 | *************************************************************************** |
dflet | 3:a8c249046181 | 47 | |
dflet | 3:a8c249046181 | 48 | http://www.FreeRTOS.org - Documentation, books, training, latest versions, |
dflet | 3:a8c249046181 | 49 | license and Real Time Engineers Ltd. contact details. |
dflet | 3:a8c249046181 | 50 | |
dflet | 3:a8c249046181 | 51 | http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products, |
dflet | 3:a8c249046181 | 52 | including FreeRTOS+Trace - an indispensable productivity tool, a DOS |
dflet | 3:a8c249046181 | 53 | compatible FAT file system, and our tiny thread aware UDP/IP stack. |
dflet | 3:a8c249046181 | 54 | |
dflet | 3:a8c249046181 | 55 | http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High |
dflet | 3:a8c249046181 | 56 | Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS |
dflet | 3:a8c249046181 | 57 | licenses offer ticketed support, indemnification and middleware. |
dflet | 3:a8c249046181 | 58 | |
dflet | 3:a8c249046181 | 59 | http://www.SafeRTOS.com - High Integrity Systems also provide a safety |
dflet | 3:a8c249046181 | 60 | engineered and independently SIL3 certified version for use in safety and |
dflet | 3:a8c249046181 | 61 | mission critical applications that require provable dependability. |
dflet | 3:a8c249046181 | 62 | |
dflet | 3:a8c249046181 | 63 | 1 tab == 4 spaces! |
dflet | 3:a8c249046181 | 64 | */ |
dflet | 3:a8c249046181 | 65 | |
dflet | 3:a8c249046181 | 66 | #ifndef FREERTOS_CONFIG_H |
dflet | 3:a8c249046181 | 67 | #define FREERTOS_CONFIG_H |
dflet | 3:a8c249046181 | 68 | |
dflet | 3:a8c249046181 | 69 | /*----------------------------------------------------------- |
dflet | 3:a8c249046181 | 70 | * Application specific definitions. |
dflet | 3:a8c249046181 | 71 | * |
dflet | 3:a8c249046181 | 72 | * These definitions should be adjusted for your particular hardware and |
dflet | 3:a8c249046181 | 73 | * application requirements. |
dflet | 3:a8c249046181 | 74 | * |
dflet | 3:a8c249046181 | 75 | * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE |
dflet | 3:a8c249046181 | 76 | * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. |
dflet | 3:a8c249046181 | 77 | *----------------------------------------------------------*/ |
dflet | 3:a8c249046181 | 78 | |
dflet | 3:a8c249046181 | 79 | #include <stdint.h> |
dflet | 3:a8c249046181 | 80 | #include "myBoardInit.h" |
dflet | 3:a8c249046181 | 81 | extern uint32_t SystemCoreClock; |
dflet | 3:a8c249046181 | 82 | //#define vPortYieldProcessor swi_handler |
dflet | 3:a8c249046181 | 83 | |
dflet | 3:a8c249046181 | 84 | #define configUSE_PREEMPTION 1 |
dflet | 3:a8c249046181 | 85 | #define configUSE_IDLE_HOOK 0 |
dflet | 3:a8c249046181 | 86 | #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) |
dflet | 3:a8c249046181 | 87 | #define configUSE_TICK_HOOK 0 |
dflet | 3:a8c249046181 | 88 | #define configCPU_CLOCK_HZ ( ( unsigned long ) SystemCoreClock ) |
dflet | 3:a8c249046181 | 89 | #define configTICK_RATE_HZ ( ( portTickType ) 1000 ) |
dflet | 3:a8c249046181 | 90 | #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 ) |
dflet | 3:a8c249046181 | 91 | #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 10 * 1024 ) ) |
dflet | 3:a8c249046181 | 92 | #define configMAX_TASK_NAME_LEN ( 16 ) |
dflet | 3:a8c249046181 | 93 | #define configUSE_TRACE_FACILITY 1 |
dflet | 3:a8c249046181 | 94 | #define configUSE_16_BIT_TICKS 0 |
dflet | 3:a8c249046181 | 95 | #define configIDLE_SHOULD_YIELD 1//0 |
dflet | 3:a8c249046181 | 96 | #define configUSE_CO_ROUTINES 0 |
dflet | 3:a8c249046181 | 97 | #define configUSE_MUTEXES 1 |
dflet | 3:a8c249046181 | 98 | |
dflet | 3:a8c249046181 | 99 | //#define configMAX_PRIORITIES ( 10UL ) |
dflet | 3:a8c249046181 | 100 | /* Co-routine definitions. */ |
dflet | 3:a8c249046181 | 101 | #define configUSE_CO_ROUTINES 0 |
dflet | 3:a8c249046181 | 102 | #define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) |
dflet | 3:a8c249046181 | 103 | |
dflet | 3:a8c249046181 | 104 | #define configUSE_COUNTING_SEMAPHORES 1//0 |
dflet | 3:a8c249046181 | 105 | #define configUSE_ALTERNATIVE_API 1//0 |
dflet | 3:a8c249046181 | 106 | #define configCHECK_FOR_STACK_OVERFLOW 0 |
dflet | 3:a8c249046181 | 107 | #define configUSE_RECURSIVE_MUTEXES 1 |
dflet | 3:a8c249046181 | 108 | #define configQUEUE_REGISTRY_SIZE 10 |
dflet | 3:a8c249046181 | 109 | #define configGENERATE_RUN_TIME_STATS 0 |
dflet | 3:a8c249046181 | 110 | |
dflet | 3:a8c249046181 | 111 | /* Timer related defines. */ |
dflet | 3:a8c249046181 | 112 | #define configUSE_TIMERS 0 |
dflet | 3:a8c249046181 | 113 | #define configTIMER_TASK_PRIORITY 2 |
dflet | 3:a8c249046181 | 114 | #define configTIMER_QUEUE_LENGTH 20 |
dflet | 3:a8c249046181 | 115 | #define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 ) |
dflet | 3:a8c249046181 | 116 | #define configUSE_MALLOC_FAILED_HOOK 0//1 |
dflet | 3:a8c249046181 | 117 | #define configENABLE_BACKWARD_COMPATIBILITY 1//0 |
dflet | 3:a8c249046181 | 118 | |
dflet | 3:a8c249046181 | 119 | /* Set the following definitions to 1 to include the API function, or zero |
dflet | 3:a8c249046181 | 120 | to exclude the API function. */ |
dflet | 3:a8c249046181 | 121 | |
dflet | 3:a8c249046181 | 122 | #define INCLUDE_vTaskPrioritySet 1 |
dflet | 3:a8c249046181 | 123 | #define INCLUDE_uxTaskPriorityGet 1 |
dflet | 3:a8c249046181 | 124 | #define INCLUDE_vTaskDelete 1 |
dflet | 3:a8c249046181 | 125 | #define INCLUDE_vTaskCleanUpResources 1 |
dflet | 3:a8c249046181 | 126 | #define INCLUDE_vTaskSuspend 1 |
dflet | 3:a8c249046181 | 127 | #define INCLUDE_vTaskDelayUntil 1 |
dflet | 3:a8c249046181 | 128 | #define INCLUDE_vTaskDelay 1 |
dflet | 3:a8c249046181 | 129 | #define INCLUDE_uxTaskGetStackHighWaterMark 0 |
dflet | 3:a8c249046181 | 130 | #define INCLUDE_xTaskGetSchedulerState 1 |
dflet | 3:a8c249046181 | 131 | #define INCLUDE_xTimerGetTimerDaemonTaskHandle 0 |
dflet | 3:a8c249046181 | 132 | #define INCLUDE_xTaskGetIdleTaskHandle 1 |
dflet | 3:a8c249046181 | 133 | #define INCLUDE_pcTaskGetTaskName 1 |
dflet | 3:a8c249046181 | 134 | #define INCLUDE_eTaskGetState 1 |
dflet | 3:a8c249046181 | 135 | #define INCLUDE_xSemaphoreGetMutexHolder 0 |
dflet | 3:a8c249046181 | 136 | |
dflet | 3:a8c249046181 | 137 | |
dflet | 3:a8c249046181 | 138 | /* Use the system definition, if there is one */ |
dflet | 3:a8c249046181 | 139 | #ifdef __NVIC_PRIO_BITS |
dflet | 3:a8c249046181 | 140 | #define configPRIO_BITS __NVIC_PRIO_BITS |
dflet | 3:a8c249046181 | 141 | #else |
dflet | 3:a8c249046181 | 142 | #define configPRIO_BITS 5 /* 32 priority levels */ |
dflet | 3:a8c249046181 | 143 | #endif |
dflet | 3:a8c249046181 | 144 | |
dflet | 3:a8c249046181 | 145 | /* Define to trap errors during development. */ |
dflet | 3:a8c249046181 | 146 | //void vAssertCalled( const char *pcFile, unsigned long ulLine ); |
dflet | 3:a8c249046181 | 147 | // #define configASSERT( x ) if( x == 0 ) vAssertCalled( __FILE__, __LINE__ ); |
dflet | 3:a8c249046181 | 148 | |
dflet | 3:a8c249046181 | 149 | /* The lowest priority. */ |
dflet | 3:a8c249046181 | 150 | #define configKERNEL_INTERRUPT_PRIORITY ( 31 << (8 - configPRIO_BITS) ) |
dflet | 3:a8c249046181 | 151 | /* Priority 5, or 160 as only the top three bits are implemented. */ |
dflet | 3:a8c249046181 | 152 | /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! |
dflet | 3:a8c249046181 | 153 | See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ |
dflet | 3:a8c249046181 | 154 | #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) ) |
dflet | 3:a8c249046181 | 155 | |
dflet | 3:a8c249046181 | 156 | /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS |
dflet | 3:a8c249046181 | 157 | standard names - or at least those used in the unmodified vector table. */ |
dflet | 3:a8c249046181 | 158 | #define vPortSVCHandler SVC_Handler |
dflet | 3:a8c249046181 | 159 | #define xPortPendSVHandler PendSV_Handler |
dflet | 3:a8c249046181 | 160 | #define xPortSysTickHandler SysTick_Handler |
dflet | 3:a8c249046181 | 161 | |
dflet | 3:a8c249046181 | 162 | |
dflet | 3:a8c249046181 | 163 | #endif /* FREERTOS_CONFIG_H */ |