-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MCUX-71706] Enable rpmsg-lite middleware repo
Signed-off-by: Michal Princ <[email protected]> Signed-off-by: Tomas Galbicka <[email protected]>
- Loading branch information
1 parent
485f98d
commit afb80c9
Showing
147 changed files
with
8,291 additions
and
469 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Language: Cpp | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterEnum: true | ||
AfterStruct: true | ||
SplitEmptyFunction: true | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterObjCDeclaration: true | ||
AfterUnion: true | ||
AfterExternBlock: false | ||
BeforeCatch: true | ||
BeforeElse: true | ||
AfterCaseLabel: true | ||
SortIncludes: Never | ||
AlignEscapedNewlines: Left | ||
AlignConsecutiveMacros: true | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: false | ||
AlignTrailingComments: | ||
Kind: Always | ||
OverEmptyLines: 1 | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: Never | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakBeforeMultilineStrings: true | ||
BasedOnStyle: google | ||
BinPackParameters: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeTernaryOperators: false | ||
ColumnLimit: 120 | ||
ContinuationIndentWidth: 4 | ||
DerivePointerAlignment: false | ||
PointerAlignment: Right | ||
IndentCaseLabels: true | ||
IndentWrappedFunctionNames: false | ||
IndentWidth: 4 | ||
MaxEmptyLinesToKeep: 1 | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeParens: ControlStatements | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: false | ||
SpacesInParentheses: false | ||
Standard: c++11 | ||
BreakConstructorInitializers: AfterColon | ||
BreakInheritanceList: AfterColon | ||
AlwaysBreakTemplateDeclarations: Yes | ||
TabWidth: 1 | ||
UseTab: Never |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -18,4 +18,6 @@ mdk | |
iar | ||
kds | ||
build | ||
*.patch | ||
*.patch | ||
tests/**/test_*.xml | ||
.vscode |
This file was deleted.
Oops, something went wrong.
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,171 @@ | ||
# Changelog RPMSG-Lite | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
- Memory cache management of shared memory. Enable with `#define RL_USE_DCACHE (1)` in `rpmsg_config.h` in case of data cache is used. | ||
|
||
## [5.1.1] - 19-Jan-2023 | ||
|
||
### Added | ||
|
||
- Test suite provided. | ||
- Zephyr support added. | ||
|
||
### Changed | ||
|
||
- Minor changes in platform and env. layers, minor test code updates. | ||
|
||
## [5.1.0] - 02-Aug-2023 | ||
|
||
### Added | ||
|
||
- RPMsg-Lite: Added aarch64 support. | ||
|
||
### Changed | ||
|
||
- RPMsg-Lite: Increased the queue size to (2 * RL_BUFFER_COUNT) to cover zero copy cases. | ||
- Code formatting using LLVM16. | ||
|
||
### Fixed | ||
|
||
- Resolved issues in ThreadX env. layer implementation. | ||
|
||
## [5.0.0] - 19-Jan-2023 | ||
|
||
### Added | ||
|
||
- Timeout parameter added to rpmsg_lite_wait_for_link_up API function. | ||
|
||
### Changed | ||
|
||
- Improved debug check buffers implementation - instead of checking the pointer fits into shared memory check the presence in the VirtIO ring descriptors list. | ||
- VRING_SIZE is set based on number of used buffers now (as calculated in vring_init) - updated for all platforms that are not communicating to Linux rpmsg counterpart. | ||
|
||
### Fixed | ||
|
||
- Fixed wrong RL_VRING_OVERHEAD macro comment in platform.h files | ||
- Misra corrections. | ||
|
||
## [4.0.0] - 20-Jun-2022 | ||
|
||
### Added | ||
|
||
- Added support for custom shared memory arrangement per the RPMsg_Lite instance. | ||
- Introduced new rpmsg_lite_wait_for_link_up() API function - this allows to avoid using busy loops in rtos environments, GitHub PR [#21](https://github.com/nxp-mcuxpresso/rpmsg-lite/pull/21). | ||
|
||
### Changed | ||
|
||
- Adjusted rpmsg_lite_is_link_up() to return RL_TRUE/RL_FALSE. | ||
|
||
## [3.2.0] - 17-Jan-2022 | ||
|
||
### Added | ||
|
||
- Added support for i.MX8 MP multicore platform. | ||
|
||
### Changed | ||
|
||
- Improved static allocations - allow OS-specific objects being allocated statically, GitHub PR [#14](https://github.com/nxp-mcuxpresso/rpmsg-lite/pull/14). | ||
- Aligned rpmsg_env_xos.c and some platform layers to latest static allocation support. | ||
|
||
### Fixed | ||
|
||
- Minor Misra and typo corrections, GitHub PR [#19](https://github.com/nxp-mcuxpresso/rpmsg-lite/pull/19), [#20](https://github.com/nxp-mcuxpresso/rpmsg-lite/pull/20). | ||
|
||
## [3.1.2] - 16-Jul-2021 | ||
|
||
### Added | ||
|
||
- Addressed MISRA 21.6 rule violation in rpmsg_env.h (use SDK's PRINTF in MCUXpressoSDK examples, otherwise stdio printf is used). | ||
- Added environment layers for XOS. | ||
- Added support for i.MX RT500, i.MX RT1160 and i.MX RT1170 multicore platforms. | ||
|
||
### Fixed | ||
|
||
- Fixed incorrect description of the rpmsg_lite_get_endpoint_from_addr function. | ||
|
||
### Changed | ||
|
||
- Updated RL_BUFFER_COUNT documentation (issue [#10](https://github.com/nxp-mcuxpresso/rpmsg-lite/issues/10)). | ||
- Updated imxrt600_hifi4 platform layer. | ||
|
||
## [3.1.1] - 15-Jan-2021 | ||
|
||
### Added | ||
|
||
- Introduced RL_ALLOW_CONSUMED_BUFFERS_NOTIFICATION config option to allow opposite side notification sending each time received buffers are consumed and put into the queue of available buffers. | ||
- Added environment layers for Threadx. | ||
- Added support for i.MX8QM multicore platform. | ||
|
||
### Changed | ||
|
||
- Several MISRA C-2012 violations addressed. | ||
|
||
## [3.1.0] - 22-Jul-2020 | ||
|
||
### Added | ||
|
||
- Added support for several new multicore platforms. | ||
|
||
### Fixed | ||
|
||
- MISRA C-2012 violations fixed (7.4). | ||
- Fixed missing lock in rpmsg_lite_rx_callback() for QNX env. | ||
- Correction of rpmsg_lite_instance structure members description. | ||
- Address -Waddress-of-packed-member warnings in GCC9. | ||
|
||
### Changed | ||
|
||
- Clang update to v10.0.0, code re-formatted. | ||
|
||
## [3.0.0] - 20-Dec-2019 | ||
|
||
### Added | ||
|
||
- Added support for several new multicore platforms. | ||
|
||
### Fixed | ||
|
||
- MISRA C-2012 violations fixed, incl. data types consolidation. | ||
- Code formatted. | ||
|
||
## [2.2.0] - 20-Mar-2019 | ||
|
||
### Added | ||
|
||
- Added configuration macro RL_DEBUG_CHECK_BUFFERS. | ||
- Several MISRA violations fixed. | ||
- Added environment layers for QNX and Zephyr. | ||
- Allow environment context required for some environment (controlled by the RL_USE_ENVIRONMENT_CONTEXT configuration macro). | ||
- Data types consolidation. | ||
|
||
## [1.1.0] - 28-Apr-2017 | ||
|
||
### Added | ||
|
||
- Supporting i.MX6SX and i.MX7D MPU platforms. | ||
- Supporting LPC5411x MCU platform. | ||
- Baremental and FreeRTOS support. | ||
- Support of copy and zero-copy transfer. | ||
- Support of static API (without dynamic allocations). | ||
|
||
|
||
[unreleased]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v5.1.1...HEAD | ||
[5.1.1]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v5.1.0...v5.1.1 | ||
[5.1.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v5.0.0...v5.1.0 | ||
[5.0.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v4.0.0...v5.0.0 | ||
[4.0.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v3.2.0...v4.0.0 | ||
[3.2.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v3.1.2...v3.2.0 | ||
[3.1.2]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v3.1.1...v3.1.2 | ||
[3.1.1]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v3.1.0...v3.1.1 | ||
[3.1.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v3.0.0...v3.1.0 | ||
[3.0.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v2.2.0...v3.0.0 | ||
[2.2.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/compare/v1.1.0...v2.2.0 | ||
[1.1.0]: https://github.com/nxp-mcuxpresso/rpmsg-lite/releases/tag/v1.1.0 |
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,56 @@ | ||
# | ||
# Copyright 2024 NXP | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
|
||
# middleware.multicore.rpmsg-lite | ||
if (CONFIG_MCUX_COMPONENT_middleware.multicore.rpmsg-lite) | ||
mcux_component_version(5.1.2) | ||
mcux_add_include( | ||
INCLUDES lib/include | ||
) | ||
|
||
mcux_add_source( | ||
SOURCES lib/include/llist.h | ||
lib/include/rpmsg_compiler.h | ||
lib/include/rpmsg_default_config.h | ||
lib/include/rpmsg_env.h | ||
lib/include/rpmsg_lite.h | ||
lib/include/virtio_ring.h | ||
lib/include/virtqueue.h | ||
) | ||
|
||
mcux_add_source( | ||
SOURCES lib/common/llist.c | ||
lib/rpmsg_lite/rpmsg_lite.c | ||
lib/virtio/virtqueue.c | ||
) | ||
endif() | ||
|
||
if (CONFIG_MCUX_COMPONENT_middleware.multicore.rpmsg-lite.queue) | ||
mcux_add_source( | ||
SOURCES lib/include/rpmsg_queue.h | ||
) | ||
|
||
mcux_add_source( | ||
SOURCES lib/rpmsg_lite/rpmsg_queue.c | ||
) | ||
endif() | ||
|
||
if (CONFIG_MCUX_COMPONENT_middleware.multicore.rpmsg-lite.ns) | ||
mcux_add_source( | ||
SOURCES lib/include/rpmsg_ns.h | ||
) | ||
|
||
mcux_add_source( | ||
SOURCES lib/rpmsg_lite/rpmsg_ns.c | ||
) | ||
endif() | ||
|
||
if (CONFIG_MCUX_PRJSEG_middleware.multicore.rpmsg-lite.generated_config) | ||
# Left intentionaly empty - For ecosystem data generation | ||
endif() | ||
|
||
include(cmake/env.cmake) | ||
include(cmake/platform.cmake) |
Oops, something went wrong.