Skip to content

DWT: differentiate the first comparator  #376

@tmplt

Description

@tmplt
Contributor

As discussed in #364 we should ideally check whether a DWT feature is supported statically. This is only realistically applicable for cycle count comparisons (but still requires a runtime check) which is only supported on the first comparator. An implementation would then have some DWTComparatorFirst and DWTComparator structures that implement a common trait: if cycle count comparison is configured for DWTComparator, an error is returned.

Opening this issue for discussion purposes for now. At present the documentation warns that cycle count comparison is only available with the first comparator.

Activity

tmplt

tmplt commented on Jan 1, 2022

@tmplt
ContributorAuthor
TDHolmes

TDHolmes commented on Jan 1, 2022

@TDHolmes
Contributor
TDHolmes

TDHolmes commented on Jan 1, 2022

@TDHolmes
Contributor

🏷️ #367 (the cycle count PR)

added 2 commits that reference this issue on Jan 2, 2022
3135b88
3d5013a
TDHolmes

TDHolmes commented on Jan 2, 2022

@TDHolmes
Contributor

I was wrong, only comparator zero is special. Opened up a PR

added a commit that references this issue on Jan 6, 2022
e7b0241
added a commit that references this issue on Oct 8, 2022
9e263cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @tmplt@TDHolmes

      Issue actions

        DWT: differentiate the first comparator · Issue #376 · rust-embedded/cortex-m