Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use canardTxPoll; MediaPayload::Ownership #409

Merged
merged 28 commits into from
Dec 11, 2024
Merged

Use canardTxPoll; MediaPayload::Ownership #409

merged 28 commits into from
Dec 11, 2024

Conversation

serges147
Copy link
Collaborator

No description provided.

- Added new `IMedia::getTxMemoryResource` method.
- Media implementations (at examples) now have their own TX memory
resource.
- Addopted recent v4 canard api changes.
  - each `canardTxInit` now initialized with media TX memory resource
- addressed "// TODO: Remove this workaround when the issue is
resolved." - canard memory management now has de-allocation amount
parameter.
- Extended all transport related unit tests to verify that TX pipeline
uses its dedicated memory resource.
- Introduced `libcyphal::transport::MediaPayload` - in use to pass
payload data between the transport layer and its media.
- Use lates latest Canard v4 api
- latest canard v4
- latest udpard v2
…sponses, and PMR otherwise #verification #sonar #docs
# Conflicts:
#	include/libcyphal/transport/media_payload.hpp
@serges147 serges147 self-assigned this Dec 9, 2024
namespace libcyphal
{
namespace common
{
Copy link
Collaborator Author

@serges147 serges147 Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed for...

  1. to be consistent with libcyphal/common/cavl/... folder structure
  2. to minimize possible conflict if some project already has it's own CAVL copy (and not necessarily the same version)

@@ -788,7 +792,7 @@ class Tree final // NOSONAR cpp:S3624
{
public:
/// Helper alias of the compatible node type.
using NodeType = ::cavl::Node<Derived>;
using NodeType = Node<Derived>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already in upstream

@@ -998,5 +1002,7 @@ class Tree final // NOSONAR cpp:S3624
};

} // namespace cavl
} // namespace common
} // namespace libcyphal
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream stay as before - just ::cavl:: ...

@serges147 serges147 marked this pull request as ready for review December 9, 2024 15:27
Copy link

@emrainey emrainey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Base automatically changed from sshirokov/config to main December 11, 2024 07:33
# Conflicts:
#	include/libcyphal/application/registry/register.hpp
#	include/libcyphal/platform/single_threaded_executor.hpp
@serges147 serges147 added this pull request to the merge queue Dec 11, 2024
Merged via the queue into main with commit f66b8a6 Dec 11, 2024
22 checks passed
@serges147 serges147 deleted the sshirokov/tx_poll branch December 11, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants