-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SMP template port and example (#900)
* Add SMP template port and example * Add readme file for smp configuration * Update SMP build flow and add CI build --------- Co-authored-by: Soren Ptak <[email protected]> Co-authored-by: Rahul Kar <[email protected]>
- Loading branch information
1 parent
f8ef5f6
commit c0ce725
Showing
6 changed files
with
194 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* 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. | ||
* | ||
* https://www.FreeRTOS.org | ||
* https://github.com/FreeRTOS | ||
* | ||
*/ | ||
|
||
/******************************************************************************* | ||
* This file provides an example FreeRTOSConfig.h header file, inclusive of an | ||
* abbreviated explanation of each configuration item. Online and reference | ||
* documentation provides more information. | ||
* https://www.freertos.org/a00110.html | ||
* | ||
* Constant values enclosed in square brackets ('[' and ']') must be completed | ||
* before this file will build. | ||
* | ||
* Use the FreeRTOSConfig.h supplied with the RTOS port in use rather than this | ||
* generic file, if one is available. | ||
******************************************************************************/ | ||
|
||
#ifndef __FREERTOS_CONFIG_SMP_H__ | ||
#define __FREERTOS_CONFIG_SMP_H__ | ||
|
||
#include "../FreeRTOSConfig.h" | ||
|
||
/******************************************************************************/ | ||
/* Scheduling behaviour related definitions. **********************************/ | ||
/******************************************************************************/ | ||
|
||
/* Set configNUMBER_OF_CORES to greater than 1 to enable running one instance of | ||
* FreeRTOS kernel to schedule tasks across multiple identical processor cores. */ | ||
#define configNUMBER_OF_CORES 2 | ||
|
||
/******************************************************************************/ | ||
/* Hook and callback function related definitions. ****************************/ | ||
/******************************************************************************/ | ||
|
||
/* Set the following configUSE_* constants to 1 to include the named hook | ||
* functionality in the build. Set to 0 to exclude the hook functionality from the | ||
* build. The application writer is responsible for providing the hook function | ||
* for any set to 1. See https://www.freertos.org/a00016.html */ | ||
#define configUSE_PASSIVE_IDLE_HOOK 0 | ||
|
||
#endif /* __FREERTOS_CONFIG_SMP_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Configuration support for FreeRTOS SMP | ||
|
||
## Overview | ||
The FreeRTOSConfig.h provided in this folder is a sample configuration that will | ||
assist you in preparing the configuration to enable SMP support in the FreeRTOS | ||
Kernel for your application. | ||
|
||
Based on single core sample configuration file, this configuration file is created | ||
with minimal configuration change. More SMP scheduler configurations can be found | ||
in [Symmetric Multiprocessing (SMP) with FreeRTOS](https://freertos.org/symmetric-multiprocessing-introduction.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters