Skip to content

Commit 39cd415

Browse files
Merge branch 'develop'
2 parents 6c93544 + 9f0d2d0 commit 39cd415

3,355 files changed

Lines changed: 549383 additions & 454954 deletions

File tree

Some content is hidden

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

ARM.CMSIS-FreeRTOS.pdsc

Lines changed: 605 additions & 100 deletions
Large diffs are not rendered by default.

CMSIS/RTOS2/FreeRTOS/Config/ARMCA/FreeRTOSConfig.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2018 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2019 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,14 +17,13 @@
1717
*
1818
* --------------------------------------------------------------------------
1919
*
20-
* $Revision: V10.0.1
20+
* $Revision: V10.2.0
2121
*
2222
* Project: CMSIS-FreeRTOS
2323
* Title: FreeRTOS configuration definitions
2424
*
2525
* --------------------------------------------------------------------------*/
2626

27-
2827
#ifndef FREERTOS_CONFIG_H
2928
#define FREERTOS_CONFIG_H
3029

@@ -37,15 +36,17 @@
3736
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
3837
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
3938
*
40-
* See http://www.freertos.org/a00110.html.
39+
* See http://www.freertos.org/a00110.html
4140
*----------------------------------------------------------*/
4241

42+
#if (defined(__ARMCC_VERSION) || defined(__GNUC__) || defined(__ICCARM__))
4343
#include <stdint.h>
4444

4545
#include "RTE_Components.h"
4646
#include CMSIS_device_header
4747

4848
#include "os_tick.h"
49+
#endif
4950

5051
//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
5152

CMSIS/RTOS2/FreeRTOS/Config/ARMCM/FreeRTOSConfig.h

Lines changed: 98 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2018 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2019 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,14 +17,13 @@
1717
*
1818
* --------------------------------------------------------------------------
1919
*
20-
* $Revision: V10.0.1
20+
* $Revision: V10.2.0
2121
*
2222
* Project: CMSIS-FreeRTOS
2323
* Title: FreeRTOS configuration definitions
2424
*
2525
* --------------------------------------------------------------------------*/
2626

27-
2827
#ifndef FREERTOS_CONFIG_H
2928
#define FREERTOS_CONFIG_H
3029

@@ -37,15 +36,15 @@
3736
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
3837
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
3938
*
40-
* See http://www.freertos.org/a00110.html.
39+
* See http://www.freertos.org/a00110.html
4140
*----------------------------------------------------------*/
4241

42+
#if (defined(__ARMCC_VERSION) || defined(__GNUC__) || defined(__ICCARM__))
4343
#include <stdint.h>
4444

4545
#include "RTE_Components.h"
4646
#include CMSIS_device_header
47-
48-
#include "os_tick.h"
47+
#endif
4948

5049
//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
5150

@@ -131,6 +130,92 @@
131130
// <i> Default: 0
132131
#define configQUEUE_REGISTRY_SIZE 0
133132

133+
// <h>Event Recorder configuration
134+
// <i> Initialize and setup Event Recorder level filtering.
135+
// <i> Settings have no effect when Event Recorder is not present.
136+
137+
// <q>Initialize Event Recorder
138+
// <i> Initialize Event Recorder before FreeRTOS kernel start.
139+
// <i> Default: 1
140+
#define configEVR_INITIALIZE 1
141+
142+
// <e>Setup recording level filter
143+
// <i> Enable configuration of FreeRTOS events recording level
144+
// <i> Default: 1
145+
#define configEVR_SETUP_LEVEL 1
146+
147+
// <o>Tasks functions
148+
// <i> Define event recording level bitmask for events generated from Tasks functions.
149+
// <i> Default: 0x05
150+
// <0x00=>Off <0x01=>Errors <0x05=>Errors + Operation <0x0F=>All
151+
#define configEVR_LEVEL_TASKS 0x05
152+
153+
// <o>Queue functions
154+
// <i> Define event recording level bitmask for events generated from Queue functions.
155+
// <i> Default: 0x05
156+
// <0x00=>Off <0x01=>Errors <0x05=>Errors + Operation <0x0F=>All
157+
#define configEVR_LEVEL_QUEUE 0x05
158+
159+
// <o>Timer functions
160+
// <i> Define event recording level bitmask for events generated from Timer functions.
161+
// <i> Default: 0x05
162+
// <0x00=>Off <0x01=>Errors <0x05=>Errors + Operation <0x0F=>All
163+
#define configEVR_LEVEL_TIMERS 0x05
164+
165+
// <o>Event Groups functions
166+
// <i> Define event recording level bitmask for events generated from Event Groups functions.
167+
// <i> Default: 0x05
168+
// <0x00=>Off <0x01=>Errors <0x05=>Errors + Operation <0x0F=>All
169+
#define configEVR_LEVEL_EVENTGROUPS 0x05
170+
171+
// <o>Heap functions
172+
// <i> Define event recording level bitmask for events generated from Heap functions.
173+
// <i> Default: 0x05
174+
// <0x00=>Off <0x01=>Errors <0x05=>Errors + Operation <0x0F=>All
175+
#define configEVR_LEVEL_HEAP 0x05
176+
177+
// <o>Stream Buffer functions
178+
// <i> Define event recording level bitmask for events generated from Stream Buffer functions.
179+
// <i> Default: 0x05
180+
// <0x00=>Off <0x01=>Errors <0x05=>Errors + Operation <0x0F=>All
181+
#define configEVR_LEVEL_STREAMBUFFER 0x05
182+
// </e>
183+
// </h>
184+
185+
// <h> Port Specific Features
186+
// <i> Enable and configure port specific features.
187+
// <i> Check FreeRTOS documentation for definitions that apply for the used port.
188+
189+
// <q>Use Floating Point Unit
190+
// <i> Using Floating Point Unit (FPU) affects context handling.
191+
// <i> Enable FPU when application uses floating point operations.
192+
// <i> Default: 1
193+
#define configENABLE_FPU 1
194+
195+
// <q>Use Memory Protection Unit
196+
// <i> Using Memory Protection Unit (MPU) requires detailed memory map definition.
197+
// <i> This setting is only releavant for MPU enabled ports.
198+
// <i> Default: 0
199+
#define configENABLE_MPU 0
200+
201+
// <q> Use TrustZone Secure Side Only
202+
// <i> This settings prevents FreeRTOS contex switch to Non-Secure side.
203+
// <i> Enable this setting when FreeRTOS runs on the Secure side only.
204+
#define configRUN_FREERTOS_SECURE_ONLY 0
205+
206+
// <q>Use TrustZone Security Extension
207+
// <i> Using TrustZone affects context handling.
208+
// <i> Enable TrustZone when FreeRTOS runs on the Non-Secure side and calls functions from the Secure side.
209+
// <i> Default: 1
210+
#define configENABLE_TRUSTZONE 1
211+
212+
// <o>Minimal secure stack size [words] <0-65535>
213+
// <i> Stack for idle task Secure side context in words.
214+
// <i> This setting is only relevant when TrustZone extension is enabled.
215+
// <i> Default: 128
216+
#define configMINIMAL_SECURE_STACK_SIZE ((uint32_t)128)
217+
// </h>
218+
134219
//------------- <<< end of configuration section >>> ---------------------------
135220

