|
|
@@ -51,17 +51,16 @@
|
|
|
#if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__)
|
|
|
#include <stdint.h>
|
|
|
extern uint32_t SystemCoreClock;
|
|
|
- void xPortSysTickHandler(void);
|
|
|
-/* USER CODE BEGIN 0 */
|
|
|
- extern void configureTimerForRunTimeStats(void);
|
|
|
- extern unsigned long getRunTimeCounterValue(void);
|
|
|
-/* USER CODE END 0 */
|
|
|
#endif
|
|
|
+#ifndef CMSIS_device_header
|
|
|
+#define CMSIS_device_header "stm32wbxx.h"
|
|
|
+#endif /* CMSIS_device_header */
|
|
|
+
|
|
|
#define configENABLE_FPU 1
|
|
|
#define configENABLE_MPU 1
|
|
|
|
|
|
#define configUSE_PREEMPTION 1
|
|
|
-#define configSUPPORT_STATIC_ALLOCATION 1
|
|
|
+#define configSUPPORT_STATIC_ALLOCATION 0
|
|
|
#define configSUPPORT_DYNAMIC_ALLOCATION 1
|
|
|
#define configUSE_IDLE_HOOK 0
|
|
|
#define configUSE_TICK_HOOK 0
|
|
|
@@ -100,22 +99,24 @@
|
|
|
/* Software timer definitions. */
|
|
|
#define configUSE_TIMERS 1
|
|
|
#define configTIMER_TASK_PRIORITY ( 2 )
|
|
|
-#define configTIMER_QUEUE_LENGTH 10
|
|
|
+#define configTIMER_QUEUE_LENGTH 32
|
|
|
#define configTIMER_TASK_STACK_DEPTH 256
|
|
|
|
|
|
/* Set the following definitions to 1 to include the API function, or zero
|
|
|
to exclude the API function. */
|
|
|
-#define INCLUDE_vTaskPrioritySet 1
|
|
|
+#define INCLUDE_eTaskGetState 1
|
|
|
+#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
|
|
#define INCLUDE_uxTaskPriorityGet 1
|
|
|
+#define INCLUDE_vTaskCleanUpResources 0
|
|
|
+#define INCLUDE_vTaskDelay 1
|
|
|
+#define INCLUDE_vTaskDelayUntil 1
|
|
|
#define INCLUDE_vTaskDelete 1
|
|
|
+#define INCLUDE_vTaskPrioritySet 1
|
|
|
#define INCLUDE_vTaskSuspend 1
|
|
|
-#define INCLUDE_vTaskDelayUntil 1
|
|
|
-#define INCLUDE_vTaskDelay 1
|
|
|
+#define INCLUDE_xQueueGetMutexHolder 1
|
|
|
+#define INCLUDE_xTaskGetCurrentTaskHandle 1
|
|
|
#define INCLUDE_xTaskGetSchedulerState 1
|
|
|
#define INCLUDE_xTimerPendFunctionCall 1
|
|
|
-#define INCLUDE_xQueueGetMutexHolder 1
|
|
|
-#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
|
|
-#define INCLUDE_eTaskGetState 1
|
|
|
|
|
|
/*
|
|
|
* The CMSIS-RTOS V2 FreeRTOS wrapper is dependent on the heap implementation used
|
|
|
@@ -159,9 +160,13 @@ standard names. */
|
|
|
#define vPortSVCHandler SVC_Handler
|
|
|
#define xPortPendSVHandler PendSV_Handler
|
|
|
|
|
|
-/* IMPORTANT: This define is commented when used with STM32Cube firmware, when the timebase source is SysTick,
|
|
|
- to prevent overwriting SysTick_Handler defined within STM32Cube HAL */
|
|
|
+/* IMPORTANT: After 10.3.1 update, Systick_Handler comes from NVIC (if SYS timebase = systick), otherwise from cmsis_os2.c */
|
|
|
+
|
|
|
+#define USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION 1
|
|
|
|
|
|
-/* #define xPortSysTickHandler SysTick_Handler */
|
|
|
+/* USER CODE BEGIN Defines */
|
|
|
+/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
|
|
|
+#define configOVERRIDE_DEFAULT_TICK_CONFIGURATION 1 /* required only for Keil but does not hurt otherwise */
|
|
|
+/* USER CODE END Defines */
|
|
|
|
|
|
#endif /* FREERTOS_CONFIG_H */
|