- 
                Notifications
    You must be signed in to change notification settings 
- Fork 177
Add ability to set priority grouping. #431
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
base: master
Are you sure you want to change the base?
Conversation
| Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @adamgreig (or someone else) soon. Please see the contribution instructions for more information. | 
        
          
                src/peripheral/scb.rs
              
                Outdated
          
        
      | } | ||
|  | ||
| /// Set the priority grouping. | ||
| pub fn set_priority_grouping(&mut self, grouping: PriorityGrouping) { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is safe or whether it should be an unsafe fn.
20d4477    to
    90b44f4      
    Compare
  
    d5b3579    to
    6347d07      
    Compare
  
    6347d07    to
    208b0c3      
    Compare
  
    3f028a8    to
    4e0526f      
    Compare
  
    | @adamgreig, I extracted the unrelated changes from this PR. Should be easier to review now. | 
| /// Priority grouping 6 | ||
| Prigroup6 = 6, | ||
| /// Priority grouping 7 | ||
| Prigroup7 = 7, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these values are actually swapped, at least compared to the ST HAL.
| /// Priority grouping 6 | ||
| Prigroup6 = 6, | ||
| /// Priority grouping 7 | ||
| Prigroup7 = 7, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these values are actually swapped, at least compared to the ST HAL.
| @adamgreig, ping. | 
Also update
interrupt::freeto passCriticalSection<'_>instead of a reference.