mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-30 15:34:33 +01:00
Merge branch 'master' into new_monotonic
This commit is contained in:
commit
b57ef0bf9d
6 changed files with 11 additions and 26 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
@ -763,21 +763,3 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Mark the job as a success
|
- name: Mark the job as a success
|
||||||
run: exit 0
|
run: exit 0
|
||||||
ci-failure:
|
|
||||||
name: ci
|
|
||||||
if: github.event_name == 'push' && !success()
|
|
||||||
needs:
|
|
||||||
- style
|
|
||||||
- check
|
|
||||||
- checkexamples
|
|
||||||
- testexamples
|
|
||||||
- checkmacros
|
|
||||||
- testmacros
|
|
||||||
- testv7
|
|
||||||
- testv6
|
|
||||||
- docs
|
|
||||||
- mdbook
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- name: Mark the job as a failure
|
|
||||||
run: exit 1
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ name = "double_schedule"
|
||||||
required-features = ["__v7"]
|
required-features = ["__v7"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cortex-m = "0.6.2"
|
cortex-m = "0.7.0"
|
||||||
cortex-m-rtic-macros = { path = "macros", version = "0.6.0-alpha.0" }
|
cortex-m-rtic-macros = { path = "macros", version = "0.6.0-alpha.0" }
|
||||||
rtic-core = { git = "https://github.com/rtic-rs/rtic-core", branch = "new_monotonic" }
|
rtic-core = { git = "https://github.com/rtic-rs/rtic-core", branch = "new_monotonic" }
|
||||||
#rtic-core = "0.3.1"
|
#rtic-core = "0.3.1"
|
||||||
|
@ -106,3 +106,6 @@ debug = false
|
||||||
debug-assertions = false
|
debug-assertions = false
|
||||||
opt-level = 0
|
opt-level = 0
|
||||||
overflow-checks = false
|
overflow-checks = false
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
lm3s6965 = { git = "https://github.com/japaric/lm3s6965" }
|
||||||
|
|
|
@ -5,7 +5,7 @@ first parameter. All the fields of these structures have predictable,
|
||||||
non-anonymous types so you can write plain functions that take them as arguments.
|
non-anonymous types so you can write plain functions that take them as arguments.
|
||||||
|
|
||||||
The API reference specifies how these types are generated from the input. You
|
The API reference specifies how these types are generated from the input. You
|
||||||
can also generate documentation for you binary crate (`cargo doc --bin <name>`);
|
can also generate documentation for your binary crate (`cargo doc --bin <name>`);
|
||||||
in the documentation you'll find `Context` structs (e.g. `init::Context` and
|
in the documentation you'll find `Context` structs (e.g. `init::Context` and
|
||||||
`idle::Context`).
|
`idle::Context`).
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
// #![deny(warnings)]
|
// #![deny(warnings)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
use cortex_m::{interrupt::Nr, peripheral::NVIC};
|
use cortex_m::{interrupt::InterruptNumber, peripheral::NVIC};
|
||||||
pub use cortex_m_rtic_macros::app;
|
pub use cortex_m_rtic_macros::app;
|
||||||
pub use rtic_core::{
|
pub use rtic_core::{
|
||||||
monotonic::{self, embedded_time as time, Monotonic},
|
monotonic::{self, embedded_time as time, Monotonic},
|
||||||
|
@ -53,7 +53,7 @@ mod tq;
|
||||||
/// [`NVIC::pend`](../cortex_m/peripheral/struct.NVIC.html#method.pend)
|
/// [`NVIC::pend`](../cortex_m/peripheral/struct.NVIC.html#method.pend)
|
||||||
pub fn pend<I>(interrupt: I)
|
pub fn pend<I>(interrupt: I)
|
||||||
where
|
where
|
||||||
I: Nr,
|
I: InterruptNumber,
|
||||||
{
|
{
|
||||||
NVIC::pend(interrupt)
|
NVIC::pend(interrupt)
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,5 +31,5 @@ error[E0425]: cannot find value `FOO` in this scope
|
||||||
error: duplicate lang item in crate `panic_halt` (which `$CRATE` depends on): `panic_impl`.
|
error: duplicate lang item in crate `panic_halt` (which `$CRATE` depends on): `panic_impl`.
|
||||||
|
|
|
|
||||||
= note: the lang item is first defined in crate `std` (which `$CRATE` depends on)
|
= note: the lang item is first defined in crate `std` (which `$CRATE` depends on)
|
||||||
= note: first definition in `std` loaded from /usr/share/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-93cbfed54dd1bac8.rlib
|
= note: first definition in `std` loaded from /usr/share/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e12de7683a34c500.rlib
|
||||||
= note: second definition in `panic_halt` loaded from $DIR/target/tests/target/x86_64-unknown-linux-gnu/debug/deps/libpanic_halt-e17d79bd6be439e3.rmeta
|
= note: second definition in `panic_halt` loaded from $DIR/target/tests/target/x86_64-unknown-linux-gnu/debug/deps/libpanic_halt-f6dc7d4a3dd7a21d.rmeta
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
error: duplicate lang item in crate `panic_halt` (which `$CRATE` depends on): `panic_impl`.
|
error: duplicate lang item in crate `panic_halt` (which `$CRATE` depends on): `panic_impl`.
|
||||||
|
|
|
|
||||||
= note: the lang item is first defined in crate `std` (which `$CRATE` depends on)
|
= note: the lang item is first defined in crate `std` (which `$CRATE` depends on)
|
||||||
= note: first definition in `std` loaded from /usr/share/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-93cbfed54dd1bac8.rlib
|
= note: first definition in `std` loaded from /usr/share/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e12de7683a34c500.rlib
|
||||||
= note: second definition in `panic_halt` loaded from $DIR/target/tests/target/x86_64-unknown-linux-gnu/debug/deps/libpanic_halt-e17d79bd6be439e3.rmeta
|
= note: second definition in `panic_halt` loaded from $DIR/target/tests/target/x86_64-unknown-linux-gnu/debug/deps/libpanic_halt-f6dc7d4a3dd7a21d.rmeta
|
||||||
|
|
||||||
error[E0609]: no field `o1` on type `initResources<'_>`
|
error[E0609]: no field `o1` on type `initResources<'_>`
|
||||||
--> $DIR/resources-cfg.rs:47:21
|
--> $DIR/resources-cfg.rs:47:21
|
||||||
|
|
Loading…
Reference in a new issue