mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 13:55:23 +01:00
Apply clippy fixes
This commit is contained in:
parent
0615841cb8
commit
104ee94dd1
2 changed files with 4 additions and 4 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
pub use esp32c6::*;
|
pub use esp32c6::*;
|
||||||
|
|
||||||
#[cfg(feature = "riscv-esp32c6")]
|
#[cfg(feature = "riscv-esp32c6")]
|
||||||
|
#[allow(clippy::module_inception)]
|
||||||
mod esp32c6 {
|
mod esp32c6 {
|
||||||
use crate::{
|
use crate::{
|
||||||
analyze::Analysis as CodegenAnalysis,
|
analyze::Analysis as CodegenAnalysis,
|
||||||
|
|
@ -97,7 +98,7 @@ mod esp32c6 {
|
||||||
.chain(
|
.chain(
|
||||||
app.hardware_tasks
|
app.hardware_tasks
|
||||||
.values()
|
.values()
|
||||||
.filter_map(|task| Some((&task.args.priority, &task.args.binds))),
|
.map(|task| (&task.args.priority, &task.args.binds)),
|
||||||
)
|
)
|
||||||
.zip(EXTERNAL_INTERRUPTS)
|
.zip(EXTERNAL_INTERRUPTS)
|
||||||
{
|
{
|
||||||
|
|
@ -238,7 +239,7 @@ mod esp32c6 {
|
||||||
.chain(
|
.chain(
|
||||||
app.hardware_tasks
|
app.hardware_tasks
|
||||||
.values()
|
.values()
|
||||||
.filter_map(|task| Some((&task.args.priority, &task.args.binds))),
|
.map(|task| (&task.args.priority, &task.args.binds)),
|
||||||
)
|
)
|
||||||
.zip(EXTERNAL_INTERRUPTS)
|
.zip(EXTERNAL_INTERRUPTS)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,7 @@ where
|
||||||
pub unsafe fn lock<T, R>(ptr: *mut T, ceiling: u8, f: impl FnOnce(&mut T) -> R) -> R {
|
pub unsafe fn lock<T, R>(ptr: *mut T, ceiling: u8, f: impl FnOnce(&mut T) -> R) -> R {
|
||||||
if ceiling == (15) {
|
if ceiling == (15) {
|
||||||
// Turn off interrupts completely, we're at max prio
|
// Turn off interrupts completely, we're at max prio
|
||||||
let r = critical_section::with(|_| f(&mut *ptr));
|
critical_section::with(|_| f(&mut *ptr))
|
||||||
r
|
|
||||||
} else {
|
} else {
|
||||||
let current = unsafe {
|
let current = unsafe {
|
||||||
(*PLIC_MX::ptr())
|
(*PLIC_MX::ptr())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue