mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
90 lines
3.6 KiB
C
90 lines
3.6 KiB
C
/*
|
|
* FreeRTOS Kernel V10.0.1
|
|
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
* this software and associated documentation files (the "Software"), to deal in
|
|
* the Software without restriction, including without limitation the rights to
|
|
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
* subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in all
|
|
* copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*
|
|
* http://aws.amazon.com/freertos
|
|
* http://www.FreeRTOS.org
|
|
*/
|
|
|
|
#ifndef FREERTOS_CONFIG_BOARD_H
|
|
#define FREERTOS_CONFIG_BOARD_H
|
|
/*${macro:start}*/
|
|
|
|
#if defined(__ICCARM__)||defined(__CC_ARM)||defined(__GNUC__)
|
|
#include "fsl_device_registers.h"
|
|
#endif
|
|
|
|
|
|
#ifndef configENABLE_FPU
|
|
#define configENABLE_FPU 1
|
|
#endif
|
|
#ifndef configENABLE_MPU
|
|
#define configENABLE_MPU 0
|
|
#endif
|
|
#ifndef configENABLE_TRUSTZONE
|
|
#define configENABLE_TRUSTZONE 0
|
|
#endif
|
|
#ifndef configRUN_FREERTOS_SECURE_ONLY
|
|
#define configRUN_FREERTOS_SECURE_ONLY 1
|
|
#endif
|
|
|
|
/* Redefine: Mutex is needed for SRTM communication */
|
|
#undef configUSE_MUTEXES
|
|
#define configUSE_MUTEXES 1
|
|
|
|
#ifndef configTOTAL_HEAP_SIZE
|
|
#define configTOTAL_HEAP_SIZE ((size_t)(20 * 1024))
|
|
#endif
|
|
|
|
/* Interrupt nesting behaviour configuration. Cortex-M specific. */
|
|
#ifdef __NVIC_PRIO_BITS
|
|
/* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
|
|
#define configPRIO_BITS __NVIC_PRIO_BITS
|
|
#else
|
|
#define configPRIO_BITS 3 /* 7 priority levels */
|
|
#endif
|
|
|
|
#define configSTACK_DEPTH_TYPE uint32_t
|
|
|
|
/* The lowest interrupt priority that can be used in a call to a "set priority"
|
|
function. */
|
|
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY ((1U << (configPRIO_BITS)) - 1)
|
|
|
|
/* 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 configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 2
|
|
|
|
/* 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 configKERNEL_INTERRUPT_PRIORITY (configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
|
|
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
|
|
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
|
|
#define configMAX_SYSCALL_INTERRUPT_PRIORITY (configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
|
|
|
|
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
|
|
standard names. */
|
|
#define vPortSVCHandler SVC_Handler
|
|
#define vPortPendSVHandler PendSV_Handler
|
|
#define vPortSysTickHandler SysTick_Handler
|
|
/*${macro:end}*/
|
|
#endif /* FREERTOS_CONFIG_BOARD_H */
|