2 FreeRTOS V7.0.1 - Copyright (C) 2011 Real Time Engineers Ltd.
\r
5 FreeRTOS supports many tools and architectures. V7.0.0 is sponsored by:
\r
6 Atollic AB - Atollic provides professional embedded systems development
\r
7 tools for C/C++ development, code analysis and test automation.
\r
8 See http://www.atollic.com
\r
11 ***************************************************************************
\r
13 * FreeRTOS tutorial books are available in pdf and paperback. *
\r
14 * Complete, revised, and edited pdf reference manuals are also *
\r
17 * Purchasing FreeRTOS documentation will not only help you, by *
\r
18 * ensuring you get running as quickly as possible and with an *
\r
19 * in-depth knowledge of how to use FreeRTOS, it will also help *
\r
20 * the FreeRTOS project to continue with its mission of providing *
\r
21 * professional grade, cross platform, de facto standard solutions *
\r
22 * for microcontrollers - completely free of charge! *
\r
24 * >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
\r
26 * Thank you for using FreeRTOS, and thank you for your support! *
\r
28 ***************************************************************************
\r
31 This file is part of the FreeRTOS distribution.
\r
33 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
34 the terms of the GNU General Public License (version 2) as published by the
\r
35 Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
\r
36 >>>NOTE<<< The modification to the GPL is included to allow you to
\r
37 distribute a combined work that includes FreeRTOS without being obliged to
\r
38 provide the source code for proprietary components outside of the FreeRTOS
\r
39 kernel. FreeRTOS is distributed in the hope that it will be useful, but
\r
40 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
41 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
42 more details. You should have received a copy of the GNU General Public
\r
43 License and the FreeRTOS license exception along with FreeRTOS; if not it
\r
44 can be viewed here: http://www.freertos.org/a00114.html and also obtained
\r
45 by writing to Richard Barry, contact details for whom are available on the
\r
50 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
53 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
56 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
57 licensing and training services.
\r
60 #ifndef MPU_WRAPPERS_H
\r
61 #define MPU_WRAPPERS_H
\r
63 /* This file redefines API functions to be called through a wrapper macro, but
\r
64 only for ports that are using the MPU. */
\r
65 #ifdef portUSING_MPU_WRAPPERS
\r
67 /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is
\r
68 included from queue.c or task.c to prevent it from having an effect within
\r
70 #ifndef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
\r
72 #define xTaskGenericCreate MPU_xTaskGenericCreate
\r
73 #define vTaskAllocateMPURegions MPU_vTaskAllocateMPURegions
\r
74 #define vTaskDelete MPU_vTaskDelete
\r
75 #define vTaskDelayUntil MPU_vTaskDelayUntil
\r
76 #define vTaskDelay MPU_vTaskDelay
\r
77 #define uxTaskPriorityGet MPU_uxTaskPriorityGet
\r
78 #define vTaskPrioritySet MPU_vTaskPrioritySet
\r
79 #define vTaskSuspend MPU_vTaskSuspend
\r
80 #define xTaskIsTaskSuspended MPU_xTaskIsTaskSuspended
\r
81 #define vTaskResume MPU_vTaskResume
\r
82 #define vTaskSuspendAll MPU_vTaskSuspendAll
\r
83 #define xTaskResumeAll MPU_xTaskResumeAll
\r
84 #define xTaskGetTickCount MPU_xTaskGetTickCount
\r
85 #define uxTaskGetNumberOfTasks MPU_uxTaskGetNumberOfTasks
\r
86 #define vTaskList MPU_vTaskList
\r
87 #define vTaskGetRunTimeStats MPU_vTaskGetRunTimeStats
\r
88 #define vTaskStartTrace MPU_vTaskStartTrace
\r
89 #define ulTaskEndTrace MPU_ulTaskEndTrace
\r
90 #define vTaskSetApplicationTaskTag MPU_vTaskSetApplicationTaskTag
\r
91 #define xTaskGetApplicationTaskTag MPU_xTaskGetApplicationTaskTag
\r
92 #define xTaskCallApplicationTaskHook MPU_xTaskCallApplicationTaskHook
\r
93 #define uxTaskGetStackHighWaterMark MPU_uxTaskGetStackHighWaterMark
\r
94 #define xTaskGetCurrentTaskHandle MPU_xTaskGetCurrentTaskHandle
\r
95 #define xTaskGetSchedulerState MPU_xTaskGetSchedulerState
\r
97 #define xQueueCreate MPU_xQueueCreate
\r
98 #define xQueueCreateMutex MPU_xQueueCreateMutex
\r
99 #define xQueueGiveMutexRecursive MPU_xQueueGiveMutexRecursive
\r
100 #define xQueueTakeMutexRecursive MPU_xQueueTakeMutexRecursive
\r
101 #define xQueueCreateCountingSemaphore MPU_xQueueCreateCountingSemaphore
\r
102 #define xQueueGenericSend MPU_xQueueGenericSend
\r
103 #define xQueueAltGenericSend MPU_xQueueAltGenericSend
\r
104 #define xQueueAltGenericReceive MPU_xQueueAltGenericReceive
\r
105 #define xQueueGenericReceive MPU_xQueueGenericReceive
\r
106 #define uxQueueMessagesWaiting MPU_uxQueueMessagesWaiting
\r
107 #define vQueueDelete MPU_vQueueDelete
\r
109 #define pvPortMalloc MPU_pvPortMalloc
\r
110 #define vPortFree MPU_vPortFree
\r
111 #define xPortGetFreeHeapSize MPU_xPortGetFreeHeapSize
\r
112 #define vPortInitialiseBlocks MPU_vPortInitialiseBlocks
\r
114 #if configQUEUE_REGISTRY_SIZE > 0
\r
115 #define vQueueAddToRegistry MPU_vQueueAddToRegistry
\r
116 #define vQueueUnregisterQueue MPU_vQueueUnregisterQueue
\r
119 /* Remove the privileged function macro. */
\r
120 #define PRIVILEGED_FUNCTION
\r
122 #else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
\r
124 /* Ensure API functions go in the privileged execution section. */
\r
125 #define PRIVILEGED_FUNCTION __attribute__((section("privileged_functions")))
\r
126 #define PRIVILEGED_DATA __attribute__((section("privileged_data")))
\r
127 //#define PRIVILEGED_DATA
\r
129 #endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
\r
131 #else /* portUSING_MPU_WRAPPERS */
\r
133 #define PRIVILEGED_FUNCTION
\r
134 #define PRIVILEGED_DATA
\r
135 #define portUSING_MPU_WRAPPERS 0
\r
137 #endif /* portUSING_MPU_WRAPPERS */
\r
140 #endif /* MPU_WRAPPERS_H */
\r