stm32f4-uart-bootloader

Simple UART bootloader for STM32F4 MCU's
git clone git://git.mdnr.space/stm32f4-uart-bootloader
Log | Files | Refs | Submodules | README | LICENSE

FreeRTOSConfig.h (5279B)


      1 /*
      2  * FreeRTOS V202212.01
      3  * Copyright (C) 2020 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
      4  *
      5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
      6  * this software and associated documentation files (the "Software"), to deal in
      7  * the Software without restriction, including without limitation the rights to
      8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
      9  * the Software, and to permit persons to whom the Software is furnished to do so,
     10  * subject to the following conditions:
     11  *
     12  * The above copyright notice and this permission notice shall be included in all
     13  * copies or substantial portions of the Software.
     14  *
     15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
     17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
     18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
     19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     21  *
     22  * https://www.FreeRTOS.org
     23  * https://github.com/FreeRTOS
     24  *
     25  */
     26 
     27 
     28 #ifndef FREERTOS_CONFIG_H
     29 #define FREERTOS_CONFIG_H
     30 
     31 /*-----------------------------------------------------------
     32  * Application specific definitions.
     33  *
     34  * These definitions should be adjusted for your particular hardware and
     35  * application requirements.
     36  *
     37  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
     38  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
     39  *
     40  * See http://www.freertos.org/a00110.html
     41  *----------------------------------------------------------*/
     42 
     43 /* Ensure stdint is only used by the compiler, and not the assembler. */
     44 #ifdef __ICCARM__
     45 	#include <stdint.h>
     46 	extern uint32_t SystemCoreClock;
     47 #endif
     48 
     49 #define configUSE_PREEMPTION			1
     50 #define configUSE_IDLE_HOOK				1
     51 #define portCRITICAL_NESTING_IN_TCB     1
     52 #define configUSE_TICK_HOOK				0
     53 #define configCPU_CLOCK_HZ				( 168000000 )
     54 #define configTICK_RATE_HZ				( ( TickType_t ) 1000 )
     55 #define configMAX_PRIORITIES			( 5 )
     56 #define configMINIMAL_STACK_SIZE		( ( unsigned short ) 128 )
     57 #define configTOTAL_HEAP_SIZE			( ( size_t ) ( 25 * 1024 ) )
     58 #define configMAX_TASK_NAME_LEN			( 10 )
     59 #define configUSE_TRACE_FACILITY		1
     60 #define configUSE_16_BIT_TICKS			0
     61 #define configIDLE_SHOULD_YIELD			1
     62 #define configUSE_MUTEXES				1
     63 #define configQUEUE_REGISTRY_SIZE		8
     64 #define configCHECK_FOR_STACK_OVERFLOW	0
     65 #define configUSE_RECURSIVE_MUTEXES		1
     66 #define configUSE_MALLOC_FAILED_HOOK	0
     67 #define configUSE_APPLICATION_TASK_TAG	0
     68 #define configUSE_COUNTING_SEMAPHORES	1
     69 #define configGENERATE_RUN_TIME_STATS	0
     70 
     71 #define configSUPPORT_DYNAMIC_ALLOCATION 1
     72 #define configSUPPORT_STATIC_ALLOCATION 1
     73 #define configKERNEL_PROVIDED_STATIC_MEMORY 1
     74 #define configAPPLICATION_ALLOCATED_HEAP 4
     75 #define configUSE_TASK_NOTIFICATIONS     1
     76 
     77 
     78 /* Software timer definitions. */
     79 #define configUSE_TIMERS				1
     80 #define configTIMER_TASK_PRIORITY		( 2 )
     81 #define configTIMER_QUEUE_LENGTH		10
     82 #define configTIMER_TASK_STACK_DEPTH	( configMINIMAL_STACK_SIZE * 2 )
     83 
     84 /* Set the following definitions to 1 to include the API function, or zero
     85 to exclude the API function. */
     86 #define INCLUDE_vTaskPrioritySet		1
     87 #define INCLUDE_uxTaskPriorityGet		1
     88 #define INCLUDE_vTaskDelete				1
     89 #define INCLUDE_vTaskCleanUpResources	1
     90 #define INCLUDE_vTaskSuspend			1
     91 #define INCLUDE_vTaskDelayUntil			1
     92 #define INCLUDE_vTaskDelay				1
     93 
     94 /* Cortex-M specific definitions. */
     95 #ifdef __NVIC_PRIO_BITS
     96 	/* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
     97 	#define configPRIO_BITS       		__NVIC_PRIO_BITS
     98 #else
     99 	#define configPRIO_BITS       		4        /* 15 priority levels */
    100 #endif
    101 
    102 /* The lowest interrupt priority that can be used in a call to a "set priority"
    103 function. */
    104 #define configLIBRARY_LOWEST_INTERRUPT_PRIORITY			0xf
    105 
    106 /* The highest interrupt priority that can be used by any interrupt service
    107 routine that makes calls to interrupt safe FreeRTOS API functions.  DO NOT CALL
    108 INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
    109 PRIORITY THAN THIS! (higher priorities are lower numeric values. */
    110 #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY	5
    111 
    112 /* Interrupt priorities used by the kernel port layer itself.  These are generic
    113 to all Cortex-M ports, and do not rely on any particular library functions. */
    114 #define configKERNEL_INTERRUPT_PRIORITY 		( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
    115 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
    116 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
    117 #define configMAX_SYSCALL_INTERRUPT_PRIORITY 	( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
    118 
    119 /* Normal assert() semantics without relying on the provision of an assert.h
    120 header file. */
    121 #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
    122 
    123 /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
    124 standard names. */
    125 #define vPortSVCHandler sv_call_handler
    126 #define xPortPendSVHandler pend_sv_handler
    127 #define xPortSysTickHandler sys_tick_handler
    128 
    129 #endif /* FREERTOS_CONFIG_H */
    130