2 FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
\r
4 This file is part of the FreeRTOS distribution.
\r
6 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
7 the terms of the GNU General Public License (version 2) as published by the
\r
8 Free Software Foundation and modified by the FreeRTOS exception.
\r
9 **NOTE** The exception to the GPL is included to allow you to distribute a
\r
10 combined work that includes FreeRTOS without being obliged to provide the
\r
11 source code for proprietary components outside of the FreeRTOS kernel.
\r
12 Alternative commercial license and support terms are also available upon
\r
13 request. See the licensing section of http://www.FreeRTOS.org for full
\r
16 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT
\r
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
21 You should have received a copy of the GNU General Public License along
\r
22 with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59
\r
23 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
\r
26 ***************************************************************************
\r
28 * The FreeRTOS eBook and reference manual are available to purchase for a *
\r
29 * small fee. Help yourself get started quickly while also helping the *
\r
30 * FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
\r
32 ***************************************************************************
\r
36 Please ensure to read the configuration and relevant port sections of the
\r
37 online documentation.
\r
39 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
42 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
45 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
46 licensing and training services.
\r
49 #ifndef MPU_WRAPPERS_H
\r
50 #define MPU_WRAPPERS_H
\r
52 /* This file redefines API functions to be called through a wrapper macro, but
\r
53 only for ports that are using the MPU. */
\r
54 #ifdef portUSING_MPU_WRAPPERS
\r
56 /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is
\r
57 included from queue.c or task.c to prevent it from having an effict within
\r
59 #ifndef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
\r
61 #define xTaskGenericCreate MPU_xTaskGenericCreate
\r
62 #define vTaskAllocateMPURegions MPU_vTaskAllocateMPURegions
\r
63 #define vTaskDelete MPU_vTaskDelete
\r
64 #define vTaskDelayUntil MPU_vTaskDelayUntil
\r
65 #define vTaskDelay MPU_vTaskDelay
\r
66 #define uxTaskPriorityGet MPU_uxTaskPriorityGet
\r
67 #define vTaskPrioritySet MPU_vTaskPrioritySet
\r
68 #define vTaskSuspend MPU_vTaskSuspend
\r
69 #define xTaskIsTaskSuspended MPU_xTaskIsTaskSuspended
\r
70 #define vTaskResume MPU_vTaskResume
\r
71 #define vTaskSuspendAll MPU_vTaskSuspendAll
\r
72 #define xTaskResumeAll MPU_xTaskResumeAll
\r
73 #define xTaskGetTickCount MPU_xTaskGetTickCount
\r
74 #define uxTaskGetNumberOfTasks MPU_uxTaskGetNumberOfTasks
\r
75 #define vTaskList MPU_vTaskList
\r
76 #define vTaskGetRunTimeStats MPU_vTaskGetRunTimeStats
\r
77 #define vTaskStartTrace MPU_vTaskStartTrace
\r
78 #define ulTaskEndTrace MPU_ulTaskEndTrace
\r
79 #define vTaskSetApplicationTaskTag MPU_vTaskSetApplicationTaskTag
\r
80 #define xTaskGetApplicationTaskTag MPU_xTaskGetApplicationTaskTag
\r
81 #define xTaskCallApplicationTaskHook MPU_xTaskCallApplicationTaskHook
\r
82 #define uxTaskGetStackHighWaterMark MPU_uxTaskGetStackHighWaterMark
\r
83 #define xTaskGetCurrentTaskHandle MPU_xTaskGetCurrentTaskHandle
\r
84 #define xTaskGetSchedulerState MPU_xTaskGetSchedulerState
\r
86 #define xQueueCreate MPU_xQueueCreate
\r
87 #define xQueueCreateMutex MPU_xQueueCreateMutex
\r
88 #define xQueueGiveMutexRecursive MPU_xQueueGiveMutexRecursive
\r
89 #define xQueueTakeMutexRecursive MPU_xQueueTakeMutexRecursive
\r
90 #define xQueueCreateCountingSemaphore MPU_xQueueCreateCountingSemaphore
\r
91 #define xQueueGenericSend MPU_xQueueGenericSend
\r
92 #define xQueueAltGenericSend MPU_xQueueAltGenericSend
\r
93 #define xQueueAltGenericReceive MPU_xQueueAltGenericReceive
\r
94 #define xQueueGenericReceive MPU_xQueueGenericReceive
\r
95 #define uxQueueMessagesWaiting MPU_uxQueueMessagesWaiting
\r
96 #define vQueueDelete MPU_vQueueDelete
\r
97 #define vQueueAddToRegistry MPU_vQueueAddToRegistry
\r
98 #define vQueueUnregisterQueue MPU_vQueueUnregisterQueue
\r
100 #define pvPortMalloc MPU_pvPortMalloc
\r
101 #define vPortFree MPU_vPortFree
\r
102 #define xPortGetFreeHeapSize MPU_xPortGetFreeHeapSize
\r
103 #define vPortInitialiseBlocks MPU_vPortInitialiseBlocks
\r
105 /* Remove the privileged function macro. */
\r
106 #define PRIVILEGED_FUNCTION
\r
108 #else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
\r
110 /* Ensure API functions go in the privileged execution section. */
\r
111 #define PRIVILEGED_FUNCTION __attribute__((section("privileged_functions")))
\r
112 #define PRIVILEGED_DATA __attribute__((section("privileged_data")))
\r
113 //#define PRIVILEGED_DATA
\r
115 #endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
\r
117 #else /* portUSING_MPU_WRAPPERS */
\r
119 #define PRIVILEGED_FUNCTION
\r
120 #define PRIVILEGED_DATA
\r
121 #define portUSING_MPU_WRAPPERS 0
\r
123 #endif /* portUSING_MPU_WRAPPERS */
\r
126 #endif /* MPU_WRAPPERS_H */
\r