Skip to content

Commit 77e8542

Browse files
authored
Update FreeRTOSConfig.h (#134)
- add configASSERT - increase stack for timer task to 128 (512 bytes)
1 parent ce5056d commit 77e8542

6 files changed

Lines changed: 56 additions & 21 deletions

File tree

ARM.CMSIS-FreeRTOS.pdsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@
12961296
</RTE_Components_h>
12971297
<files>
12981298
<file category="doc" name="Documentation/html/page_create_project.html#configure_cmsis_freertos"/>
1299-
<file category="header" attr="config" name="CMSIS/RTOS2/FreeRTOS/Config/FreeRTOSConfig.h" version="10.6.0"/>
1299+
<file category="header" attr="config" name="CMSIS/RTOS2/FreeRTOS/Config/FreeRTOSConfig.h" version="10.7.0"/>
13001300
</files>
13011301
</component>
13021302

CMSIS/RTOS2/FreeRTOS/Config/FreeRTOSConfig.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2024 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2025 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,7 +17,7 @@
1717
*
1818
* --------------------------------------------------------------------------
1919
*
20-
* $Revision: V10.6.0
20+
* $Revision: V10.7.0
2121
*
2222
* Project: CMSIS-FreeRTOS
2323
* Title: FreeRTOS configuration definitions
@@ -65,8 +65,8 @@
6565

6666
// <o>Timer task stack depth [words] <0-65535>
6767
// <i> Stack for timer task in words.
68-
// <i> Default: 80
69-
#define configTIMER_TASK_STACK_DEPTH 80
68+
// <i> Default: 128
69+
#define configTIMER_TASK_STACK_DEPTH 128
7070

7171
// <o>Timer task priority <0-56>
7272
// <i> Timer task priority.
@@ -319,6 +319,13 @@
319319

320320
//------------- <<< end of configuration section >>> ---------------------------
321321

322+
/* Define to trap errors during development */
323+
#define configASSERT(x) do { \
324+
if ((x) == 0) { \
325+
__BKPT(0); \
326+
} \
327+
} while(0)
328+
322329
/* Defines needed by FreeRTOS to implement CMSIS RTOS2 API. Do not change! */
323330
#define configCPU_CLOCK_HZ (SystemCoreClock)
324331
#define configUSE_PREEMPTION 1

CMSIS/RTOS2/FreeRTOS/Examples/App/Hello/RTE/RTOS/FreeRTOSConfig.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2024 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2025 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,7 +17,7 @@
1717
*
1818
* --------------------------------------------------------------------------
1919
*
20-
* $Revision: V10.6.0
20+
* $Revision: V10.7.0
2121
*
2222
* Project: CMSIS-FreeRTOS
2323
* Title: FreeRTOS configuration definitions
@@ -65,8 +65,8 @@
6565

6666
// <o>Timer task stack depth [words] <0-65535>
6767
// <i> Stack for timer task in words.
68-
// <i> Default: 80
69-
#define configTIMER_TASK_STACK_DEPTH 80
68+
// <i> Default: 128
69+
#define configTIMER_TASK_STACK_DEPTH 128
7070

7171
// <o>Timer task priority <0-56>
7272
// <i> Timer task priority.
@@ -319,6 +319,13 @@
319319

320320
//------------- <<< end of configuration section >>> ---------------------------
321321

322+
/* Define to trap errors during development */
323+
#define configASSERT(x) do { \
324+
if ((x) == 0) { \
325+
__BKPT(0); \
326+
} \
327+
} while(0)
328+
322329
/* Defines needed by FreeRTOS to implement CMSIS RTOS2 API. Do not change! */
323330
#define configCPU_CLOCK_HZ (SystemCoreClock)
324331
#define configUSE_PREEMPTION 1

CMSIS/RTOS2/FreeRTOS/Examples/App/Hello/RTE/RTOS/FreeRTOSConfig.h.base@10.6.0 renamed to CMSIS/RTOS2/FreeRTOS/Examples/App/Hello/RTE/RTOS/FreeRTOSConfig.h.base@10.7.0

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2024 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2025 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,7 +17,7 @@
1717
*
1818
* --------------------------------------------------------------------------
1919
*
20-
* $Revision: V10.6.0
20+
* $Revision: V10.7.0
2121
*
2222
* Project: CMSIS-FreeRTOS
2323
* Title: FreeRTOS configuration definitions
@@ -65,8 +65,8 @@
6565

