Skip to content

Commit 354998e

Browse files
committed
update freertosconfig
1 parent 3d3bf45 commit 354998e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

hw/bsp/kinetis_k/FreeRTOSConfig/FreeRTOSConfig.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
#define configENABLE_BACKWARD_COMPATIBILITY 1
7474
#define configSTACK_ALLOCATION_FROM_SEPARATE_HEAP 0
7575

76-
#define configSUPPORT_STATIC_ALLOCATION 0
77-
#define configSUPPORT_DYNAMIC_ALLOCATION 1
76+
#define configSUPPORT_STATIC_ALLOCATION 1
77+
#define configSUPPORT_DYNAMIC_ALLOCATION 0
7878

7979
/* Hook function related definitions. */
8080
#define configUSE_IDLE_HOOK 0
@@ -143,7 +143,7 @@
143143
//--------------------------------------------------------------------+
144144

145145
// For Cortex-M specific: __NVIC_PRIO_BITS is defined in mcu header
146-
#define configPRIO_BITS 2
146+
#define configPRIO_BITS 4
147147

148148
/* The lowest interrupt priority that can be used in a call to a "set priority" function. */
149149
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY ((1<<configPRIO_BITS) - 1)

hw/bsp/kinetis_k/family.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ function(add_board_target BOARD_TARGET)
5757
target_link_options(${BOARD_TARGET} PUBLIC
5858
"LINKER:--script=${LD_FILE_GNU}"
5959
# nanolib
60-
--specs=nosys.specs
61-
--specs=nano.specs
60+
--specs=nosys.specs --specs=nano.specs
6261
)
6362
elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR")
6463
target_link_options(${BOARD_TARGET} PUBLIC

0 commit comments

Comments
 (0)