136221
/* Defines needed by FreeRTOS to implement CMSIS RTOS2 API. Do not change! */
@@ -165,10 +250,15 @@
165250
#define INCLUDE_xTimerPendFunctionCall 1
166251

167252
/* Map the FreeRTOS port interrupt handlers to their CMSIS standard names. */
168-
#define xPortPendSVHandler PendSV_Handler
169-
#define vPortSVCHandler SVC_Handler
253+
#define xPortPendSVHandler PendSV_Handler
254+
#define vPortSVCHandler SVC_Handler
255+
256+
/* Ensure Cortex-M port compatibility. */
257+
#define SysTick_Handler xPortSysTickHandler
170258

259+
#if (defined(__ARMCC_VERSION) || defined(__GNUC__) || defined(__ICCARM__))
171260
/* Include debug event definitions */
172261
#include "freertos_evr.h"
262+
#endif
173263

174264
#endif /* FREERTOS_CONFIG_H */
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/* --------------------------------------------------------------------------
2+
* Copyright (c) 2013-2019 Arm Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the License); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
14+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* --------------------------------------------------------------------------
19+
*
20+
* $Revision: V10.2.0
21+
*
22+
* Project: CMSIS-FreeRTOS
23+
* Title: FreeRTOS Secure Contex configuration definitions
24+
*
25+
* --------------------------------------------------------------------------*/
26+
27+
#ifndef FREERTOS_CONFIG_H
28+
#define FREERTOS_CONFIG_H
29+
30+
/*-----------------------------------------------------------
31+
* Application specific definitions.
32+
*
33+
* These definitions should be adjusted for your particular hardware and
34+
* application requirements.
35+
*
36+
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
37+
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
38+
*
39+
* See http://www.freertos.org/a00110.html
40+
*----------------------------------------------------------*/
41+
42+
//-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
43+
44+
// <q>Use Memory Protection Unit
45+
// <i> Using Memory Protection Unit (MPU) affects secure context API.
46+
// <i> Enable MPU only when it is also enabled by the FreeRTOS Non-Secure Domain application.
47+
// <i> Default: 0
48+
#define configENABLE_MPU 0
49+
50+
// <q>Use Floating Point Unit
51+
// <i> Using Floating Point Unit (FPU) affects secure context handling.
52+
// <i> Enable FPU when Secure Domain application uses floating point operations.
53+
// <i> Default: 0
54+
#define configENABLE_FPU 0
55+
56+
#endif /* FREERTOS_CONFIG_H */

CMSIS/RTOS2/FreeRTOS/Examples/Blinky/Blinky.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
#include "RTE_Components.h"
2626
#include CMSIS_device_header
2727

28-
#ifdef RTE_Compiler_EventRecorder
29-
#include "EventRecorder.h"
30-
#endif
31-
3228
#include "cmsis_os2.h"
3329

3430

@@ -141,10 +137,6 @@ int main (void) {
141137
// System Initialization
142138
SystemCoreClockUpdate();
143139

144-
#ifdef RTE_Compiler_EventRecorder
145-
// Initialize and start Event Recorder
146-
EventRecorderInitialize(EventRecordAll, 1U);
147-
#endif
148140
osKernelInitialize(); // Initialize CMSIS-RTOS
149141
osThreadNew(app_main, NULL, NULL); // Create application main thread
150142
if (osKernelGetState() == osKernelReady) {

0 commit comments

Comments
 (0)