VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License (version 2) as published by the
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
***************************************************************************
>>! NOTE: The modification to the GPL is included to allow you to !<<
>>! distribute a combined work that includes FreeRTOS without being !<<
>>! obliged to provide the source code for proprietary components !<<
>>! outside of the FreeRTOS kernel. !<<
***************************************************************************
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. Full license text is available on the following
link: http://www.freertos.org/a00114.html
***************************************************************************
* *
* FreeRTOS provides completely free yet professionally developed, *
* robust, strictly quality controlled, supported, and cross *
* platform software that is more than just the market leader, it *
* is the industry's de facto standard. *
* *
* Help yourself get started quickly while simultaneously helping *
* to support the FreeRTOS project by purchasing a FreeRTOS *
* tutorial book, reference manual, or both: *
* http://www.FreeRTOS.org/Documentation *
* *
***************************************************************************
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
the FAQ page "My application does not run, what could be wrong?". Have you
defined configASSERT()?
http://www.FreeRTOS.org/support - In return for receiving this top quality
embedded software for free we request you assist our global community by
participating in the support forum.
http://www.FreeRTOS.org/training - Investing in training allows your team to
be as productive as possible as early as possible. Now you can receive
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
Ltd, and the world's leading authority on the world's leading RTOS.
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
compatible FAT file system, and our tiny thread aware UDP/IP stack.
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
licenses offer ticketed support, indemnification and commercial middleware.
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
engineered and independently SIL3 certified version for use in safety and
mission critical applications that require provable dependability.
1 tab == 4 spaces!
*/
ifndef FREERTOSCONFIGH
define FREERTOSCONFIGH
/———————————————————– * Application specific definitions. * * These definitions should be adjusted for your particular hardware and * application requirements. * * THESE PARAMETERS ARE DESCRIBED WITHIN THE ‘CONFIGURATION’ SECTION OF THE * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. * * See http://www.freertos.org/a00110.html. *———————————————————-/ /* USER CODE BEGIN Includes // Section where include file can be added / / USER CODE END Includes */ /* Ensure stdint is only used by the compiler, and not the assembler. */
if defined(ICCARM) || defined(CC_ARM) || defined(GNUC__)
#include <stdint.h>
extern uint32_t SystemCoreClock;
/* USER CODE BEGIN 0 /extern void configureTimerForRunTimeStats(void); extern unsigned long getRunTimeCounterValue(void);
/ USER CODE END 0 */
endif
define configUSE_PREEMPTION 1
define configSUPPORTSTATICALLOCATION 1
define configSUPPORTDYNAMICALLOCATION 0
define configUSEIDLEHOOK 1
define configUSETICKHOOK 1
define configCPUCLOCKHZ ( SystemCoreClock )
define configTICKRATEHZ ((TickType_t)1000)
define configMAX_PRIORITIES ( 7 )
define configMINIMALSTACKSIZE ((uint16_t)32) // MOD was 128
define configMAXTASKNAME_LEN ( 32 ) // mod was 16
define configGENERATERUNTIME_STATS 1
define configUSETRACEFACILITY 1
define configUSESTATSFORMATTING_FUNCTIONS 1
define configUSE16BIT_TICKS 0
define configUSE_MUTEXES 1
define configQUEUEREGISTRYSIZE 8
define configCHECKFORSTACK_OVERFLOW 1
define configUSEMALLOCFAILED_HOOK 1
define configUSEDAEMONTASKSTARTUPHOOK 1
define configUSEPORTOPTIMISEDTASKSELECTION 1
/* Co-routine definitions. */define configUSECOROUTINES 0
define configMAXCOROUTINE_PRIORITIES ( 2 )
/* Software timer definitions. */define configUSE_TIMERS 1
define configTIMERTASKPRIORITY ( 2 )
define configTIMERQUEUELENGTH 10
define configTIMERTASKSTACK_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_uxTaskPriorityGet 1
define INCLUDE_vTaskDelete 1
define INCLUDE_vTaskCleanUpResources 1
define INCLUDE_vTaskSuspend 1
define INCLUDE_vTaskDelayUntil 1
define INCLUDE_vTaskDelay 1
define INCLUDE_xTaskGetSchedulerState 1
define INCLUDE_xTimerPendFunctionCall 1
define INCLUDE_xQueueGetMutexHolder 1
define INCLUDE_xSemaphoreGetMutexHolder 1
define INCLUDE_pcTaskGetTaskName 1
define INCLUDE_uxTaskGetStackHighWaterMark 1
define INCLUDE_xTaskGetCurrentTaskHandle 1
define INCLUDE_eTaskGetState 1
define INCLUDE_xTaskAbortDelay 1
define INCLUDE_xTaskGetHandle 1
/* Cortex-M specific definitions. */ifdef __NVICPRIOBITS
/* __BVICPRIOBITS will be specified when CMSIS is being used. */ #define configPRIO_BITS __NVIC_PRIO_BITSelse
#define configPRIO_BITS 4endif
/* The lowest interrupt priority that can be used in a call to a “set priority” function. */define configLIBRARYLOWESTINTERRUPT_PRIORITY 15
/* The highest interrupt priority that can be used by any interrupt service routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER PRIORITY THAN THIS! (higher priorities are lower numeric values. */define configLIBRARYMAXSYSCALLINTERRUPTPRIORITY 5
/* Interrupt priorities used by the kernel port layer itself. These are generic to all Cortex-M ports, and do not rely on any particular library functions. */define configKERNELINTERRUPTPRIORITY ( configLIBRARYLOWESTINTERRUPTPRIORITY << (8 – configPRIOBITS) )
/* !!!! configMAXSYSCALLINTERRUPT_PRIORITY must not be set to zero !!!! See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */define configMAXSYSCALLINTERRUPTPRIORITY ( configLIBRARYMAXSYSCALLINTERRUPTPRIORITY << (8 – configPRIOBITS) )
/* Normal assert() semantics without relying on the provision of an assert.h header file. / / USER CODE BEGIN 1 */define configASSERT( x ) if ((x) == 0) {taskDISABLE_INTERRUPTS(); for( ;; );}
/* USER CODE END 1 */ /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS standard names. */define vPortSVCHandler SVC_Handler
define xPortPendSVHandler PendSV_Handler
/* IMPORTANT: This define MUST be commented when used with STM32Cube firmware, to prevent overwriting SysTickHandler defined within STM32Cube HAL */ /* #define xPortSysTickHandler SysTickHandler */ /* USER CODE BEGIN 2 // Definitions needed when configGENERATERUNTIME_STATS is on */
define portCONFIGURETIMERFORRUNTIME_STATS configureTimerForRunTimeStats
define portGETRUNTIMECOUNTERVALUE getRunTimeCounterValue
/* USER CODE END 2 */ /* USER CODE BEGIN Defines // Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) / / USER CODE END Defines */