mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-29 15:04:32 +01:00
unbreak the build
This commit is contained in:
parent
1b735d8fdd
commit
6de27b9a64
7 changed files with 50 additions and 3 deletions
|
@ -60,7 +60,6 @@ compiletest_rs = "0.3.5"
|
|||
|
||||
[dev-dependencies]
|
||||
panic-abort = "0.1.1"
|
||||
panic-itm = "0.1.0"
|
||||
typenum = "1.10.0"
|
||||
|
||||
[dev-dependencies.stm32f103xx]
|
||||
|
|
20
ci/script.sh
20
ci/script.sh
|
@ -7,15 +7,31 @@ main() {
|
|||
return
|
||||
fi
|
||||
|
||||
# examples that don't require the timer-queue feature
|
||||
local examples=(
|
||||
async
|
||||
empty
|
||||
interrupt
|
||||
)
|
||||
|
||||
case $TARGET in
|
||||
thumbv7em-none-eabi*)
|
||||
cargo check --target $TARGET --features cm7-r0p1
|
||||
cargo check --target $TARGET --features cm7-r0p1 --examples
|
||||
for ex in ${examples[@]}; do
|
||||
cargo check --target $TARGET --features cm7-r0p1 --example $ex
|
||||
done
|
||||
|
||||
cargo check timer-queue --target $TARGET --features "cm7-r0p1 timer-queue"
|
||||
cargo check --target $TARGET --features "cm7-r0p1 timer-queue" --examples
|
||||
;;
|
||||
esac
|
||||
|
||||
cargo check --target $TARGET
|
||||
cargo check --target $TARGET --examples
|
||||
for ex in ${examples[@]}; do
|
||||
cargo check --target $TARGET --features cm7-r0p1 --example $ex
|
||||
done
|
||||
cargo check --features timer-queue --target $TARGET
|
||||
cargo check --features timer-queue --target $TARGET --examples
|
||||
}
|
||||
|
||||
main
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// 52 bytes .bss
|
||||
//
|
||||
// # -Os
|
||||
// init
|
||||
// a(bl=8000000, now=8000180, input=0)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// 104 bytes .bss
|
||||
//
|
||||
// # -Os
|
||||
// a(bl=16000000, now=16000248, input=0)
|
||||
// b(bl=24000000, now=24000251, input=0)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// 96 bytes .bss
|
||||
//
|
||||
// # -Os
|
||||
// init
|
||||
// a(bl=16000000, now=16000249)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// 52 bytes .bss
|
||||
//
|
||||
// # -Os
|
||||
// init
|
||||
// a(bl=8000000, now=8000180)
|
||||
|
|
24
src/node.rs
24
src/node.rs
|
@ -14,6 +14,30 @@ where
|
|||
payload: T,
|
||||
}
|
||||
|
||||
#[cfg(feature = "timer-queue")]
|
||||
impl<T> Eq for Node<T> {}
|
||||
|
||||
#[cfg(feature = "timer-queue")]
|
||||
impl<T> PartialEq for Node<T> {
|
||||
fn eq(&self, other: &Node<T>) -> bool {
|
||||
self.baseline == other.baseline
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "timer-queue")]
|
||||
impl<T> Ord for Node<T> {
|
||||
fn cmp(&self, other: &Node<T>) -> Ordering {
|
||||
self.baseline.cmp(&other.baseline)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "timer-queue")]
|
||||
impl<T> PartialOrd for Node<T> {
|
||||
fn partial_cmp(&self, other: &Node<T>) -> Option<Ordering> {
|
||||
Some(self.cmp(other))
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub struct Slot<T>
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue