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 mpu_wrappers.h Source File

mpu_wrappers.h

00001 /*
00002     FreeRTOS V8.2.1 - Copyright (C) 2015 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     This file is part of the FreeRTOS distribution.
00008 
00009     FreeRTOS is free software; you can redistribute it and/or modify it under
00010     the terms of the GNU General Public License (version 2) as published by the
00011     Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
00012 
00013     ***************************************************************************
00014     >>!   NOTE: The modification to the GPL is included to allow you to     !<<
00015     >>!   distribute a combined work that includes FreeRTOS without being   !<<
00016     >>!   obliged to provide the source code for proprietary components     !<<
00017     >>!   outside of the FreeRTOS kernel.                                   !<<
00018     ***************************************************************************
00019 
00020     FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
00021     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00022     FOR A PARTICULAR PURPOSE.  Full license text is available on the following
00023     link: http://www.freertos.org/a00114.html
00024 
00025     ***************************************************************************
00026      *                                                                       *
00027      *    FreeRTOS provides completely free yet professionally developed,    *
00028      *    robust, strictly quality controlled, supported, and cross          *
00029      *    platform software that is more than just the market leader, it     *
00030      *    is the industry's de facto standard.                               *
00031      *                                                                       *
00032      *    Help yourself get started quickly while simultaneously helping     *
00033      *    to support the FreeRTOS project by purchasing a FreeRTOS           *
00034      *    tutorial book, reference manual, or both:                          *
00035      *    http://www.FreeRTOS.org/Documentation                              *
00036      *                                                                       *
00037     ***************************************************************************
00038 
00039     http://www.FreeRTOS.org/FAQHelp.html - Having a problem?  Start by reading
00040     the FAQ page "My application does not run, what could be wrong?".  Have you
00041     defined configASSERT()?
00042 
00043     http://www.FreeRTOS.org/support - In return for receiving this top quality
00044     embedded software for free we request you assist our global community by
00045     participating in the support forum.
00046 
00047     http://www.FreeRTOS.org/training - Investing in training allows your team to
00048     be as productive as possible as early as possible.  Now you can receive
00049     FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
00050     Ltd, and the world's leading authority on the world's leading RTOS.
00051 
00052     http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
00053     including FreeRTOS+Trace - an indispensable productivity tool, a DOS
00054     compatible FAT file system, and our tiny thread aware UDP/IP stack.
00055 
00056     http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
00057     Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
00058 
00059     http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
00060     Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS
00061     licenses offer ticketed support, indemnification and commercial middleware.
00062 
00063     http://www.SafeRTOS.com - High Integrity Systems also provide a safety
00064     engineered and independently SIL3 certified version for use in safety and
00065     mission critical applications that require provable dependability.
00066 
00067     1 tab == 4 spaces!
00068 */
00069 
00070 #ifndef MPU_WRAPPERS_H
00071 #define MPU_WRAPPERS_H
00072 
00073 /* This file redefines API functions to be called through a wrapper macro, but
00074 only for ports that are using the MPU. */
00075 #ifdef portUSING_MPU_WRAPPERS
00076 
00077     /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is
00078     included from queue.c or task.c to prevent it from having an effect within
00079     those files. */
00080     #ifndef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
00081 
00082         #define xTaskGenericCreate              MPU_xTaskGenericCreate
00083         #define vTaskAllocateMPURegions         MPU_vTaskAllocateMPURegions
00084         #define vTaskDelete                     MPU_vTaskDelete
00085         #define vTaskDelayUntil                 MPU_vTaskDelayUntil
00086         #define vTaskDelay                      MPU_vTaskDelay
00087         #define uxTaskPriorityGet               MPU_uxTaskPriorityGet
00088         #define vTaskPrioritySet                MPU_vTaskPrioritySet
00089         #define eTaskGetState                   MPU_eTaskGetState
00090         #define vTaskSuspend                    MPU_vTaskSuspend
00091         #define vTaskResume                     MPU_vTaskResume
00092         #define vTaskSuspendAll                 MPU_vTaskSuspendAll
00093         #define xTaskResumeAll                  MPU_xTaskResumeAll
00094         #define xTaskGetTickCount               MPU_xTaskGetTickCount
00095         #define uxTaskGetNumberOfTasks          MPU_uxTaskGetNumberOfTasks
00096         #define vTaskList                       MPU_vTaskList
00097         #define vTaskGetRunTimeStats            MPU_vTaskGetRunTimeStats
00098         #define vTaskSetApplicationTaskTag      MPU_vTaskSetApplicationTaskTag
00099         #define xTaskGetApplicationTaskTag      MPU_xTaskGetApplicationTaskTag
00100         #define xTaskCallApplicationTaskHook    MPU_xTaskCallApplicationTaskHook
00101         #define uxTaskGetStackHighWaterMark     MPU_uxTaskGetStackHighWaterMark
00102         #define xTaskGetCurrentTaskHandle       MPU_xTaskGetCurrentTaskHandle
00103         #define xTaskGetSchedulerState          MPU_xTaskGetSchedulerState
00104         #define xTaskGetIdleTaskHandle          MPU_xTaskGetIdleTaskHandle
00105         #define uxTaskGetSystemState            MPU_uxTaskGetSystemState
00106 
00107         #define xQueueGenericCreate             MPU_xQueueGenericCreate
00108         #define xQueueCreateMutex               MPU_xQueueCreateMutex
00109         #define xQueueGiveMutexRecursive        MPU_xQueueGiveMutexRecursive
00110         #define xQueueTakeMutexRecursive        MPU_xQueueTakeMutexRecursive
00111         #define xQueueCreateCountingSemaphore   MPU_xQueueCreateCountingSemaphore
00112         #define xQueueGenericSend               MPU_xQueueGenericSend
00113         #define xQueueAltGenericSend            MPU_xQueueAltGenericSend
00114         #define xQueueAltGenericReceive         MPU_xQueueAltGenericReceive
00115         #define xQueueGenericReceive            MPU_xQueueGenericReceive
00116         #define uxQueueMessagesWaiting          MPU_uxQueueMessagesWaiting
00117         #define vQueueDelete                    MPU_vQueueDelete
00118         #define xQueueGenericReset              MPU_xQueueGenericReset
00119         #define xQueueCreateSet                 MPU_xQueueCreateSet
00120         #define xQueueSelectFromSet             MPU_xQueueSelectFromSet
00121         #define xQueueAddToSet                  MPU_xQueueAddToSet
00122         #define xQueueRemoveFromSet             MPU_xQueueRemoveFromSet
00123         #define xQueuePeekFromISR               MPU_xQueuePeekFromISR
00124         #define xQueueGetMutexHolder            MPU_xQueueGetMutexHolder
00125 
00126         #define pvPortMalloc                    MPU_pvPortMalloc
00127         #define vPortFree                       MPU_vPortFree
00128         #define xPortGetFreeHeapSize            MPU_xPortGetFreeHeapSize
00129         #define vPortInitialiseBlocks           MPU_vPortInitialiseBlocks
00130 
00131         #if configQUEUE_REGISTRY_SIZE > 0
00132             #define vQueueAddToRegistry             MPU_vQueueAddToRegistry
00133             #define vQueueUnregisterQueue           MPU_vQueueUnregisterQueue
00134         #endif
00135 
00136         /* Remove the privileged function macro. */
00137         #define PRIVILEGED_FUNCTION
00138 
00139     #else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
00140 
00141         /* Ensure API functions go in the privileged execution section. */
00142         #define PRIVILEGED_FUNCTION __attribute__((section("privileged_functions")))
00143         #define PRIVILEGED_DATA __attribute__((section("privileged_data")))
00144 
00145     #endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
00146 
00147 #else /* portUSING_MPU_WRAPPERS */
00148 
00149     #define PRIVILEGED_FUNCTION
00150     #define PRIVILEGED_DATA
00151     #define portUSING_MPU_WRAPPERS 0
00152 
00153 #endif /* portUSING_MPU_WRAPPERS */
00154 
00155 
00156 #endif /* MPU_WRAPPERS_H */
00157 
00158