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

riscv: add fallible functions #222

Merged
merged 10 commits into from
Jul 17, 2024
Merged

Commits on Jul 4, 2024

  1. riscv: add result module

    Adds the `result` module to contain types for fallible functions.
    
    For discussion, see:
    <rust-embedded#212 (comment)>
    rmsyn committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    014bc42 View commit details
    Browse the repository at this point in the history
  2. riscv: add fallible functions to register macros

    Adds fallible `try_` function variants to most `register` module macros.
    rmsyn committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    0d23dc1 View commit details
    Browse the repository at this point in the history
  3. riscv: add fallible functions to mcounteren

    Adds fallible access functions for `Mcounteren` HPM fields.
    rmsyn committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    5165db3 View commit details
    Browse the repository at this point in the history
  4. riscv: add fallible functions to scounteren

    Adds fallible access functions for `Scounteren` HPM fields.
    rmsyn committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    66fa6a4 View commit details
    Browse the repository at this point in the history
  5. riscv: add fallible functions to mcountinhibit

    Adds fallible access functions for `Mcountinhibit` HPM fields.
    rmsyn committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    56f30bb View commit details
    Browse the repository at this point in the history
  6. riscv: add fallible functions to satp

    Adds fallible access functions for `Satp` ASID and PPN fields.
    rmsyn committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    54bdc4e View commit details
    Browse the repository at this point in the history
  7. riscv: add fallible functions to pmpcfgx

    Adds fallible conversion functions for `Pmpcfgx` permission and range
    fields.
    rmsyn committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    77b692f View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. riscv-pac: use Result type for traits

    Uses the new `Result` type for library traits.
    rmsyn committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    62a417a View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. riscv-peripheral: use riscv-pac result types

    Uses the `riscv_pac::result::*` types for unsafe trait implementations.
    rmsyn committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    fea2e0b View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. riscv-pac: add field and field-less error variants

    Changes current `Invalid*` variants to `InvalidField*` variants to
    indicate their use for subfields in an outer struct.
    
    Adds the field-less counterparts for use in a context without subfields.
    rmsyn committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    2b35502 View commit details
    Browse the repository at this point in the history