Skip to content

Commit e1d0c0f

Browse files
Merge branch 'main' into fixSDCCFormatting
2 parents 5969643 + a8a17dc commit e1d0c0f

File tree

123 files changed

+8261
-17066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+8261
-17066
lines changed

include/mpu_prototypes.h

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,42 @@
3838
#ifndef MPU_PROTOTYPES_H
3939
#define MPU_PROTOTYPES_H
4040

41+
typedef struct xTaskGenericNotifyParams
42+
{
43+
TaskHandle_t xTaskToNotify;
44+
UBaseType_t uxIndexToNotify;
45+
uint32_t ulValue;
46+
eNotifyAction eAction;
47+
uint32_t * pulPreviousNotificationValue;
48+
} xTaskGenericNotifyParams_t;
49+
50+
typedef struct xTaskGenericNotifyWaitParams
51+
{
52+
UBaseType_t uxIndexToWaitOn;
53+
uint32_t ulBitsToClearOnEntry;
54+
uint32_t ulBitsToClearOnExit;
55+
uint32_t * pulNotificationValue;
56+
TickType_t xTicksToWait;
57+
} xTaskGenericNotifyWaitParams_t;
58+
59+
typedef struct xTimerGenericCommandFromTaskParams
60+
{
61+
TimerHandle_t xTimer;
62+
BaseType_t xCommandID;
63+
TickType_t xOptionalValue;
64+
BaseType_t * pxHigherPriorityTaskWoken;
65+
TickType_t xTicksToWait;
66+
} xTimerGenericCommandFromTaskParams_t;
67+
68+
typedef struct xEventGroupWaitBitsParams
69+
{
70+
EventGroupHandle_t xEventGroup;
71+
EventBits_t uxBitsToWaitFor;
72+
BaseType_t xClearOnExit;
73+
BaseType_t xWaitForAllBits;
74+
TickType_t xTicksToWait;
75+
} xEventGroupWaitBitsParams_t;
76+
4177
/* MPU versions of task.h API functions. */
4278
void MPU_vTaskDelay( const TickType_t xTicksToDelay ) FREERTOS_SYSTEM_CALL;
4379
BaseType_t MPU_xTaskDelayUntil( TickType_t * const pxPreviousWakeTime,
@@ -76,11 +112,13 @@ BaseType_t MPU_xTaskGenericNotify( TaskHandle_t xTaskToNotify,
76112
uint32_t ulValue,
77113
eNotifyAction eAction,
78114
uint32_t * pulPreviousNotificationValue ) FREERTOS_SYSTEM_CALL;
115+
BaseType_t MPU_xTaskGenericNotifyEntry( const xTaskGenericNotifyParams_t * pxParams ) FREERTOS_SYSTEM_CALL;
79116
BaseType_t MPU_xTaskGenericNotifyWait( UBaseType_t uxIndexToWaitOn,
80117
uint32_t ulBitsToClearOnEntry,
81118
uint32_t ulBitsToClearOnExit,
82119
uint32_t * pulNotificationValue,
83120
TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL;
121+
BaseType_t MPU_xTaskGenericNotifyWaitEntry( const xTaskGenericNotifyWaitParams_t * pxParams ) FREERTOS_SYSTEM_CALL;
84122
uint32_t MPU_ulTaskGenericNotifyTake( UBaseType_t uxIndexToWaitOn,
85123
BaseType_t xClearCountOnExit,
86124
TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL;
@@ -230,9 +268,10 @@ BaseType_t MPU_xTimerGenericCommandFromTask( TimerHandle_t xTimer,
230268
const TickType_t xOptionalValue,
231269
BaseType_t * const pxHigherPriorityTaskWoken,
232270
const TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL;
271+
BaseType_t MPU_xTimerGenericCommandFromTaskEntry( const xTimerGenericCommandFromTaskParams_t * pxParams ) FREERTOS_SYSTEM_CALL;
233272
const char * MPU_pcTimerGetName( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL;
234273
void MPU_vTimerSetReloadMode( TimerHandle_t xTimer,
235-
const UBaseType_t uxAutoReload ) FREERTOS_SYSTEM_CALL;
274+
const BaseType_t uxAutoReload ) FREERTOS_SYSTEM_CALL;
236275
BaseType_t MPU_xTimerGetReloadMode( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL;
237276
UBaseType_t MPU_uxTimerGetReloadMode( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL;
238277
TickType_t MPU_xTimerGetPeriod( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL;
@@ -266,6 +305,7 @@ EventBits_t MPU_xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
266305
const BaseType_t xClearOnExit,
267306
const BaseType_t xWaitForAllBits,
268307
TickType_t xTicksToWait ) FREERTOS_SYSTEM_CALL;
308+
EventBits_t MPU_xEventGroupWaitBitsEntry( const xEventGroupWaitBitsParams_t * pxParams ) FREERTOS_SYSTEM_CALL;
269309
EventBits_t MPU_xEventGroupClearBits( EventGroupHandle_t xEventGroup,
270310
const EventBits_t uxBitsToClear ) FREERTOS_SYSTEM_CALL;
271311
EventBits_t MPU_xEventGroupSetBits( EventGroupHandle_t xEventGroup,

include/mpu_syscall_numbers.h

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/*
2+
* FreeRTOS Kernel <DEVELOPMENT BRANCH>
3+
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4+
*
5+
* SPDX-License-Identifier: MIT
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
8+
* this software and associated documentation files (the "Software"), to deal in
9+
* the Software without restriction, including without limitation the rights to
10+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11+
* the Software, and to permit persons to whom the Software is furnished to do so,
12+
* subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23+
*
24+
* https://www.FreeRTOS.org
25+
* https://github.com/FreeRTOS
26+
*
27+
*/
28+
29+
#ifndef MPU_SYSCALL_NUMBERS_H
30+
#define MPU_SYSCALL_NUMBERS_H
31+
32+
/* Numbers assigned to various system calls. */
33+
#define SYSTEM_CALL_xTaskGenericNotify 0
34+
#define SYSTEM_CALL_xTaskGenericNotifyWait 1
35+
#define SYSTEM_CALL_xTimerGenericCommandFromTask 2
36+
#define SYSTEM_CALL_xEventGroupWaitBits 3
37+
#define SYSTEM_CALL_xTaskDelayUntil 4
38+
#define SYSTEM_CALL_xTaskAbortDelay 5
39+
#define SYSTEM_CALL_vTaskDelay 6
40+
#define SYSTEM_CALL_uxTaskPriorityGet 7
41+
#define SYSTEM_CALL_eTaskGetState 8
42+
#define SYSTEM_CALL_vTaskGetInfo 9
43+
#define SYSTEM_CALL_xTaskGetIdleTaskHandle 10
44+
#define SYSTEM_CALL_vTaskSuspend 11
45+
#define SYSTEM_CALL_vTaskResume 12
46+
#define SYSTEM_CALL_xTaskGetTickCount 13
47+
#define SYSTEM_CALL_uxTaskGetNumberOfTasks 14
48+
#define SYSTEM_CALL_ulTaskGetRunTimeCounter 15
49+
#define SYSTEM_CALL_ulTaskGetRunTimePercent 16
50+
#define SYSTEM_CALL_ulTaskGetIdleRunTimePercent 17
51+
#define SYSTEM_CALL_ulTaskGetIdleRunTimeCounter 18
52+
#define SYSTEM_CALL_vTaskSetApplicationTaskTag 19
53+
#define SYSTEM_CALL_xTaskGetApplicationTaskTag 20
54+
#define SYSTEM_CALL_vTaskSetThreadLocalStoragePointer 21
55+
#define SYSTEM_CALL_pvTaskGetThreadLocalStoragePointer 22
56+
#define SYSTEM_CALL_uxTaskGetSystemState 23
57+
#define SYSTEM_CALL_uxTaskGetStackHighWaterMark 24
58+
#define SYSTEM_CALL_uxTaskGetStackHighWaterMark2 25
59+
#define SYSTEM_CALL_xTaskGetCurrentTaskHandle 26
60+
#define SYSTEM_CALL_xTaskGetSchedulerState 27
61+
#define SYSTEM_CALL_vTaskSetTimeOutState 28
62+
#define SYSTEM_CALL_xTaskCheckForTimeOut 29
63+
#define SYSTEM_CALL_ulTaskGenericNotifyTake 30
64+
#define SYSTEM_CALL_xTaskGenericNotifyStateClear 31
65+
#define SYSTEM_CALL_ulTaskGenericNotifyValueClear 32
66+
#define SYSTEM_CALL_xQueueGenericSend 33
67+
#define SYSTEM_CALL_uxQueueMessagesWaiting 34
68+
#define SYSTEM_CALL_uxQueueSpacesAvailable 35
69+
#define SYSTEM_CALL_xQueueReceive 36
70+
#define SYSTEM_CALL_xQueuePeek 37
71+
#define SYSTEM_CALL_xQueueSemaphoreTake 38
72+
#define SYSTEM_CALL_xQueueGetMutexHolder 39
73+
#define SYSTEM_CALL_xQueueTakeMutexRecursive 40
74+
#define SYSTEM_CALL_xQueueGiveMutexRecursive 41
75+
#define SYSTEM_CALL_xQueueSelectFromSet 42
76+
#define SYSTEM_CALL_xQueueAddToSet 43
77+
#define SYSTEM_CALL_vQueueAddToRegistry 44
78+
#define SYSTEM_CALL_vQueueUnregisterQueue 45
79+
#define SYSTEM_CALL_pcQueueGetName 46
80+
#define SYSTEM_CALL_pvTimerGetTimerID 47
81+
#define SYSTEM_CALL_vTimerSetTimerID 48
82+
#define SYSTEM_CALL_xTimerIsTimerActive 49
83+
#define SYSTEM_CALL_xTimerGetTimerDaemonTaskHandle 50
84+
#define SYSTEM_CALL_pcTimerGetName 51
85+
#define SYSTEM_CALL_vTimerSetReloadMode 52
86+
#define SYSTEM_CALL_xTimerGetReloadMode 53
87+
#define SYSTEM_CALL_uxTimerGetReloadMode 54
88+
#define SYSTEM_CALL_xTimerGetPeriod 55
89+
#define SYSTEM_CALL_xTimerGetExpiryTime 56
90+
#define SYSTEM_CALL_xEventGroupClearBits 57
91+
#define SYSTEM_CALL_xEventGroupSetBits 58
92+
#define SYSTEM_CALL_xEventGroupSync 59
93+
#define SYSTEM_CALL_uxEventGroupGetNumber 60
94+
#define SYSTEM_CALL_vEventGroupSetNumber 61
95+
#define SYSTEM_CALL_xStreamBufferSend 62
96+
#define SYSTEM_CALL_xStreamBufferReceive 63
97+
#define SYSTEM_CALL_xStreamBufferIsFull 64
98+
#define SYSTEM_CALL_xStreamBufferIsEmpty 65
99+
#define SYSTEM_CALL_xStreamBufferSpacesAvailable 66
100+
#define SYSTEM_CALL_xStreamBufferBytesAvailable 67
101+
#define SYSTEM_CALL_xStreamBufferSetTriggerLevel 68
102+
#define SYSTEM_CALL_xStreamBufferNextMessageLengthBytes 69
103+
#define NUM_SYSTEM_CALLS 70 /* Total number of system calls. */
104+
105+
#endif /* MPU_SYSCALL_NUMBERS_H */

0 commit comments

Comments
 (0)