6666
// <o>Timer task stack depth [words] <0-65535>
6767
// <i> Stack for timer task in words.
68-
// <i> Default: 80
69-
#define configTIMER_TASK_STACK_DEPTH 80
68+
// <i> Default: 128
69+
#define configTIMER_TASK_STACK_DEPTH 128
7070

7171
// <o>Timer task priority <0-56>
7272
// <i> Timer task priority.
@@ -319,6 +319,13 @@
319319

320320
//------------- <<< end of configuration section >>> ---------------------------
321321

322+
/* Define to trap errors during development */
323+
#define configASSERT(x) do { \
324+
if ((x) == 0) { \
325+
__BKPT(0); \
326+
} \
327+
} while(0)
328+
322329
/* Defines needed by FreeRTOS to implement CMSIS RTOS2 API. Do not change! */
323330
#define configCPU_CLOCK_HZ (SystemCoreClock)
324331
#define configUSE_PREEMPTION 1

CMSIS/RTOS2/FreeRTOS/Examples/App/TrustZone/NonSecure/RTE/RTOS/FreeRTOSConfig.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2024 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2025 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,7 +17,7 @@
1717
*
1818
* --------------------------------------------------------------------------
1919
*
20-
* $Revision: V10.6.0
20+
* $Revision: V10.7.0
2121
*
2222
* Project: CMSIS-FreeRTOS
2323
* Title: FreeRTOS configuration definitions
@@ -65,8 +65,8 @@
6565

6666
// <o>Timer task stack depth [words] <0-65535>
6767
// <i> Stack for timer task in words.
68-
// <i> Default: 80
69-
#define configTIMER_TASK_STACK_DEPTH 80
68+
// <i> Default: 128
69+
#define configTIMER_TASK_STACK_DEPTH 128
7070

7171
// <o>Timer task priority <0-56>
7272
// <i> Timer task priority.
@@ -319,6 +319,13 @@
319319

320320
//------------- <<< end of configuration section >>> ---------------------------
321321

322+
/* Define to trap errors during development */
323+
#define configASSERT(x) do { \
324+
if ((x) == 0) { \
325+
__BKPT(0); \
326+
} \
327+
} while(0)
328+
322329
/* Defines needed by FreeRTOS to implement CMSIS RTOS2 API. Do not change! */
323330
#define configCPU_CLOCK_HZ (SystemCoreClock)
324331
#define configUSE_PREEMPTION 1

CMSIS/RTOS2/FreeRTOS/Examples/App/TrustZone/NonSecure/RTE/RTOS/FreeRTOSConfig.h.base@10.6.0 renamed to CMSIS/RTOS2/FreeRTOS/Examples/App/TrustZone/NonSecure/RTE/RTOS/FreeRTOSConfig.h.base@10.7.0

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2024 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2025 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -17,7 +17,7 @@
1717
*
1818
* --------------------------------------------------------------------------
1919
*
20-
* $Revision: V10.6.0
20+
* $Revision: V10.7.0
2121
*
2222
* Project: CMSIS-FreeRTOS
2323
* Title: FreeRTOS configuration definitions
@@ -65,8 +65,8 @@
6565

6666
// <o>Timer task stack depth [words] <0-65535>
6767
// <i> Stack for timer task in words.
68-
// <i> Default: 80
69-
#define configTIMER_TASK_STACK_DEPTH 80
68+
// <i> Default: 128
69+
#define configTIMER_TASK_STACK_DEPTH 128
7070

7171
// <o>Timer task priority <0-56>
7272
// <i> Timer task priority.
@@ -319,6 +319,13 @@
319319

320320
//------------- <<< end of configuration section >>> ---------------------------
321321

322+
/* Define to trap errors during development */
323+
#define configASSERT(x) do { \
324+
if ((x) == 0) { \
325+
__BKPT(0); \
326+
} \
327+
} while(0)
328+
322329
/* Defines needed by FreeRTOS to implement CMSIS RTOS2 API. Do not change! */
323330
#define configCPU_CLOCK_HZ (SystemCoreClock)
324331
#define configUSE_PREEMPTION 1

0 commit comments

Comments
 (0)